Convert Netcdf "land" Variable To Latitude And Longitude With Python
I have a global meteorological dataset and I want to access the data for a certain grid (lat,lon). However, the data is compressed, i.e. the parameters of interest do not have the
Solution 1:
Some others might find this helpful, so here's the answer to the problem. A friend figured it out for me. "land" is the index of the flattened array nav_lat, nav_lon, i.e. the first entry of "land" corresponds to the latitude: lat.flat[land[0]] and lon.flat[land[0]].
Post a Comment for "Convert Netcdf "land" Variable To Latitude And Longitude With Python"