Error (gridToCurvilinear) : Grid has no values
Added by Beata Szabo-Takacs over 9 years ago
Hi
I have a model output netcdf file, ARPEGE4.5_CTL_CNRM-CM3_DM_50km_1950-2000_pr.nc , which has lonlat grid with the following grid description:
gridtype = lonlat
gridsize = 17859
xname = rgrid
xlongname = longitude
xunits = degrees
xsize = 17859
xfirst = 1
xinc = 1
I would like to remap this file that to be same grid structure as the netcdf file of observed data, which has the following grid description
gridtype = lonlat
gridsize = 93264
xname = longitude
xlongname = Longitude values
xunits = degrees_east
yname = latitude
ylongname = Latitude values
yunits = degrees_north
xsize = 464
ysize = 201
xfirst = -40.375
xinc = 0.25
yfirst = 25.375
yinc = 0.25
I tried the remapnn operator:
cdo remapnn,rr_EOBS_control.nc ARPEGE4.5_CTL_CNRM-CM3_DM_50km_1950-2000_pr.nc ARPEGE_c_pr_nn.nc
but I got the following error:
Error (gridToCurvilinear) : Grid has no values
Could someone write me how I can solve this issue?
Replies (3)
RE: Error (gridToCurvilinear) : Grid has no values - Added by Varada Vaidya over 9 years ago
I do have the same problem of getting this error. I also will appreciate if someone could help. Thanks.
RE: Error (gridToCurvilinear) : Grid has no values - Added by Beata Szabo-Takacs over 9 years ago
Hi
I could convert the stretched rotated grid of ARPEGE4.5_CTL_CNRM-CM3_DM_50km_1950-2000_pr.nc to regular grid in Matlab in, but the variables are stored in 2D matrix in function of rotated grid and time. I would like to store them to 3D matrix in function of longitude, latitude and time.
Is there a cdo operator which can carry out this issue?
I would appreciate if someone helped me!
Beata
RE: Error (gridToCurvilinear) : Grid has no values - Added by Walter Hannah over 9 years ago
I had this problem as well, but I realized that it was occuringg because I had 2 different lat/lon array pairs. a two step way around this is to first isolate the variable of interest in a temporary file, and then do the operation on the temporary file
cdo selvar,VAR ifile.nc temp.nc cdo fldavg,VAR temp.nc temp.nc
I hope that helps. Hopefully someone with more experience can find a more elegant workaround.
-Walter