Project

General

Profile

remapbil (Abort): Unsupported grid type: generic

Added by Noelia Otero over 10 years ago

Hi!

I have been trying to interpolate a data set by using remapbil. I saw that this question has already been posted many times before, and sorry for being repetitive, but I can't see the problem with my file.
The netcdf information shows:

File format: netCDF
-1 : Institut Source Param Time Typ Grid Size Num Levels Num
1 : unknown unknown -1 var F64 1872 1 1 1
Horizontal grids :
1 : generic > size : dim = 1872 nx = 39 ny = 48
available : xvals yvals
Vertical grids :
1 : surface : 0
Time axis : 3653 steps
RefTime = 1999-31-12 00:00:00 Units = days Calendar = STANDARD
YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss
2001-07-17 00:00:00 2001-07-18 00:00:00 2001-07-19 00:00:00 2001-07-20 00:00:00
2001-07-21 00:00:00 2001-07-22 00:00:00 2001-07-23 00:00:00 2001-07-24 00:00:00
......

And I am trying to use:
cdo remapbil,r144x73 ifile ofile
with the error: cdo remapbil (Abort): Unsupported grid type: generic

I don't know where the problem exactly is. In addiction, if I select one year before I also have one more problem:

Warning (cdfSetDim) : Inconsistent dimension definition for lon! dimid = 0; type = 2; newtype = 1

cdo remapbil (Abort): Unsupported grid type: generic

I'd really appreciate any help.

Many thanks in advance!
(Attached the file with one year).

Cheers,

Noelia.


Replies (4)

RE: remapbil (Abort): Unsupported grid type: generic - Added by Uwe Schulzweida over 10 years ago

Hi Noelia,

This seems to be a CDO bug. I will try to fix it for the next release.
The problem are the confusing lat/lon attributes:

    double lat(lat) ;
        lat:standard_name = "grid_longitude" ;
        lat:long_name = "longitude" ;
        lat:units = "degrees_north" ;
        lat:axis = "X" ;
    double lon(lon) ;
        lon:standard_name = "grid_latitude" ;
        lon:long_name = "longitude" ;
        lon:units = "degrees_east" ;
        lon:axis = "Y" ;

The variable lat has the longitude attributes and the variable lon has the latitude attributes. But this shouldn't be a problem. I think the problem is that lat and lon have the same long_name="longitude" attribute.
A workaround for this problem is to rename the lon attribute long_name to "latitude":
ncatted -a long_name,lon,c,c,"latitude" mda8.2001.nc mda8.2001.new.nc

Cheers,
Uwe

RE: remapbil (Abort): Unsupported grid type: generic - Added by Noelia Otero over 10 years ago

Hi Uwe,

Thanks for your answer. I tried to change the name,as you suggested, but unfortunately it is not working. After doing the ncatted process, the ncdump -h give me the same information and it should be changed, right?

netcdf new {
dimensions:
lat = 39 ;
lon = 48 ;
time = 3653 ;
variables:
double MDA8_SurfO3(time, lon, lat) ;
MDA8_SurfO3:description = "Maximum daily 8-hr average (MDA8) of surface ozone (ppb) over Europe from 01/01/2000 - 12/31/2009" ;
MDA8_SurfO3:units = "parts per billion = nmol/mol" ;
double lat(lat) ;
lat:units = "degrees_north" ;
lat:long_name = "longitude" ;
double lon(lon) ;
lon:units = "degrees_east" ;
lon:long_name = "longitude" ;
double time(time) ;
time:units = "days since 12-31-1999" ;
time:long_name = "time" ;

// global attributes:
:history = "Fri Jun 20 17:58:18 2014: ncatted -a long_name,lon,c,c,latitude mda8.nc new.nc" ;
}

the long_name for latitude is still wrong...

I would like also to ask you, because the original file should start in 2000 (days since 12-31-1999), nevertheless if I use cdo showyear (or showdate) I see that the first date that appears is in 2001-07-17 (could it be related with the other problem? or should I have to use settaxis, 2000-01-01,00:00, 1 days?

Many thanks again for your help!

Cheers,

Noelia

RE: remapbil (Abort): Unsupported grid type: generic - Added by Matt Thompson over 10 years ago

Noelia,

Try:

ncatted -a long_name,lon,m,c,"latitude" mda8.2001.nc mda8.2001.new.nc

I think the mode was wrong ("c"reate not "m"odify).

RE: remapbil (Abort): Unsupported grid type: generic - Added by Noelia Otero over 10 years ago

Thanks a lot! Now the name can be changed, thanks!

Cheers,
Noelia

    (1-4/4)