<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>Or how to build a xdfopen descriptor file for netcdf data of daily u winds:</div>
<div>uwnd.1979.nc, uwnd.1980.nc, … ?</div>
<div><br>
</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>Jianhua Qian <<a href="mailto:Jianhua_Qian@uml.edu">Jianhua_Qian@uml.edu</a>><br>
<span style="font-weight:bold">Date: </span>Fri, 31 May 2013 16:13:26 -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">Cc: </span>Jianhua Qian <<a href="mailto:Jianhua_Qian@uml.edu">Jianhua_Qian@uml.edu</a>><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; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Jennifer,</div>
<div><br>
</div>
<div>Thanks! I got the file opened, but the value of u wind is incorrect.</div>
<div>When I use sdfopen uwnd.1979.nc, d uwnd, I got:</div>
<div>
<div>ga-> sdfopen uwnd.1979.nc</div>
<div>Scanning self-describing file: uwnd.1979.nc</div>
<div>SDF file uwnd.1979.nc is open as file 1</div>
<div>LON set to 0 360 </div>
<div>LAT set to -90 90 </div>
<div>LEV set to 1000 1000 </div>
<div>Time values set: 1979:1:1:0 1979:1:1:0 </div>
<div>E set to 1 1 </div>
<div>ga-> d uwnd</div>
<div>Contouring: -15 to 15 interval 5 </div>
</div>
<div><br>
</div>
<div>However, when I use open uwnd_3d_day_79_08.ctl</div>
<div>D uwnd, I got something different:</div>
<div><br>
</div>
<div>
<div>ga-> open uwnd_3d_day_79_08.ctl</div>
<div>Scanning description file: uwnd_3d_day_79_08.ctl</div>
<div>Data file uwnd.%y4.nc is open as file 1</div>
<div>LON set to 0 360 </div>
<div>LAT set to -90 90 </div>
<div>LEV set to 1000 1000 </div>
<div>Time values set: 1979:1:1:0 1979:1:1:0 </div>
<div>E set to 1 1 </div>
<div>ga-> d uwnd</div>
<div>Contouring: -20500 to -17000 interval 500</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I tried to add options big_<span style="font-style: italic">endian or little_</span>endian, and still got unrealistic values such as</div>
<div>Contouring: -20500 to -17000 interval 500</div>
<div><br>
</div>
<div>The following is my ctl file:</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 little_endian template yrev</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>Could you help to check the problem?</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 <<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</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>Fri, 31 May 2013 13:06:03 -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>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
You can't have a negative increment.
<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">
<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-> open uwnd_3d_day_79_08.ctl</div>
<div>Scanning description file: uwnd_3d_day_79_08.ctl</div>
<div>Open Error: Missing or invalid dimension increment value</div>
<div> --> The invalid description file record is: </div>
<div> --> ydef 73 linear 90.0 -2.5</div>
<div> 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 <<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</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>Fri, 31 May 2013 07:35:39 -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>
<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! </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></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">
<div style="font-family: Helvetica; font-size: 12px; ">--</div>
<div style="font-family: Helvetica; font-size: 12px; ">Jennifer M. Adams</div>
<div style="font-family: Helvetica; font-size: 12px; ">IGES/COLA</div>
<div style="font-family: Helvetica; font-size: 12px; ">4041 Powder Mill Road, Suite 302</div>
<div style="font-family: Helvetica; font-size: 12px; ">Calverton, MD 20705</div>
<div style="font-family: Helvetica; font-size: 12px; "><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div>
<div style="font-family: Helvetica; font-size: 12px; "><br class="khtml-block-placeholder">
</div>
<span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "><br class="Apple-interchange-newline">
</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>
<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="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>
</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>
</div>
</span>
</body>
</html>