Project

General

Profile

sellatlonbox Lat not starting at 0

Added by Ernest Werner about 4 years ago

Hi,
When doing:
cdo -sellonlatbox,-25,60,0,65 -random,r720x360 xrandom.nc
and then:
cdo outputtab,lon,lat,value xrandom.nc

I'm getting this:

lon lat value
-25 0.25 0.272844
-24.5 0.25 0.543657
-24 0.25 0.332002
-23.5 0.25 0.684236
...
58.5 64.75 0.56682
59 64.75 0.496919
59.5 64.75 0.716936
60 64.75 0.713106

Lon is ok but Lat is: 0.25, 0.75, 1.25, ...
How could I get Lat: 0, 0.5 ,1, 1.5 ,...?

Regards,
Ernest


Replies (2)

RE: sellatlonbox Lat not starting at 0 - Added by Karin Meier-Fleischer about 4 years ago

Hi Ernest,

you have to increase the lat grid size by one.

cdo -sellonlatbox,-25,60,0,65 -random,r720x361 xrandom.nc

-Karin

    (1-2/2)