<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
DIV.FoxDiv20110831055809671065 {
        LINE-HEIGHT: 1.5; FONT-FAMILY: 宋体; COLOR: #000000; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.19120"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>d (air+-512.81)*0.01</DIV>
<DIV>d air*0.01+-512.81</DIV>
<DIV> </DIV>
<DIV>???</DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>Sender:</B> <A href="mailto:smcmillan@planalytics.com">Stephen
McMillan</A></DIV>
<DIV><B>Date:</B> 2011年8月31日(星期三) 上午5:52</DIV>
<DIV><B>To:</B> <A href="mailto:gradsusr@gradsusr.org">GrADS Users
Forum</A></DIV>
<DIV><B>Subject:</B> Re: [gradsusr] Problem Displaying Templated Multiple
File Data</DIV></DIV></DIV>
<DIV>
<DIV class=FoxDiv20110831055809671065>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=>tmp 0 t,y,x 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. So I added the "yrev" OPTIONS keyword and that appears
to have fixed it. </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><<A href="mailto:jma@cola.iges.org">jma@cola.iges.org</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<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. 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. 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=>tmp 0 t,y,x 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.
When I launch it in GrADS, it opens "normally" but the data displays
with values much lower than expected. 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 </bin/gex/udxt> ...
ok.</DIV>
<DIV>GX Package Initialization: Size = 11 8.5</DIV>
<DIV>ga-> open c:\cdf\dailymeans\air.sig995.daily.1948-.ctl</DIV>
<DIV>Scanning description file:
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-> 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=>tmp 0 t,y,x Mean Daily Air Temperature at
sigma level 995 (degK)</DIV>
<DIV>endvars</DIV>
<DIV>ga-> set time 25dec1953 5jan1954</DIV>
<DIV>Time values set: 1953:12:25:0 1954:1:5:0</DIV>
<DIV>ga-> 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-></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.
I also noticed that the display pattern itself is not consistent with
the original files' data. 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. I would appreciate someone suggesting a fix. I am
using Opengrads 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="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-SPACING: 0px 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px">
<DIV style="WORD-WRAP: break-word"><SPAN
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-SPACING: 0px 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px"><SPAN
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-SPACING: 0px 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); 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.
***************************************************
</PRE></DIV></DIV>
<SCRIPT type=text/javascript>
function img_zoom(e, o)
{
var zoom = parseInt(o.style.zoom, 10) || 100;
zoom += e.wheelDelta / 12;
if (((zoom >= 50) && (e.wheelDelta < 0)) || ((zoom < 200) && (e.wheelDelta > 0))) o.style.zoom = zoom + '%';
return false;
}
</SCRIPT>
</BODY></HTML>