Skip to content

Errors on projections other than "ZyGrib" #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MennoTammens opened this issue Apr 4, 2024 · 0 comments · May be fixed by #310
Open

Errors on projections other than "ZyGrib" #309

MennoTammens opened this issue Apr 4, 2024 · 0 comments · May be fixed by #310

Comments

@MennoTammens
Copy link
Contributor

Steps to reproduce

  • Open a GRIB file with projection "XyGrib"
    • Mapview works
  • Switch to a different projection, e.g. "Mercator"
    • Mapview is broken
    • merc: Invalid latitude printed in stdout

Versions

  • XyGrib: latest master
  • Proj: Rel. 9.1.1, December 1st, 2022

Problem

  • with the debug printing in map2screen, problem appears with latitude > π/2 (1.57). This corresponds with 90°N in libproj

Solution

  • Convert lat/lon to radians
@MennoTammens MennoTammens linked a pull request Apr 4, 2024 that will close this issue
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 a pull request may close this issue.

1 participant