<font size=3 face="Arial">Steve:</font>
<br>
<br><font size=3 face="Arial">I can received the information posted on
the GrADs Users Forum but cannot post my own reply on the forum. So I send
my email directly to you.</font>
<br>
<br><font size=3 face="Arial">You are trying to use 't.ddf' to display
your model output which use 365 day calendars. You can easily solve this
problem using NCO. The following are an example:</font>
<br>
<br><font size=3 face="Arial">ncatted -a calendar,time,d,, mam3_aerocom2.cam2.h0.0001-0005.avg.nc</font>
<br>
<br><font size=3 face="Arial">Then you can directly open the file "mam3_aerocom2.cam2.h0.0001-0005.avg.nc"
using sdfopen on GrADs. You do not need to prepare the 'ddf' file each
time. </font>
<br>
<br><font size=3 face="Arial">This works for me, I hope it is also works
for you.</font>
<br>
<br><font size=3 face="Arial">Blessings,</font>
<br>
<br><font size=3 face="Arial">Song </font>
<br><font size=2 face="sans-serif">********************************************<br>
Song Feng, Ph.D. <br>
Climatologist/Research Assistant Professor<br>
School of Natural Resources<br>
University of Nebraska-Lincoln<br>
702 Hardin Hall<br>
3310 Holdrege Street<br>
Lincoln, NE 68583-0987 U.S.A.<br>
<br>
Phone: (402) 472-6660 <br>
Fax: (402) 472-2946<br>
Email: sfeng2@unl.edu<br>
SNR web site: </font><a href=http://snr.unl.edu/><font size=2 face="sans-serif">http://snr.unl.edu</font></a><font size=2 face="sans-serif"><br>
</font><a href="http://snr.unl.edu/aboutus/who/people/faculty-member.asp?pid=559"><font size=2 face="sans-serif">http://snr.unl.edu/aboutus/who/people/faculty-member.asp?pid=559</font></a>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">"Ghan, Steven J" <Steve.Ghan@pnl.gov></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">GrADS Users Forum <gradsusr@gradsusr.org></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">02/08/2011 11:16 AM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [gradsusr] SDF file does not have
any non-coordinate variables</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Thanks, but it doesn't help.<br>
<br>
Note that when I don't have VARS/ENDVARS in my ddf file, grads can open
the file but when I query the variables it lists them but they have no
names. So for some reason grads isn't getting the variable names from the
netcdf file.<br>
<br>
-Steve<br>
<br>
<br>
On 2/8/11 8:54 AM, "Feudale Laura" <feudale@ictp.it> wrote:<br>
<br>
Hi Steve,<br>
try the following format in your variable declaration:<br>
<br>
T=>t 30 t,z,y,x Temperature<br>
<br>
Regards,<br>
<br>
-- Laura<br>
<br>
****************************************************************<br>
* Laura Feudale, Ph.D. (GMU/COLA)
*<br>
* Earth System Physics Section: Physics of Weather and Climate *<br>
* The Abdus Salam International Centre for Theoretical Physics *<br>
*
Trieste, ITALY
*<br>
* </font></tt><a href=mailto:feudale@ictp.it><tt><font size=2>mailto:feudale@ictp.it</font></tt></a><tt><font size=2>
</font></tt><a href=http://esp.ictp.it/><tt><font size=2>http://esp.ictp.it</font></tt></a><tt><font size=2>
*<br>
****************************************************************<br>
<br>
<br>
<br>
Ghan, Steven J wrote:<br>
> Jennifer, thanks for your suggestion, but it makes no difference whether
I declare it t or T. I had tried both.<br>
><br>
> -Steve<br>
><br>
><br>
> On 2/8/11 7:54 AM, "Jennifer Adams" <jma@COLA.IGES.ORG>
wrote:<br>
><br>
> The variable in the netcdf file is "T" so your variable
declaration in t.ddf should be<br>
> T=>t<br>
> instead of<br>
> t=>t<br>
><br>
> --Jennifer<br>
><br>
><br>
><br>
> On Feb 8, 2011, at 10:42 AM, Ghan, Steven J wrote:<br>
><br>
> I am using Grads version 2.0.a7.1 to open a netcdf file with xdfopen:<br>
><br>
> ga-> xdfopen t.ddf<br>
> Scanning Descriptor File: t.ddf<br>
> gadsdf: SDF file does not have any non-coordinate variables.<br>
> SDF Descriptor file t.ddf was not successfully opened & parsed.<br>
><br>
> Where<br>
> t.ddf =<br>
> dset ^mam3_aerocom2.cam2.h0.0001-0005.avg.nc<br>
> TITLE AeroCom Present Day<br>
> UNDEF 1.e36<br>
> OPTIONS 365_day_calendar<br>
> tdef time 1 linear jan2000 1mo<br>
> VARS 1<br>
> t=>t 30 99<br>
> ENDVARS<br>
><br>
> According to ncdump,<br>
><br>
> netcdf mam3_aerocom2.cam2.h0.0001-0005.avg {<br>
> dimensions:<br>
> lat = 96 ;<br>
> lon = 144 ;<br>
> lev = 30 ;<br>
> time = UNLIMITED ; // (1 currently)<br>
> double lat(lat) ;<br>
> lat:long_name = "latitude" ;<br>
> lat:units = "degrees_north"
;<br>
> double lon(lon) ;<br>
> lon:long_name = "longitude"
;<br>
> lon:units = "degrees_east" ;<br>
> double lev(lev) ;<br>
> lev:long_name = "hybrid level at
midpoints (1000*(A+B))" ;<br>
> lev:units = "level" ;<br>
> lev:positive = "down" ;<br>
> lev:standard_name = "atmosphere_hybrid_sigma_pressure_coordinate"
;<br>
> lev:formula_terms = "a: hyam b: hybm
p0: P0 ps: PS" ;<br>
> double time(time) ;<br>
> time:long_name = "time" ;<br>
> time:units = "days since 0000-01-01
00:00:00" ;<br>
> time:calendar = "noleap" ;<br>
> time:bounds = "time_bnds" ;<br>
> float T(time, lev, lat, lon) ;<br>
> T:units = "K" ;<br>
> T:long_name = "Temperature"
;<br>
> T:cell_methods = "time: mean"
;<br>
> // global attributes:<br>
> :Conventions = "CF-1.0" ;<br>
> :source = "CAM" ;<br>
> :case = "mam3_aerocom2" ;<br>
> }<br>
> Interestingly, if I remove the<br>
> VARS 1<br>
> t=>t 30 99<br>
> ENDVARS<br>
> from t.ddf, I can open the netcdf file, but query tells me<br>
> ga-> q file<br>
> File 1 : AeroCom Present Day<br>
> Descriptor: t.ddf<br>
> Binary: mam3_aerocom2.cam2.h0.0001-0005.avg.nc<br>
> Type = Gridded<br>
> Xsize = 144 Ysize = 96 Zsize = 30 Tsize =
1 Esize = 1<br>
> Number of Variables = 1<br>
> 30 t,z,y,x Temperature<br>
><br>
> The variable name is missing! So grads is unable to get the variable
name. And of course I have no way of identifying the variable.<br>
><br>
> The curious thing is that I was not having any such trouble until
I produced a new batch of model history. I compared the ncdumps from
the history that I could read with history that I could not, and found
only trivial differences unrelated to variable names.<br>
><br>
> Any suggestions out there regarding this puzzler?<br>
><br>
> -Steve Ghan<br>
><br>
> _________________________________<br>
> Steven Ghan, PhD.<br>
> FUNDAMENTAL & COMPUTATIONAL SCIENCES DIRECTORATE<br>
> Atmospheric Sciences and Global Change Division<br>
> Pacific Northwest National Laboratory<br>
> 902 Battelle Boulevard<br>
> P.O. Box 999, MSIN K9-24<br>
> Richland, WA 99352 USA<br>
> Tel: 509-372-6169<br>
> Fax: 509-372-6168<br>
> steve.ghan@pnl.gov<br>
> </font></tt><a href="http://www.pnl.gov/atmospheric/staff/staff_info.asp?staff_num=5663"><tt><font size=2>http://www.pnl.gov/atmospheric/staff/staff_info.asp?staff_num=5663</font></tt></a><tt><font size=2><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> gradsusr mailing list<br>
> gradsusr@gradsusr.org<br>
> </font></tt><a href=http://gradsusr.org/mailman/listinfo/gradsusr><tt><font size=2>http://gradsusr.org/mailman/listinfo/gradsusr</font></tt></a><tt><font size=2><br>
><br>
><br>
> --<br>
> Jennifer M. Adams<br>
> IGES/COLA<br>
> 4041 Powder Mill Road, Suite 302<br>
> Calverton, MD 20705<br>
> jma@cola.iges.org<br>
><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> gradsusr mailing list<br>
> gradsusr@gradsusr.org<br>
> </font></tt><a href=http://gradsusr.org/mailman/listinfo/gradsusr><tt><font size=2>http://gradsusr.org/mailman/listinfo/gradsusr</font></tt></a><tt><font size=2><br>
><br>
_______________________________________________<br>
gradsusr mailing list<br>
gradsusr@gradsusr.org<br>
</font></tt><a href=http://gradsusr.org/mailman/listinfo/gradsusr><tt><font size=2>http://gradsusr.org/mailman/listinfo/gradsusr</font></tt></a><tt><font size=2><br>
<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
gradsusr@gradsusr.org<br>
</font></tt><a href=http://gradsusr.org/mailman/listinfo/gradsusr><tt><font size=2>http://gradsusr.org/mailman/listinfo/gradsusr</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>