[gradsusr] NetCDF Data Descriptor File Problem

jimbo32886 at gmail.com jimbo32886 at gmail.com
Mon Aug 2 20:21:11 EDT 2010


Hello Everyone,
   I am having a problem with my data descriptor file.  I am running grads
version 1.9b4.  I currently have 12 netcdf monthly files which are named
terra200501.nc through terra200512.nc.  I am attempting to create a proper
data descriptor file so I can perform some analysis.  This is my first time
working with creating a descriptor file for multiple .nc files.  The files
have no discernible time, thus I am trying to write a descriptor file so it
does have a set time.  This is what my control file looks like:

DSET ^terra2005%t1%m2.nc
DTYPE netcdf
OPTIONS template
UNDEF -9.999e3_FillValue
TITLE Test
XDEF 360 linear -179.5 1.0
YDEF 180 linear -89.5 1.0
ZDEF 1 Levels 0
TDEF 12 linear jan2005 1mo
VARS 1
Optical_Depth_Land_And_Ocean_Mean_Mean=>aod 0 y,x aerosol optical depth
ENDVARS

This is what I get when I run ncdump:

ncdump -c terra200501.nc
netcdf terra200501 {
dimensions:
        lat = 180 ;
        lon = 360 ;
variables:
        float Optical_Depth_Land_And_Ocean_Mean_Mean(lat, lon) ;
                Optical_Depth_Land_And_Ocean_Mean_Mean:_FillValue = -9999.f
;

Optical_Depth_Land_And_Ocean_Mean_Mean:Quality_Assurance_Data_Set = "No_QA"
;
                Optical_Depth_Land_And_Ocean_Mean_Mean:scale_factor = 1.f ;
                Optical_Depth_Land_And_Ocean_Mean_Mean:Weighting =
"Pixel_Weighted_Screen" ;

Optical_Depth_Land_And_Ocean_Mean_Mean:Weighted_Parameter_Data_Set =
"Optical_Depth_Land_And_Ocean_Pixel_Counts" ;

Optical_Depth_Land_And_Ocean_Mean_Mean:Derived_From_Level_3_Daily_Data_Set =
"Optical_Depth_Land_And_Ocean_Mean" ;
                Optical_Depth_Land_And_Ocean_Mean_Mean:add_offset = 0.f ;
                Optical_Depth_Land_And_Ocean_Mean_Mean:long_name = "Aerosol
Optical Thickness at 0.55 microns for both Ocean (best)  and Land
(corrected): Mean of Daily Mean" ;
                Optical_Depth_Land_And_Ocean_Mean_Mean:Statistic_Type =
"Simple" ;
                Optical_Depth_Land_And_Ocean_Mean_Mean:units = "1" ;
                Optical_Depth_Land_And_Ocean_Mean_Mean:Aggregation_Data_Set
= "None" ;
                Optical_Depth_Land_And_Ocean_Mean_Mean:valid_range = -100,
5000 ;

Optical_Depth_Land_And_Ocean_Mean_Mean:Included_Level_2_Nighttime_Data =
"False" ;

Optical_Depth_Land_And_Ocean_Mean_Mean:Level_2_Pixel_Values_Read_As = "Real"
;
                Optical_Depth_Land_And_Ocean_Mean_Mean:structureType =
"Grid" ;
                Optical_Depth_Land_And_Ocean_Mean_Mean:unitsCategory =
"optical_depth" ;
        float lat(lat) ;
                lat:scale = 0 ;
                lat:stride = 1.f ;
                lat:gridReference = "edge" ;
                lat:standard_name = "latitude" ;
                lat:endValue = 90.f ;
                lat:units = "degrees_north" ;
                lat:scaleType = "linear" ;
                lat:startValue = -90.f ;
                lat:size = 180 ;
        float lon(lon) ;
                lon:scale = 0 ;
                lon:stride = 1.f ;
                lon:gridReference = "edge" ;
                lon:standard_name = "longitude" ;
                lon:endValue = 180.f ;
                lon:units = "degrees_east" ;
                lon:scaleType = "linear" ;
                lon:startValue = -180.f ;
                lon:size = 360 ;

// global attributes:
                :Conventions = "CF-1.0" ;
}
 data:

 lat = -89.5, -88.5, -87.5, -86.5, -85.5, -84.5, -83.5, -82.5, -81.5, -80.5,

    -79.5, -78.5, -77.5, -76.5, -75.5, -74.5, -73.5, -72.5, -71.5, -70.5,
    -69.5, -68.5, -67.5, -66.5, -65.5, -64.5, -63.5, -62.5, -61.5, -60.5,
    -59.5, -58.5, -57.5, -56.5, -55.5, -54.5, -53.5, -52.5, -51.5, -50.5,
    -49.5, -48.5, -47.5, -46.5, -45.5, -44.5, -43.5, -42.5, -41.5, -40.5,
    -39.5, -38.5, -37.5, -36.5, -35.5, -34.5, -33.5, -32.5, -31.5, -30.5,
    -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, 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 ;

 lon = -179.5, -178.5, -177.5, -176.5, -175.5, -174.5, -173.5, -172.5,
    -171.5, -170.5, -169.5, -168.5, -167.5, -166.5, -165.5, -164.5, -163.5,
    -162.5, -161.5, -160.5, -159.5, -158.5, -157.5, -156.5, -155.5, -154.5,
    -153.5, -152.5, -151.5, -150.5, -149.5, -148.5, -147.5, -146.5, -145.5,
    -144.5, -143.5, -142.5, -141.5, -140.5, -139.5, -138.5, -137.5, -136.5,
    -135.5, -134.5, -133.5, -132.5, -131.5, -130.5, -129.5, -128.5, -127.5,
    -126.5, -125.5, -124.5, -123.5, -122.5, -121.5, -120.5, -119.5, -118.5,
    -117.5, -116.5, -115.5, -114.5, -113.5, -112.5, -111.5, -110.5, -109.5,
    -108.5, -107.5, -106.5, -105.5, -104.5, -103.5, -102.5, -101.5, -100.5,
    -99.5, -98.5, -97.5, -96.5, -95.5, -94.5, -93.5, -92.5, -91.5, -90.5,
    -89.5, -88.5, -87.5, -86.5, -85.5, -84.5, -83.5, -82.5, -81.5, -80.5,
    -79.5, -78.5, -77.5, -76.5, -75.5, -74.5, -73.5, -72.5, -71.5, -70.5,
    -69.5, -68.5, -67.5, -66.5, -65.5, -64.5, -63.5, -62.5, -61.5, -60.5,
    -59.5, -58.5, -57.5, -56.5, -55.5, -54.5, -53.5, -52.5, -51.5, -50.5,
    -49.5, -48.5, -47.5, -46.5, -45.5, -44.5, -43.5, -42.5, -41.5, -40.5,
    -39.5, -38.5, -37.5, -36.5, -35.5, -34.5, -33.5, -32.5, -31.5, -30.5,
    -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, 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, 120.5, 121.5, 122.5, 123.5, 124.5, 125.5, 126.5, 127.5, 128.5,
    129.5, 130.5, 131.5, 132.5, 133.5, 134.5, 135.5, 136.5, 137.5, 138.5,
    139.5, 140.5, 141.5, 142.5, 143.5, 144.5, 145.5, 146.5, 147.5, 148.5,
    149.5, 150.5, 151.5, 152.5, 153.5, 154.5, 155.5, 156.5, 157.5, 158.5,
    159.5, 160.5, 161.5, 162.5, 163.5, 164.5, 165.5, 166.5, 167.5, 168.5,
    169.5, 170.5, 171.5, 172.5, 173.5, 174.5, 175.5, 176.5, 177.5, 178.5,
    179.5 ;
}

*** I am able to open the control file, but I have this error in Grads:
 open terra2005.ctl
Scanning description file:  terra2005.ctl
Data file terra2005%t1%m2.nc is open as file 1
LON set to 0 360
LAT set to -89.5 89.5
LEV set to 0 0
Time values set: 2005:1:1:0 2005:1:1:0
ga-> d aod
Cannot contour grid - all undefined values
******

If anyone knows how to remedy the problem please let me know.  I'm sure I am
making a minor mistake somewhere, but I can't seem to figure out what it
is.  Thank you for your time, it is very appreciated.
-Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100802/efdef394/attachment-0003.html 


More information about the gradsusr mailing list