Project

General

Profile

No Valid Data in CDO 1.6.1

Added by T. Tob almost 11 years ago

I recently installed the new version of CDO.
Everything was Ok, but once i tried to use any functions of CDO,
the output is always "no valid data found" just a "blank" map.

Could you please to help me for this,
what's wrong with my installation, do I miss something..
./configure --with-netcdf=/home/netcdf-4.2.1.1

Thank you.


Replies (3)

RE: No Valid Data in CDO 1.6.1 - Added by Uwe Schulzweida almost 11 years ago

Could you please attach a small example netCDF file?
Do you have the same problem with CDO version 1.6.0?

RE: No Valid Data in CDO 1.6.1 - Added by T. Tob almost 11 years ago

Hi Uwe,

I just donwgraded the CDO to 1.6.0 but I found the same problem "no valid data found". Is it related with time_bnds ?
Here is the detail of the data:

netcdf uwnd.total {
dimensions:
    lon = 144 ;
    lat = 25 ;
    time = UNLIMITED ; // (8036 currently)
    nbnds = 2 ;
variables:
    float level ;
        level:units = "millibar" ;
        level:actual_range = 100.f, 100.f ;
        level:long_name = "Level" ;
        level:positive = "down" ;
        level:GRIB_id = 100s ;
        level:GRIB_name = "hPa" ;
        level:axis = "Z" ;
        level:coordinate_defines = "point" ;
    float lat(lat) ;
        lat:units = "degrees_north" ;
        lat:actual_range = 30.f, -30.f ;
        lat:long_name = "Latitude" ;
        lat:standard_name = "latitude" ;
        lat:axis = "Y" ;
        lat:coordinate_defines = "point" ;
    float lon(lon) ;
        lon:units = "degrees_east" ;
        lon:long_name = "Longitude" ;
        lon:actual_range = 0.f, 357.5f ;
        lon:standard_name = "longitude" ;
        lon:axis = "X" ;
        lon:coordinate_defines = "point" ;
    double time(time) ;
        time:units = "hours since 1800-1-1 00:00:0.0" ;
        time:long_name = "Time" ;
        time:actual_range = 1569072., 1761912. ;
        time:delta_t = "0000-00-01 00:00:00" ;
        time:standard_name = "time" ;
        time:axis = "T" ;
        time:coordinate_defines = "start" ;
        time:avg_period = "0000-00-01 00:00:00" ;
        time:bounds = "time_bnds" ;
    double time_bnds(time, nbnds) ;
        time_bnds:long_name = "Time Boundaries" ;
    float uwnd(time, lat, lon) ;
        uwnd:long_name = "Daily U-wind on Pressure Levels" ;
        uwnd:valid_range = -32765s, -1266s ;
        uwnd:unpacked_valid_range = -140.f, 175.f ;
        uwnd:actual_range = -95.94f, 122.14f ;
        uwnd:units = "m/s" ;
        uwnd:missing_value = 32766s ;
        uwnd:_FillValue = -32767.f ;
        uwnd:precision = 2s ;
        uwnd:least_significant_digit = 1s ;
        uwnd:GRIB_id = 33s ;
        uwnd:GRIB_name = "UGRD" ;
        uwnd:var_desc = "u-wind" ;
        uwnd:dataset = "NCEP/DOE AMIP-II Reanalysis (Reanalysis-2) Daily Averages" ;
        uwnd:level_desc = "Pressure Levels" ;
        uwnd:statistic = "Mean" ;
        uwnd:parent_stat = "Individual Obs" ;
        uwnd:standard_name = "eastward_wind" ;
        uwnd:cell_methods = "time: mean (of 4 6-hourly values in one day)" ;

// global attributes:
        :Conventions = "CF-1.0" ;
        :title = "Daily NCEP/DOE Reanalysis 2" ;
        :history = "Sat Jul  6 16:57:09 2013: ncwa -a level uwnd.nc uwnd_new.nc\n",
            "Sat Jul  6 08:54:46 2013: ncrcat -O -d level,100.000000 -d lat,-30.000000,30.000000 -d lon,0.000000,357.500000 -d time,0,8035 -n 23,4,1 /Datasets/ncep.reanalysis2.dailyavgs/pressure/uwnd.1979.nc /Public/www/X91.63.49.222.186.8.54.45.nc\n",
            "created 2002/03/01 by RHS (netCDF2.3)" ;
        :comments = "Data is from \n",
            "NCEP/DOE AMIP-II Reanalysis (Reanalysis-2)\n",
            "(4x/day).  It consists of most variables interpolated to\n",
            "pressure surfaces from model (sigma) surfaces." ;
        :platform = "Model" ;
        :source = "NCEP/DOE AMIP-II Reanalysis (Reanalysis-2) Model" ;
        :institution = "National Centers for Environmental Prediction" ;
        :references = "http://wesley.ncep.noaa.gov/reanalysis2/\n",
            "http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis2.html" ;
        :nco_openmp_thread_number = 1 ;

Thank you for your help.

RE: No Valid Data in CDO 1.6.1 - Added by Uwe Schulzweida almost 11 years ago

Thanks for this report! This bug will be fixed in the next CDO release.
The problem is the attribute valid_range. This attribute is used in CDO to check the valid range of the data. Unfortunately this attribute contains wrong values for the data. CDO will ignore this attribute in the next release if the data type of this attribute differ from the data type of the data variable.
Workaround is to remove the attribute valid_range. Since CDO version 1.6.0 you can set the environment variable IGNORE_VALID_RANGE=1 to ignore this attribute.

    (1-3/3)