try to use sdfopen <a href="http://filename.nc">filename.nc</a><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Thu, May 10, 2012 at 4:12 PM, Sudev Das M P <span dir="ltr">&lt;<a href="mailto:devdas.pnr@gmail.com" target="_blank">devdas.pnr@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hai,<br>
<br>
I have taken a netcdf data file from the following link:<br>
<a href="http://www.nio.org/index/option/com_nomenu/task/show/tid/2/sid/18/id/229" target="_blank">http://www.nio.org/index/option/com_nomenu/task/show/tid/2/sid/18/id/229</a><br>
<br>
While I try to open this file in GrADS I got the following error message:<br>
====================================================<br>
ga-&gt; sdfopen <a href="http://nioa_climatology_monthly_temp_salt_nio.nc" target="_blank">nioa_climatology_monthly_temp_salt_nio.nc</a><br>
Scanning self-describing file:  <a href="http://nioa_climatology_monthly_temp_salt_nio.nc" target="_blank">nioa_climatology_monthly_temp_salt_nio.nc</a><br>
SDF Error: 365 day calendars are no longer supported by sdfopen.<br>
  To open this file with GrADS, use a descriptor file with<br>
  a complete TDEF entry and OPTIONS 365_day_calendar.<br>
====================================================<br>
<br>
Then I made a descriptor file as given below:<br>
-----------------------------------------------------------------<br>
DSET ^<a href="http://nioa_climatology_monthly_temp_salt_nio.nc" target="_blank">nioa_climatology_monthly_temp_salt_nio.nc</a><br>
UNDEF -1.e+34f<br>
XDEF 90 LINEAR 30.5 1<br>
YDEF 70 LINEAR -29.5 1<br>
ZDEF 24 LEVELS   0 10 20 30 50 75 100 125 150 200 250 300 400 500 600<br>
700 800 900 1000 1100 1200 1300 1400 1500<br>
TDEF 12 LINEAR  1Jan9999 1mo<br>
OPTIONS 365_day_calendar<br>
VARS 2<br>
temp 24 0  NIOA climatology monthly temp (degC) NIO<br>
salt 24 0  NIOA climatology monthly salt (psu) NIO<br>
ENDVARS<br>
--------------------------------------------------------------<br>
<br>
Then I tried to open it using &quot;xdfopen&quot; command, but then I got the<br>
following message:<br>
======================================================<br>
ga-&gt; xdfopen nioa_climatology_monthly_temp_salt_nio.ctl<br>
Scanning Descriptor File:  nioa_climatology_monthly_temp_salt_nio.ctl<br>
gadxdf error: Missing or invalid dimension size.<br>
  --&gt; The invalid description file record is:<br>
  --&gt; xdef 90 linear 30.5 1<br>
  The data file was not opened.<br>
======================================================<br>
<br>
Please give me your valuable suggestion to solve this problem.<br>
<br>
The complete details of the data file is given below:<br>
<br>
regards,<br>
sudev<br>
<br>
========================================================<br>
ncdump -h <a href="http://nioa_climatology_monthly_temp_salt_nio.nc" target="_blank">nioa_climatology_monthly_temp_salt_nio.nc</a><br>
netcdf nioa_climatology_monthly_temp_salt_nio {<br>
dimensions:<br>
        LONGITUDE = 90 ;<br>
        LATITUDE = 70 ;<br>
        DEPTH = 24 ;<br>
        TIME = UNLIMITED ; // (12 currently)<br>
variables:<br>
        double LONGITUDE(LONGITUDE) ;<br>
                LONGITUDE:units = &quot;degrees_east&quot; ;<br>
                LONGITUDE:modulo = 360. ;<br>
                LONGITUDE:point_spacing = &quot;even&quot; ;<br>
                LONGITUDE:axis = &quot;X&quot; ;<br>
        double LATITUDE(LATITUDE) ;<br>
                LATITUDE:units = &quot;degrees_north&quot; ;<br>
                LATITUDE:point_spacing = &quot;even&quot; ;<br>
                LATITUDE:axis = &quot;Y&quot; ;<br>
        double DEPTH(DEPTH) ;<br>
                DEPTH:positive = &quot;down&quot; ;<br>
                DEPTH:point_spacing = &quot;uneven&quot; ;<br>
                DEPTH:axis = &quot;Z&quot; ;<br>
        double TIME(TIME) ;<br>
                TIME:units = &quot;MONTHS(NOLEAP) since 0000-01-01 00:00:00&quot; ;<br>
                TIME:time_origin = &quot;01-JAN-0000 00:00:00&quot; ;<br>
                TIME:calendar = &quot;NOLEAP&quot; ;<br>
                TIME:modulo = 12. ;<br>
                TIME:axis = &quot;T&quot; ;<br>
        float TEMP(TIME, DEPTH, LATITUDE, LONGITUDE) ;<br>
                TEMP:units = &quot;degreeC&quot; ;<br>
                TEMP:missing_value = -1.e+34f ;<br>
                TEMP:_FillValue = -1.e+34f ;<br>
                TEMP:long_name = &quot;Temperature&quot; ;<br>
        float SALT(TIME, DEPTH, LATITUDE, LONGITUDE) ;<br>
                SALT:units = &quot;PSU&quot; ;<br>
                SALT:missing_value = -1.e+34f ;<br>
                SALT:_FillValue = -1.e+34f ;<br>
                SALT:long_name = &quot;Salinity&quot; ;<br>
...................................................................................................................................<br>
..................................................................................................................................<br>
LONGITUDE = 30.5, 31.5, 32.5, 33.5, 34.5, 35.5, 36.5, 37.5, 38.5, 39.5,<br>
    40.5, 41.5, 42.5, 43.5, 44.5, 45.5, 46.5, 47.5, 48.5, 49.5, 50.5, 51.5,<br>
    52.5, 53.5, 54.5, 55.5, 56.5, 57.5, 58.5, 59.5, 60.5, 61.5, 62.5, 63.5,<br>
    64.5, 65.5, 66.5, 67.5, 68.5, 69.5, 70.5, 71.5, 72.5, 73.5, 74.5, 75.5,<br>
    76.5, 77.5, 78.5, 79.5, 80.5, 81.5, 82.5, 83.5, 84.5, 85.5, 86.5, 87.5,<br>
    88.5, 89.5, 90.5, 91.5, 92.5, 93.5, 94.5, 95.5, 96.5, 97.5, 98.5, 99.5,<br>
    100.5, 101.5, 102.5, 103.5, 104.5, 105.5, 106.5, 107.5, 108.5, 109.5,<br>
    110.5, 111.5, 112.5, 113.5, 114.5, 115.5, 116.5, 117.5, 118.5, 119.5 ;<br>
<br>
 LATITUDE = -29.5, -28.5, -27.5, -26.5, -25.5, -24.5, -23.5, -22.5, -21.5,<br>
    -20.5, -19.5, -18.5, -17.5, -16.5, -15.5, -14.5, -13.5, -12.5, -11.5,<br>
    -10.5, -9.5, -8.5, -7.5, -6.5, -5.5, -4.5, -3.5, -2.5, -1.5, -0.5, 0.5,<br>
    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,<br>
    14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5,<br>
    26.5, 27.5, 28.5, 29.5, 30.5, 31.5, 32.5, 33.5, 34.5, 35.5, 36.5, 37.5,<br>
    38.5, 39.5 ;<br>
<br>
 DEPTH = 0, 10, 20, 30, 50, 75, 100, 125, 150, 200, 250, 300, 400, 500, 600,<br>
    700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500 ;<br>
<br>
 TIME = 0.46027397260274, 1.47945205479452, 2.4, 3.41917808219178,<br>
    4.40547945205479, 5.42465753424658, 6.41095890410959, 7.43013698630137,<br>
    8.44931506849315, 9.43561643835617, 10.4547945205479, 11.441095890411 ;<br>
================================================================<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Mr. Nitin Patil <br>Ph.D. Research Scholar,<br>Centre of Excellence in Climate Studies,<br>Indian Institute of Technology (IIT) Bombay,<br>Powai, Mumbai - 400076, INDIA.<br>
e-mail: <a href="mailto:nupatil@iitb.ac.in" target="_blank">nupatil@iitb.ac.in</a><br><br>
</div>