Skip to content

Allow center longitude to be set without normalization#1573

Merged
lesserwhirls merged 1 commit into
Unidata:maint-5.xfrom
lesserwhirls:gh-1519
Jun 22, 2026
Merged

Allow center longitude to be set without normalization#1573
lesserwhirls merged 1 commit into
Unidata:maint-5.xfrom
lesserwhirls:gh-1519

Conversation

@lesserwhirls

@lesserwhirls lesserwhirls commented Jun 22, 2026

Copy link
Copy Markdown
Member

Description of Changes

Some GRIB GDS parameters result in longitudes outside of -180 - 180, or even greater than 360. This change allows for the center longitude of the lat lon projection to be set without normalization, such that it can accuratly represent the longitude range computed from the GDS. While it would probably be better to shift the longitude values to fit within -180 - 180, this change maintains the current behavior.

Addresses #1519

PR Checklist

  • Link to any issues that the PR addresses
  • Add labels
  • Open as a draft PR
    until ready for review
  • Make sure GitHub tests pass
  • Mark PR as "Ready for Review"

Some GRIB GDS parameters result in longitudes outside of -180 - 180, or
even greater than 360. This change allows for the center longitude of
the lat lon projection to be set without normalization, such that it can
accuratly represent the longitude range computed from the GDS. While it
would probably be better to shift the longitude values to fit within
-180 - 180, this change maintains the current behavior.

Addresses Unidata#1519
@lesserwhirls lesserwhirls added bug Something isn't working iosp: grib grib file format labels Jun 22, 2026
@lesserwhirls lesserwhirls marked this pull request as ready for review June 22, 2026 23:54
@lesserwhirls lesserwhirls merged commit 1ff0c95 into Unidata:maint-5.x Jun 22, 2026
15 checks passed
@lesserwhirls lesserwhirls deleted the gh-1519 branch June 22, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working iosp: grib grib file format

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The LatLonProjection doesn't map coordinates into projection coordinates when the coordinates are outside the range -360 - 360

1 participant