How to convert X/Y model data to lat/long in MetPy? #3446
-
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.
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.
Here's an example of how to plot without needing to do any manual coordinate manipulation: