How to convert X/Y model data to lat/long in MetPy? #3446
Answered
by
dopplershift
rolypolyman
asked this question in
Q&A
-
I am having some difficulty getting THREDDS HRRR data to import because it appears to come in X,Y coordinates instead of lat/long. I am wondering how I am supposed to transform it to lat/long so it can be plotted on a map. If there is a code sample somewhere I can look at that. Thanks. Pseudocode:
|
Beta Was this translation helpful? Give feedback.
Answered by
dopplershift
Mar 21, 2024
Replies: 1 comment 3 replies
-
What kind of plot are you trying to do? In my experience, it's quite rare that you should need lat/lon to do plotting, but you should be able to plot using the x/y so long as you pass a proper projection (which MetPy can generate from the metadata). |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's an example of how to plot without needing to do any manual coordinate manipulation: