<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Hui and Grads Users, thanks! </div>
<div>But after I added "options template", I still got the same error message:</div>
<div><br>
</div>
<div>
<div>ga-> <b>xdfopen uwnd_3d_day_79_08.ctl</b></div>
<div>Scanning Descriptor File: uwnd_3d_day_79_08.ctl</div>
<div>gadxdf error: Missing or invalid dimension size.</div>
<div> --> The invalid description file record is: </div>
<div> --> xdef 144 linear 0.0 2.5</div>
<div> The data file was not opened.</div>
</div>
<div><br>
</div>
<div>Now <b>my ctl file</b> is as follows:</div>
<div><br>
</div>
<div>
<div>dset ^uwnd.%y4.nc</div>
<div>dtype netcdf</div>
<div>title 3-D NCEP-DOE uwnd 1jan1979 to 31dec2008</div>
<div>options template</div>
<div>undef -1.e+34</div>
<div>xdef 144 linear 0.0 2.5</div>
<div>ydef 73 linear 90.0 -2.5</div>
<div>zdef 17 levels 1000 925 850 700 600 500 400 300 250 200 150 100 70 50 30 20 10</div>
<div>tdef 10958 linear 00z01jan1979 24hr</div>
<div>vars 1</div>
<div>uwnd 17 t,z,y,x m/s</div>
<div>Endvars</div>
</div>
<div><br>
</div>
<div>I do not know what is wrong with my grads descriptor file.</div>
<div><br>
</div>
<div>Thanks!</div>
<div>Joshua</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Hui Wang - NOAA Affiliate <<a href="mailto:hui.wang@noaa.gov">hui.wang@noaa.gov</a>><br>
<span style="font-weight:bold">Reply-To: </span>GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Date: </span>Thu, 30 May 2013 23:44:24 -0400<br>
<span style="font-weight:bold">To: </span>GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [gradsusr] xdfopen netcdf<br>
</div>
<div><br>
</div>
<div dir="ltr">Hi Joshua,
<div><br>
</div>
<div style="">I think you need to add "options template" in the ctl file.</div>
<div style=""><br>
</div>
<div style="">Good luck,</div>
<div style="">Hui</div>
<div style=""><br>
</div>
<div style=""><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, May 30, 2013 at 10:32 PM, Qian, JianHua <span dir="ltr">
<<a href="mailto:JianHua_Qian@uml.edu" target="_blank">JianHua_Qian@uml.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Grads Users,</div>
<div><br>
</div>
<div>I got the following message when doing</div>
<div>xdfopen uwnd_3d_day_79_08.ctl</div>
<div><br>
</div>
<div>
<div>ga-> xdfopen uwnd_3d_day_79_08.ctl</div>
<div>Scanning Descriptor File: uwnd_3d_day_79_08.ctl</div>
<div>gadxdf error: Missing or invalid dimension size.</div>
<div> --> The invalid description file record is: </div>
<div> --> xdef 144 linear 0.0 2.5</div>
<div> The data file was not opened.</div>
</div>
<div><br>
</div>
<div>The descriptor file uwnd_3d_day_79_08.ctl is copied below:</div>
<div><br>
</div>
<div>
<div>dset ^uwnd.%<a href="http://y4.nc" target="_blank">y4.nc</a></div>
<div>dtype netcdf</div>
<div>title 3-D NCEP-DOE uwnd 1jan1979 to 31dec2008</div>
<div>undef -1.e+34</div>
<div>xdef 144 linear 0.0 2.5</div>
<div>ydef 73 linear 90.0 -2.5</div>
<div>zdef 17 levels 1000 925 850 700 600 500 400 300 250 200 150 100 70 50 30 20 10</div>
<div>tdef 10958 linear 00z01jan1979 24hr</div>
<div>vars 1</div>
<div>uwnd 17 t,z,y,x m/s</div>
<div>Endvars</div>
</div>
<div><br>
</div>
<div>The data files are in the current directory:</div>
<div><a href="http://uwnd.1979.nc" target="_blank">uwnd.1979.nc</a></div>
<div><a href="http://uwnd.1980.nc" target="_blank">uwnd.1980.nc</a></div>
<div>…</div>
<div>When I do ncdump <a href="http://uwnd.1979.nc" target="_blank">uwnd.1979.nc</a> , I got:</div>
<div>
<div>netcdf uwnd.1979 {</div>
<div>dimensions:</div>
<div><span style="white-space:pre-wrap"></span>lon = 144 ;</div>
<div><span style="white-space:pre-wrap"></span>lat = 73 ;</div>
<div><span style="white-space:pre-wrap"></span>level = 17 ;</div>
<div><span style="white-space:pre-wrap"></span>time = UNLIMITED ; // (365 currently)</div>
<div><span style="white-space:pre-wrap"></span>nbnds = 2 ;</div>
<div>variables:</div>
<div><span style="white-space:pre-wrap"></span>float level(level) ;</div>
<div><span style="white-space:pre-wrap"></span>level:units = "millibar" ;</div>
<div><span style="white-space:pre-wrap"></span>level:actual_range = 1000.f, 10.f ;</div>
<div><span style="white-space:pre-wrap"></span>level:long_name = "Level" ;</div>
<div><span style="white-space:pre-wrap"></span>level:positive = "down" ;</div>
<div><span style="white-space:pre-wrap"></span>level:GRIB_id = 100s ;</div>
<div><span style="white-space:pre-wrap"></span>level:GRIB_name = "hPa" ;</div>
<div><span style="white-space:pre-wrap"></span>level:axis = "z" ;</div>
<div><span style="white-space:pre-wrap"></span>level:coordinate_defines = "point" ;</div>
<div><span style="white-space:pre-wrap"></span>float lat(lat) ;</div>
<div><span style="white-space:pre-wrap"></span>lat:units = "degrees_north" ;</div>
<div><span style="white-space:pre-wrap"></span>lat:actual_range = 90.f, -90.f ;</div>
<div><span style="white-space:pre-wrap"></span>lat:long_name = "Latitude" ;</div>
<div><span style="white-space:pre-wrap"></span>lat:standard_name = "latitude_north" ;</div>
<div><span style="white-space:pre-wrap"></span>lat:axis = "y" ;</div>
<div><span style="white-space:pre-wrap"></span>lat:coordinate_defines = "point" ;</div>
<div><span style="white-space:pre-wrap"></span>float lon(lon) ;</div>
<div><span style="white-space:pre-wrap"></span>lon:units = "degrees_east" ;</div>
<div><span style="white-space:pre-wrap"></span>lon:long_name = "Longitude" ;</div>
<div><span style="white-space:pre-wrap"></span>lon:actual_range = 0.f, 357.5f ;</div>
<div><span style="white-space:pre-wrap"></span>lon:standard_name = "longitude_east" ;</div>
<div><span style="white-space:pre-wrap"></span>lon:axis = "x" ;</div>
<div><span style="white-space:pre-wrap"></span>lon:coordinate_defines = "point" ;</div>
<div><span style="white-space:pre-wrap"></span>double time(time) ;</div>
<div><span style="white-space:pre-wrap"></span>time:units = "hours since 1800-1-1 00:00:0.0" ;</div>
<div><span style="white-space:pre-wrap"></span>time:long_name = "Time" ;</div>
<div><span style="white-space:pre-wrap"></span>time:actual_range = 1569072., 1577808. ;</div>
<div><span style="white-space:pre-wrap"></span>time:delta_t = "0000-00-01 00:00:00" ;</div>
<div><span style="white-space:pre-wrap"></span>time:standard_name = "time" ;</div>
<div><span style="white-space:pre-wrap"></span>time:axis = "t" ;</div>
<div><span style="white-space:pre-wrap"></span>time:coordinate_defines = "start" ;</div>
<div><span style="white-space:pre-wrap"></span>time:avg_period = "0000-00-01 00:00:00" ;</div>
</div>
<div>…</div>
<div>Could someone give me a clue? </div>
<div><br>
</div>
<div>Thanks!</div>
<div>Joshua</div>
</div>
<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>
<br>
</blockquote>
</div>
<br>
</div>
_______________________________________________ gradsusr mailing list <a href="mailto:gradsusr@gradsusr.org">
gradsusr@gradsusr.org</a> <a href="http://gradsusr.org/mailman/listinfo/gradsusr">
http://gradsusr.org/mailman/listinfo/gradsusr</a> </span>
</body>
</html>