Project

General

Profile

Inverting Latitude

Added by Aaron Perry over 5 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?


Replies (5)

RE: Inverting Latitude - Added by Karin Meier-Fleischer over 5 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 5 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

RE: Inverting Latitude - Added by Karin Meier-Fleischer over 5 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 5 years ago

That should have been the original file... Try this one

RE: Inverting Latitude - Added by Karin Meier-Fleischer over 5 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

    (1-5/5)