Inverting Latitude
Added by Aaron Perry over 6 years ago
I am trying to flip/invert latitude a Lat-Lon grid from WE:NS to WE:SN.
cdo Code:
cdo invertlat /home/weather/data/out.grib2 /home/weather/data/out.grib2.
My resulting grid looks like this....
What happened?
Maximum_temperature_height_above in nbcufs_prism.out.png (295 KB) Maximum_temperature_height_above in nbcufs_prism.out.png | 345trre4567yt678iuytreret6ytu |
Replies (5)
RE: Inverting Latitude - Added by Karin Meier-Fleischer over 6 years ago
Hi Aaron,
without the data I cannot say what is going wrong. Is the data pre-projected (lambert conformal)?
-Karin
RE: Inverting Latitude - Added by Aaron Perry over 6 years ago
Yes, the dataset is projected to Lat-Lon. Here is additional grid info, as well as the dataset (attached):
1:0:grid_template=0:winds(N/S):
lat-lon grid:(7025 x 3105) units 1e-06 input WE:SN output WE:SN res 48
lat 24.067000 to 48.895896 by 0.007999
lon 234.983000 to 291.175000 by 0.008000 #points=21812625
latlon_wesn.grib2 (3.34 MB) latlon_wesn.grib2 |
RE: Inverting Latitude - Added by Karin Meier-Fleischer over 6 years ago
Hm, the file above is not the original file, isn't it? Could you upload the original file (WE:NS)?
RE: Inverting Latitude - Added by Aaron Perry over 6 years ago
That should have been the original file... Try this one
temp.grib2 (3.32 MB) temp.grib2 |
RE: Inverting Latitude - Added by Karin Meier-Fleischer over 6 years ago
Sorry, but I can't help because your original input file has a shift in x-direction, too.
CDO shows the offset as well as Panoply and NCL.
cdo grfill,device="png",lat_min=20,lat_max=60,lon_min=-130,lon_max=-60 -selvar,tmax temp.grib2 plot_temp
-Karin
plot_temp_tmax.png (102 KB) plot_temp_tmax.png |