Project

General

Profile

cdo: map from regular Gaussian to curvilinear grid

Added by Jia Wang 16 days ago

I try to map data from a regular Gaussian to a curvilinear grid.

This is my command:
cdo remapbil,target.grb aa.grb bb.grb

This is the warning message:
cdi warning (cgribexDefGrid): CGRIBEX library doesn't support generic grids, grid information will be lost!

But the source file "aa.grb" is on a regular Gaussian grid. This is the output from cdo grids:
gridtype = gaussian
gridsize = 13107200
xsize = 5120
ysize = 2560
xname = lon
xlongname = "longitude"
xunits = "degrees_east"
yname = lat
ylongname = "latitude"
yunits = "degrees_north"
numLPE = 1280
xfirst = 0
xinc = 0.0703125
yvals =

The target grid file "target.grb" is on a curvilinear grid:
gridtype = projection
gridsize = 987601
xsize = 1121
ysize = 881
xname = x
xunits = "m"
yname = y
yunits = "m"
xfirst = 0
xinc = 4762.5
yfirst = 0
yinc = 4762.5
grid_mapping = Polar_Stereographic
grid_mapping_name = polar_stereographic
standard_parallel = 60.
straight_vertical_longitude_from_pole = 255.
latitude_of_projection_origin = 90.
earth_radius = 6371200.
false_easting = 1902531.67435698
false_northing = 7617604.93005048
longitudeOfFirstGridPointInDegrees = 240.976992
latitudeOfFirstGridPointInDegrees = 23.117

The output file "bb.grb" does not have the correct grid information. This is the output from cdo griddes bb.grb
gridtype = generic
gridsize = 987601