how to change the resoulation and coordinates?
Added by pooran khedri almost 7 years ago
Dear all,
I have downloaded a netcdf file with below propertie,
:latitude_min = 23.5833339691162 ;
:latitude_max = 30.5 ;
:longitude_min = 47.5 ;
:longitude_max = 57.5 ; longitude:step = 0.08332825f ; latitude:step = 0.08333588f ; latitude = 84 ;
longitude = 121 ;
I want to change the propertis to
:latitude_min = 23.61 ;
:latitude_max = 30.48 ;
:longitude_min = 47.51 ;
:longitude_max = 57.48 ; longitude:step = 0.033333333f ; latitude:step = 0.033333333f ; latitude = 207 ;longitude = 300 ;
I would be grateful if you could help me,
Best ,
Pooran
Replies (2)
RE: how to change the resoulation and coordinates? - Added by Karin Meier-Fleischer almost 7 years ago
Hi Pooran,
create a grid description file
e.g. gridfile.txt
gridtype = lonlat gridsize = 62100 xsize = 300 ysize = 207 xname = lon xlongname = "longitude" xunits = "degrees_east" yname = lat ylongname = "latitude" yunits = "degrees_north" xfirst = 47.51 xinc = 0.033333333 yfirst = 23.61 yinc = 0.033333333
and use one of the remap operators,
e.g. use bilinear method
cdo remapbil,gridfile.txt infile outfile
-Karin
RE: how to change the resoulation and coordinates? - Added by pooran khedri almost 7 years ago
Karin Meier-Fleischer wrote:
Hi Pooran,
create a grid description file
e.g. gridfile.txt
[...]and use one of the remap operators,
e.g. use bilinear method
[...]
-Karin
Dear Karin,
Many thanks for your reply,
I could do it,I would really appreciate your help.
Best,
Pooran