Project

General

Profile

Warning (cdfScanVarAttributes) : NetCDF: Variable not found

Added by Lei Wang almost 7 years ago

Dear CDO users,

I am trying to use remapdis command to get a .nc data from unstructured grid to latlon grid, but I get this:

cdo remapdis,r180x90 2d.nc 2d_tmp.nc
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - lon_nv
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - lat_nv
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - lon_nt
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - lat_nt
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - lon_nt
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - lat_nt
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - lon_nv
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - lat_nv
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - lon_ne
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - lat_ne
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - lon_ne
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - lat_ne
cdo remapdis (Abort): Unsupported grid type: generic

Can anyone please help?
The data has been attached for the reference.
Thank you very much.

2d.nc (4.22 MB) 2d.nc

Replies (2)

RE: Warning (cdfScanVarAttributes) : NetCDF: Variable not found - Added by Karin Meier-Fleischer almost 7 years ago

Hi Lei,

the errors occur because the dimension variables lon_nv, lat_nv, lon_nt, lat_nt, lon_ne and lat_ne are missing in the data file. They are needed because the variables temperature, avor, rvor, geopotential, u_edge and v_edge depend on them (see their coordinates attribute).

ncdump -h 2d.nc

netcdf \2d {
dimensions:
    location_nt = 5120 ;
    location_ne = 7680 ;
    location_nv = 2562 ;
    nlev = 18 ;
    nmaxvnb = 6 ;
    nthree = 3 ;
    ntwo = 2 ;
    location_t = 5120 ;
    location_e = 7680 ;
    location_v = 2562 ;
variables:
    double temperature(location_v, nlev) ;
        temperature:long_name = "temperature" ;
        temperature:coordinates = "lon_nv lat_nv" ;
    double avor(location_t, nlev) ;
        avor:long_name = "avor" ;
        avor:coordinates = "lon_nt lat_nt" ;
    double rvor(location_t, nlev) ;
        rvor:long_name = "rvor" ;
        rvor:coordinates = "lon_nt lat_nt" ;
    double geopotential(location_v, nlev) ;
        geopotential:long_name = "geopotential" ;
        geopotential:coordinates = "lon_nv lat_nv" ;
    double u_edge(location_e, nlev) ;
        u_edge:long_name = "u_edge" ;
        u_edge:coordinates = "lon_ne lat_ne" ;
    double v_edge(location_e, nlev) ;
        v_edge:long_name = "v_edge" ;
        v_edge:coordinates = "lon_ne lat_ne" ;
}


-Karin

RE: Warning (cdfScanVarAttributes) : NetCDF: Variable not found - Added by Lei Wang almost 7 years ago

Thank you Karin! Thank you very much!

Lei

    (1-2/2)