Project

General

Profile

cdo remapcon (Abort): Unsupported generic coordinates

Added by Akil Hossain over 3 years ago

Hi,

I'm trying to remap the grid of a nc file to a T63 grid.

The cdo sinfo command returns the following message:

cdo sinfo global_gebco_ibcao_1min_topo_o.nc
File format : NetCDF
-1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter ID
1 : unknown unknown c instant 1 1 233312401 1 F64 : -1
Grid coordinates :
1 : generic : points=233312401 (21601x10801)
Vertical coordinates :
1 : surface : levels=1
cdo sinfo: Processed 1 variable ( 0.01s 12MB )

If I try to remap the "generic" grid to a T63 grid using the comand
it returns the following error message:

cdo -P 8 -remapcon,T63grid global_gebco_ibcao_1min_topo_o.nc global_gebco_ibcao_1min_topo_T63.nc

cdo remapcon (Abort): Unsupported generic coordinates (Variable: topo)!

I was wondering if there is a cdo command that can remap this "generic" grid to a regular grid.

Thanks in advance.

Regards
Akil


Replies (5)

RE: cdo remapcon (Abort): Unsupported generic coordinates - Added by Ralf Mueller over 3 years ago

hi Akil!

you input grid does not seem to have coordinates that CDO can understand since it only recognizes them as 'generic' without longitude/latitudes.

Can you upload the output of

 ncdump -h global_gebco_ibcao_1min_topo_o.nc

This will show the layout of the netcdf variables in more detail.

cheers
ralf

RE: cdo remapcon (Abort): Unsupported generic coordinates - Added by Akil Hossain over 3 years ago

Hi there,

Thanks for your reply. The output of ncdump -

ncdump -h global_gebco_ibcao_1min_topo_o.nc

@netcdf global_gebco_ibcao_1min_topo_o {
dimensions:
DimLon = 21601 ;
DimLat = 10801 ;
variables:
double topo(DimLat, DimLon) ;

// global attributes:
:CDI = "Climate Data Interface version 1.9.8 (https://mpimet.mpg.de/cdi)" ;
:Conventions = "CF-1.6" ;
:history = "Tue Nov 03 15:46:34 2020: cdo selvar,topo global_gebco_ibcao_1min_topo.nc global_gebco_ibcao_1min_topo_o.nc" ;
:CDO = "Climate Data Operators version 1.9.8 (https://mpimet.mpg.de/cdo)" ;
}@

Thanks
Akil

RE: cdo remapcon (Abort): Unsupported generic coordinates - Added by Ralf Mueller over 3 years ago

there are no geographical coordinates attached to topo. Hence there is no possibility to interpolate to this grid.

sorry for the bad news
ralf

RE: cdo remapcon (Abort): Unsupported generic coordinates - Added by Akil Hossain over 3 years ago

Hi Ralf,

Can you please check this one -

cdo sinfo global_gebco_ibcao_1min_topo.nc

File format : NetCDF
-1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter ID
1 : unknown unknown c instant 1 1 43202 1 F64 : -1
2 : unknown unknown c instant 1 1 21602 2 F64 : -2
3 : unknown unknown c instant 1 1 233312401 3 F64 : -3
4 : unknown unknown c instant 1 1 233312401 3 F64 : -4
Grid coordinates :
1 : generic : points=43202 (2x21601)
2 : generic : points=21602 (2x10801)
3 : generic : points=233312401 (21601x10801)
Vertical coordinates :
1 : surface : levels=1
cdo sinfo: Processed 4 variables ( 0.00s 12MB )

and

ncdump -h global_gebco_ibcao_1min_topo.nc

netcdf global_gebco_ibcao_1min_topo {
dimensions:
nax = 2 ;
DimLon = 21601 ;
DimLat = 10801 ;
variables:
double lon(DimLon, nax) ;
double lat(DimLat, nax) ;
double topo(DimLat, DimLon) ;
double topo_grad(DimLat, DimLon) ;
}

Thanks
Akil

RE: cdo remapcon (Abort): Unsupported generic coordinates - Added by Ralf Mueller over 3 years ago

this is still not CF-conform. lon and lat are not allowed to have more dimensions than the corresponding data variable. nax is causing the error here

    (1-5/5)