<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You can't have a negative increment.&nbsp;<div>ydef 73 linear -90 2.5</div><div><br></div><div>You may also need to add:</div><div>options yrev<br><div><br><div><div>--Jennifer</div><div><br></div><div>On May 31, 2013, at 1:00 PM, Qian, JianHua wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">

<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">

<div 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>Jennifer,</div>
<div><br>
</div>
<div>I used "open", but still have problem:</div>
<div><br>
</div>
<div>
<div>ga-&gt; open uwnd_3d_day_79_08.ctl</div>
<div>Scanning description file: &nbsp;uwnd_3d_day_79_08.ctl</div>
<div>Open Error: &nbsp;Missing or invalid dimension increment value</div>
<div>&nbsp; --&gt; The invalid description file record is:&nbsp;</div>
<div>&nbsp; --&gt; ydef &nbsp; 73 linear 90.0 -2.5</div>
<div>&nbsp; The data file was not opened.</div>
</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>Jennifer Adams &lt;<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Fri, 31 May 2013 07:35:39 -0400<br>
<span style="font-weight:bold">To: </span>GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [gradsusr] xdfopen netcdf<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
You have written a full descriptor file, so use 'open' instead of 'xdfopen'. --Jennifer
<div><br>
<div>
<div>On May 31, 2013, at 7:05 AM, Qian, JianHua wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div 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! &nbsp; &nbsp;</div>
<div>But after I added "options template", I still got the same error message:</div>
<div><br>
</div>
<div>
<div>ga-&gt; <b>xdfopen uwnd_3d_day_79_08.ctl</b></div>
<div>Scanning Descriptor File: &nbsp;uwnd_3d_day_79_08.ctl</div>
<div>gadxdf error: Missing or invalid dimension size.</div>
<div>&nbsp; --&gt; The invalid description file record is:&nbsp;</div>
<div>&nbsp; --&gt; xdef &nbsp;144 linear 0.0 2.5</div>
<div>&nbsp; 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 &nbsp;-1.e+34</div>
<div>xdef &nbsp;144 linear 0.0 2.5</div>
<div>ydef &nbsp; 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 &nbsp;10958 linear 00z01jan1979 &nbsp;24hr</div>
<div>vars 1</div>
<div>uwnd &nbsp; &nbsp; &nbsp;17 &nbsp; t,z,y,x &nbsp; &nbsp;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 &lt;<a href="mailto:hui.wang@noaa.gov">hui.wang@noaa.gov</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<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 &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<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">
&lt;<a href="mailto:JianHua_Qian@uml.edu" target="_blank">JianHua_Qian@uml.edu</a>&gt;</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-&gt; xdfopen uwnd_3d_day_79_08.ctl</div>
<div>Scanning Descriptor File: &nbsp;uwnd_3d_day_79_08.ctl</div>
<div>gadxdf error: Missing or invalid dimension size.</div>
<div>&nbsp; --&gt; The invalid description file record is:&nbsp;</div>
<div>&nbsp; --&gt; xdef &nbsp;144 linear 0.0 2.5</div>
<div>&nbsp; The data file was not opened.</div>
</div>
<div><br>
</div>
<div>The descriptor file&nbsp;uwnd_3d_day_79_08.ctl &nbsp; 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 &nbsp;-1.e+34</div>
<div>xdef &nbsp;144 linear 0.0 2.5</div>
<div>ydef &nbsp; 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 &nbsp;10958 linear 00z01jan1979 &nbsp;24hr</div>
<div>vars 1</div>
<div>uwnd &nbsp; &nbsp; &nbsp;17 &nbsp; t,z,y,x &nbsp; &nbsp;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? &nbsp;</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></div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote>
</div>
<br>
<div apple-content-edited="true"><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; ">
<div>--</div>
<div>Jennifer M. Adams</div>
<div>IGES/COLA</div>
<div>4041 Powder Mill Road, Suite 302</div>
<div>Calverton, MD 20705</div>
<div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div>
<div><br class="khtml-block-placeholder">
</div>
<br class="Apple-interchange-newline">
</span></span></div>
<br>
</div>
</div>
</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>
</div>

_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></span>
</div>
<br></div></div></body></html>