Project

General

Profile

Problems with cdo remapbil on given file

Added by martin lindahl over 2 years ago

Hi,

I have an nc-file withe the following structure:
($ncdump myfile.nc |head -30:)
etcdf myfile {
dimensions:
time = UNLIMITED ; // (1 currently)
Latitude = 360 ;
Longitude = 720 ;
variables:
double forested_50_percent(time, Latitude, Longitude) ;
double Latitude(Latitude) ;
double Longitude(Longitude) ;
int time(time) ;
time:long_name = "Time" ;
time:units = "years" ;
time:cell_methods = "time: mean" ;

when I do:
$cdo $remap_flags remapbil,custom_grid myfile.nc temp.nc it yields:

cdo remapbil (Abort): Unsupported generic coordinates (Variable: forested_50_percent)!

Furthermore:
$cat custom_grid:

gridtype = lonlat
gridsize = 258121
xname = Longitude
xlongname = Longitude
xunits = degrees_east
yname = Latitude
ylongname = Latitude
yunits = degrees_north
xsize = 719
ysize = 359
xfirst = -179.5
xinc = 0.5
yfirst = -89.5
yinc = 0.5

From previous questions I suspect that forested_50_percent somehow isn't sampled over an interpolatable (latlon) grid but I dont know why that is so.
Any help appreciated!

/Martin


Replies (1)

RE: Problems with cdo remapbil on given file - Added by Estanislao Gavilan over 2 years ago

Hi Martin,

the first thing that you need to check is the attributes of your file. Make sure that your variable has an attribute with the coordiantes. There are several post about this on the forum, take a look.

Regards,

Estanislao

    (1-1/1)