<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Glad to hear it is working. Just for the record, the third argument to the UNPACK entry is not necessary, the two attribute names are all you need.&nbsp;--Jennifer<div><br><div><div><div>On Aug 30, 2011, at 5:52 PM, Stephen McMillan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Jennifer,<div><br><div>I did a "q attr" check on the 1948 file and found this:</div><div><div>air Float32 add_offset 512.81</div><div>air Float32 scale_factor 0.01</div><div><br></div><div>Trying to follow example in the GrADS documentation and a few trial-and-error runs, here's my revised descriptor:</div> <div><div><br></div><div><div><div>DSET h:\cdf\dailymeans\air.sig995.%<a href="http://y4.nc">y4.nc</a></div><div>TITLE Daily Air Temperature Sig995 01Jan1948-current</div><div>DTYPE netcdf</div><div>OPTIONS template yrev</div> <div>UNDEF -9.99e+33</div><div>UNPACK scale_factor add_offset 512.81</div><div>XDEF 144 linear 0 2.5</div><div>YDEF 73 linear -90 2.5</div><div>ZDEF 1 linear 0 1</div><div>TDEF 3653 linear 01jan1948 1dy</div><div>VARS 1</div> <div>air=&gt;tmp 0 t,y,x &nbsp;Mean Daily Air Temperature at sigma level 995 (degK)</div><div>ENDVARS</div></div></div></div><div><br></div><div>Initially, after re-running, the numbers looked "okay" (a reasonable range) but I noticed they were upside-down mirror images of what I got using yearly files separately. &nbsp;So I added the "yrev" OPTIONS keyword and that appears to have fixed it. &nbsp;</div> <div><br></div><div>I believe everything works correctly now, so thanks for pointing me in the right direction!</div><div><br></div><div>Stephen McMillan</div><div><div><div><br></div></div></div><br><div class="gmail_quote"> On Tue, Aug 30, 2011 at 4:40 PM, Jennifer Adams <span dir="ltr">&lt;<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</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="word-wrap:break-word">Looks like you need the UNPACK entry in your descriptor file. Check your netcdf files for scale_factor and add_offset attributes.<div>--Jennifer</div><div><br><div><div><div></div><div class="h5"> <div>On Aug 30, 2011, at 4:31 PM, Stephen McMillan wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5">I am having a problem correctly displaying multiple file data using a template control file. &nbsp;My objective is to open, for example, the set of daily air temperature data files (in yearly files) from 1948 to current as a single file, then display/analyze the data as needed without having to open each file separately. &nbsp;Contents of control file (air.sig995.daily.1948-.ctl):<div> <br></div><div><div>DSET h:\cdf\dailymeans\air.sig995.%<a href="http://y4.nc" target="_blank">y4.nc</a></div><div>TITLE Daily Air Temperature Sig995 01Jan1948-current</div><div>DTYPE netcdf</div><div>OPTIONS template</div> <div>UNDEF -9.99e+33</div> <div>XDEF 144 linear 0 2.5</div><div>YDEF 73 linear -90 2.5</div><div>ZDEF 1 linear 0 1</div><div>TDEF 3653 linear 01jan1948 1dy</div><div>VARS 1</div><div>air=&gt;tmp 0 t,y,x &nbsp;Mean Daily Air Temperature at sigma level 995 (degK)</div> <div>ENDVARS</div></div><div><br></div><div>For test purposes, I set TDEF to cover only the first 10 years. &nbsp;When I launch it in GrADS, it opens "normally" but the data displays with values much lower than expected. &nbsp;Following is the GrADS session transcript:</div> <div><br></div><div>Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.3</div><div>Copyright (c) 1988-2008 by Brian Doty and the</div><div>Institute for Global Environment and Society (IGES)</div><div>GrADS comes with ABSOLUTELY NO WARRANTY</div> <div>See file COPYRIGHT for more information</div><div><br></div><div>Config: v2.0.a7.oga.3 little-endian readline printim grib2 netcdf hdf4-sds hdf5</div><div>opendap-grids,stn athena geotiff</div><div>Issue 'q config' command for more information.</div> <div>Loading User Defined Extensions table &lt;/bin/gex/udxt&gt; ... ok.</div><div>GX Package Initialization: Size = 11 8.5</div><div>ga-&gt; open c:\cdf\dailymeans\air.sig995.daily.1948-.ctl</div><div>Scanning description file: &nbsp;c:\cdf\dailymeans\air.sig995.daily.1948-.ctl</div> <div>Data file h:\cdf\dailymeans\air.sig995.%<a href="http://y4.nc" target="_blank">y4.nc</a> is open as file 1</div><div>LON set to 0 360</div><div>LAT set to -90 90</div><div>LEV set to 0 0</div><div>Time values set: 1948:1:1:0 1948:1:1:0</div> <div>E set to 1 1</div><div>ga-&gt; q ctlinfo</div><div>dset h:\cdf\dailymeans\air.sig995.%<a href="http://y4.nc" target="_blank">y4.nc</a></div><div>title Daily Air Temperature Sig995 01Jan1948-current</div><div>undef -9.99e+33</div> <div> dtype netcdf</div><div>xdef 144 linear 0 2.5</div><div>ydef 73 linear -90 2.5</div><div>zdef 1 linear 0 1</div><div>tdef 3653 linear 00Z01JAN1948 1440mn</div><div>vars 1</div><div>air=&gt;tmp &nbsp;0 &nbsp;t,y,x &nbsp;Mean Daily Air Temperature at sigma level 995 (degK)</div> <div>endvars</div><div>ga-&gt; set time 25dec1953 5jan1954</div><div>Time values set: 1953:12:25:0 1954:1:5:0</div><div>ga-&gt; d tmp-273.15</div><div>Contouring: -29000 to -21000 interval 1000</div><div>Contouring: -29000 to -21000 interval 1000</div> <div>Contouring: -29000 to -21000 interval 1000</div><div>Contouring: -29000 to -21000 interval 1000</div><div>Contouring: -29000 to -21000 interval 1000</div><div>Contouring: -29000 to -21000 interval 1000</div><div>Contouring: -29000 to -21000 interval 1000</div> <div>Contouring: -29000 to -21000 interval 1000</div><div>Contouring: -29000 to -21000 interval 1000</div><div>Contouring: -29000 to -21000 interval 1000</div><div>Contouring: -29000 to -21000 interval 1000</div><div>Contouring: -29000 to -21000 interval 1000</div> <div>ga-&gt;</div><div>______________________________________</div><div><br></div><div>I was expecting data to display in deg C, i.e., in the range of roughly -50 to 30, which is what I would get if I open a yearly file separately. &nbsp;I also noticed that the display pattern itself is not consistent with the original files' data. &nbsp;The data folder contains valid yearly files from 1948 through 2011.</div> <div><br></div><div>I did search the <a href="http://gradsusr.org" target="_blank">gradsusr.org</a> archives for help, but could not find a solution. &nbsp;I would appreciate someone suggesting a fix. &nbsp;I am using Opengrads&nbsp;Version 2.0.a7.oga.3 on a Windows XP.</div> <div><br></div><div>Stephen McMillan</div><div><br></div> </div></div><pre>***************************************************
The information contained in this e-mail message 
is intended only for the use of the recipient(s) 
named above and may contain information that is 
privileged, confidential, and/or proprietary. 
If you are not the intended recipient, you may not
review, copy or distribute this message. If you have
received this communication in error, please notify 
the sender immediately by e-mail, and delete the original message.
***************************************************

_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</pre></blockquote></div><font color="#888888"><br><div> <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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"> <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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><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;text-indent:0px;text-transform:none;white-space:normal;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" target="_blank">jma@cola.iges.org</a></div><div><br> </div><br></span></span></div></span> </div><br></font></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></div> <pre>***************************************************
The information contained in this e-mail message 
is intended only for the use of the recipient(s) 
named above and may contain information that is 
privileged, confidential, and/or proprietary. 
If you are not the intended recipient, you may not
review, copy or distribute this message. If you have
received this communication in error, please notify 
the sender immediately by e-mail, and delete the original message.
***************************************************

_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></pre></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; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><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></div></span> </div><br></div></div></body></html>