Skip to content

fix: unset geometryname for for grib of reduced_stretched_gg gridType#99

Open
bdvllrs wants to merge 1 commit intoUMR-CNRM:2.0.xfrom
bdvllrs:fix/unset_geometryname_reduced_stetched_gg
Open

fix: unset geometryname for for grib of reduced_stretched_gg gridType#99
bdvllrs wants to merge 1 commit intoUMR-CNRM:2.0.xfrom
bdvllrs:fix/unset_geometryname_reduced_stetched_gg

Conversation

@bdvllrs
Copy link
Copy Markdown
Contributor

@bdvllrs bdvllrs commented Mar 30, 2026

Closes #98.

This refactors epygram.formats.GRIB._read_horizontal_geometry to handle the reduced_stretched_gg case.

The provided changes work when tested on loading a N320 grid.

grid['pole_lat'] = Angle(self['latitudeOfStretchingPoleInDegrees'], 'degrees')
geometryname = 'rotated_reduced_gauss'

if 'reduced' in self['gridType']:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure if this could go in the previous if/elif statement L. 1704 or if it needs to come after the if 'stretched', so I didn't change the order.

It there is no order requirements, I will also simplify this by combining the if/elifs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant