1

I have a NetCDF file, let's say only a portion of South America as shown below. I want to use a cdo operation remapnn to remap the NetCDF file from 0.25x0.25 to 0.05x0.05 resolution. For that I use the code mentioned below, but the results are not what I expect it to be. Can someone provide some clarity to this?

#cdo version 1.9.3
export REMAP_EXTRAPOLATE='off'
cdo remapnn,r7200x3600 test.nc test2.nc

I always seem to have this problem when remapping a subset of a global map but works fine for the complete global map. It seems like cdo operation assumes that I am always working with a complete global map.

Link to the data is added here.

enter image description here

Ep1c1aN
  • 683
  • 9
  • 25
  • 2
    just to point out that the "cdo" tag does not refer to climate data operators from MPI... that's why I had to create the cdo-climate tag – ClimateUnboxed Jan 24 '20 at 10:26
  • ps: It is a bit tricky to address this without access to the data file... do you have a link where we can download it to try it out? – ClimateUnboxed Jan 24 '20 at 10:29
  • @AdrianTompkins. Hi there. Now the data is available via the link mentioned in the post. Thanks. – Ep1c1aN Jan 24 '20 at 12:37
  • hmmm, the first problem seems to be that the coords don't have any meta data at all and thus CDO for me fails with: "Unsupported generic coordinates". If you don't want to add the metadata with nco, another option might be to try and remap with ncremap. Not sure how you managed to get any output at all from cdo? – ClimateUnboxed Jan 24 '20 at 12:55
  • Sorry about that. I just added a new file with generic co-ordinates. You can always use `ncatted -O -a units,lon,c,c,"degrees_east" -a units,lat,a,c,"degrees_north" test.nc` to add metadata. – Ep1c1aN Jan 24 '20 at 13:19
  • so that isn't the file you made your test on when you posed the question? – ClimateUnboxed Jan 24 '20 at 19:44
  • I actually wrote a shell script with the metadata (including the one in the question and one in the comment above), but I did not add the whole script. Sorry about that. – Ep1c1aN Jan 25 '20 at 20:58

0 Answers0