[gradsusr] Error opening NetCDF file

Sudev Das M P devdas.pnr at gmail.com
Thu May 10 06:42:32 EDT 2012


Hai,

I have taken a netcdf data file from the following link:
http://www.nio.org/index/option/com_nomenu/task/show/tid/2/sid/18/id/229

While I try to open this file in GrADS I got the following error message:
====================================================
ga-> sdfopen nioa_climatology_monthly_temp_salt_nio.nc
Scanning self-describing file:  nioa_climatology_monthly_temp_salt_nio.nc
SDF Error: 365 day calendars are no longer supported by sdfopen.
  To open this file with GrADS, use a descriptor file with
  a complete TDEF entry and OPTIONS 365_day_calendar.
====================================================

Then I made a descriptor file as given below:
-----------------------------------------------------------------
DSET ^nioa_climatology_monthly_temp_salt_nio.nc
UNDEF -1.e+34f
XDEF 90 LINEAR 30.5 1
YDEF 70 LINEAR -29.5 1
ZDEF 24 LEVELS   0 10 20 30 50 75 100 125 150 200 250 300 400 500 600
700 800 900 1000 1100 1200 1300 1400 1500
TDEF 12 LINEAR  1Jan9999 1mo
OPTIONS 365_day_calendar
VARS 2
temp 24 0  NIOA climatology monthly temp (degC) NIO
salt 24 0  NIOA climatology monthly salt (psu) NIO
ENDVARS
--------------------------------------------------------------

Then I tried to open it using "xdfopen" command, but then I got the
following message:
======================================================
ga-> xdfopen nioa_climatology_monthly_temp_salt_nio.ctl
Scanning Descriptor File:  nioa_climatology_monthly_temp_salt_nio.ctl
gadxdf error: Missing or invalid dimension size.
  --> The invalid description file record is:
  --> xdef 90 linear 30.5 1
  The data file was not opened.
======================================================

Please give me your valuable suggestion to solve this problem.

The complete details of the data file is given below:

regards,
sudev

========================================================
ncdump -h nioa_climatology_monthly_temp_salt_nio.nc
netcdf nioa_climatology_monthly_temp_salt_nio {
dimensions:
        LONGITUDE = 90 ;
        LATITUDE = 70 ;
        DEPTH = 24 ;
        TIME = UNLIMITED ; // (12 currently)
variables:
        double LONGITUDE(LONGITUDE) ;
                LONGITUDE:units = "degrees_east" ;
                LONGITUDE:modulo = 360. ;
                LONGITUDE:point_spacing = "even" ;
                LONGITUDE:axis = "X" ;
        double LATITUDE(LATITUDE) ;
                LATITUDE:units = "degrees_north" ;
                LATITUDE:point_spacing = "even" ;
                LATITUDE:axis = "Y" ;
        double DEPTH(DEPTH) ;
                DEPTH:positive = "down" ;
                DEPTH:point_spacing = "uneven" ;
                DEPTH:axis = "Z" ;
        double TIME(TIME) ;
                TIME:units = "MONTHS(NOLEAP) since 0000-01-01 00:00:00" ;
                TIME:time_origin = "01-JAN-0000 00:00:00" ;
                TIME:calendar = "NOLEAP" ;
                TIME:modulo = 12. ;
                TIME:axis = "T" ;
        float TEMP(TIME, DEPTH, LATITUDE, LONGITUDE) ;
                TEMP:units = "degreeC" ;
                TEMP:missing_value = -1.e+34f ;
                TEMP:_FillValue = -1.e+34f ;
                TEMP:long_name = "Temperature" ;
        float SALT(TIME, DEPTH, LATITUDE, LONGITUDE) ;
                SALT:units = "PSU" ;
                SALT:missing_value = -1.e+34f ;
                SALT:_FillValue = -1.e+34f ;
                SALT:long_name = "Salinity" ;
...................................................................................................................................
..................................................................................................................................
LONGITUDE = 30.5, 31.5, 32.5, 33.5, 34.5, 35.5, 36.5, 37.5, 38.5, 39.5,
    40.5, 41.5, 42.5, 43.5, 44.5, 45.5, 46.5, 47.5, 48.5, 49.5, 50.5, 51.5,
    52.5, 53.5, 54.5, 55.5, 56.5, 57.5, 58.5, 59.5, 60.5, 61.5, 62.5, 63.5,
    64.5, 65.5, 66.5, 67.5, 68.5, 69.5, 70.5, 71.5, 72.5, 73.5, 74.5, 75.5,
    76.5, 77.5, 78.5, 79.5, 80.5, 81.5, 82.5, 83.5, 84.5, 85.5, 86.5, 87.5,
    88.5, 89.5, 90.5, 91.5, 92.5, 93.5, 94.5, 95.5, 96.5, 97.5, 98.5, 99.5,
    100.5, 101.5, 102.5, 103.5, 104.5, 105.5, 106.5, 107.5, 108.5, 109.5,
    110.5, 111.5, 112.5, 113.5, 114.5, 115.5, 116.5, 117.5, 118.5, 119.5 ;

 LATITUDE = -29.5, -28.5, -27.5, -26.5, -25.5, -24.5, -23.5, -22.5, -21.5,
    -20.5, -19.5, -18.5, -17.5, -16.5, -15.5, -14.5, -13.5, -12.5, -11.5,
    -10.5, -9.5, -8.5, -7.5, -6.5, -5.5, -4.5, -3.5, -2.5, -1.5, -0.5, 0.5,
    1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5,
    14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5,
    26.5, 27.5, 28.5, 29.5, 30.5, 31.5, 32.5, 33.5, 34.5, 35.5, 36.5, 37.5,
    38.5, 39.5 ;

 DEPTH = 0, 10, 20, 30, 50, 75, 100, 125, 150, 200, 250, 300, 400, 500, 600,
    700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500 ;

 TIME = 0.46027397260274, 1.47945205479452, 2.4, 3.41917808219178,
    4.40547945205479, 5.42465753424658, 6.41095890410959, 7.43013698630137,
    8.44931506849315, 9.43561643835617, 10.4547945205479, 11.441095890411 ;
================================================================



More information about the gradsusr mailing list