<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">This is a known bug. You have to use the open command and a full descriptor file. Please see a thread in the archives that ended with this message: <a href="http://gradsusr.org/pipermail/gradsusr/2011-February/012513.html">http://gradsusr.org/pipermail/gradsusr/2011-February/012513.html</a><div>--Jennifer</div><div><br><div><br></div><div><br><div><div><br><div><div>On Aug 31, 2011, at 1:33 PM, Sara A. Rauscher wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi-<br>I am having trouble getting grads to read output from CAM. I am using <br>grads version 2 -<br>Config: v2.0.a9 little-endian readline printim grib2 netcdf hdf4-sds <br>hdf5 opendap-grids,stn geotiff shapefile<br><br>When I open the file with sdfopen, it will not read the variable name. <br>When I do "q file", grads doesn't read the variable name:<br>ga-> q file<br>File 1 :<br> Descriptor: test.nc<br> Binary: test.nc<br> Type = Gridded<br> Xsize = 144 Ysize = 96 Zsize = 1 Tsize = 1 Esize = 1<br> Number of Variables = 1<br> 0 t,y,x Sea level pressure<br><br>I've tried creating DDFs to use xdfopen but this doesn't work either. <br>This is a really simple file (see ncdump below) and I can read it with <br>ncview, NCL, etc.<br>thanks<br>sara<br><br><br>The ncdump of the netcdf file ("test.nc") looks like this<br>netcdf test {<br>dimensions:<br> lat = 96 ;<br> lon = 144 ;<br> time = UNLIMITED ; // (1 currently)<br>variables:<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 time(time) ;<br> time:long_name = "time" ;<br> time:units = "days since 0001-07-01 00:00:00" ;<br> time:calendar = "leap" ;<br> time:bounds = "time_bnds" ;<br> float PSL(time, lat, lon) ;<br> PSL:units = "Pa" ;<br> PSL:long_name = "Sea level pressure" ;<br> PSL:cell_methods = "time: mean" ;<br><br>// global attributes:<br> :Conventions = "CF-1.0" ;<br> :source = "CAM" ;<br> :case = "test1" ;<br> :title = ;<br> :logname = "rauscher" ;<br> :host = "nid04099" ;<br> :Version = "$Name$" ;<br> :revision_Id = "$Id$" ;<br> :initial_file = "/global/homes/r/rauscher/cam_mpas/fv/test.nc" ;<br> :topography_file = "bnd_topo" ;<br> :history = "Wed Aug 31 10:28:36 2011: ncatted -a <br>calendar,time,o,c,leap test.nc\n",<br> "Wed Aug 31 10:28:17 2011: ncra -v PSL <br>test1.cam2.h0.0002-01.nc test1.cam2.h0.0002-02.nc <br>test1.cam2.h0.0002-03.nc test1.cam2.h0.0002-04.nc <br>test1.cam2.h0.0002-05.nc test1.cam2.h0.0002-06.nc <br>test1.cam2.h0.0002-07.nc test1.cam2.h0.0002-08.nc <br>test1.cam2.h0.0002-09.nc test1.cam2.h0.0002-10.nc <br>test1.cam2.h0.0002-11.nc test1.cam2.h0.0002-12.nc <br>test1.cam2.h0.0003-01.nc test1.cam2.h0.0003-02.nc <br>test1.cam2.h0.0003-03.nc test1.cam2.h0.0003-04.nc <br>test1.cam2.h0.0003-05.nc test1.cam2.h0.0003-06.nc <br>test1.cam2.h0.0003-07.nc test1.cam2.h0.0003-08.nc <br>test1.cam2.h0.0003-09.nc test1.cam2.h0.0003-10.nc <br>test1.cam2.h0.0003-11.nc test1.cam2.h0.0003-12.nc <br>test1.cam2.h0.0004-01.nc test1.cam2.h0.0004-02.nc <br>test1.cam2.h0.0004-03.nc test1.cam2.h0.0004-04.nc <br>test1.cam2.h0.0004-05.nc test1.cam2.h0.0004-06.nc <br>test1.cam2.h0.0004-07.nc test1.cam2.h0.0004-08.nc <br>test1.cam2.h0.0004-09.nc test1.cam2.h0.0004-10.nc <br>test1.cam2.h0.0004-11.nc test1.cam2.h0.0004-12.nc <br>test1.cam2.h0.0005-01.nc test1.cam2.h0.0005-02.nc <br>test1.cam2.h0.0005-03.nc test1.cam2.h0.0005-04.nc <br>test1.cam2.h0.0005-05.nc test1.cam2.h0.0005-06.nc <br>test1.cam2.h0.0005-07.nc test1.cam2.h0.0005-08.nc <br>test1.cam2.h0.0005-09.nc test1.cam2.h0.0005-10.nc <br>test1.cam2.h0.0005-11.nc test1.cam2.h0.0005-12.nc test.nc" ;<br> :nco_openmp_thread_number = 1 ;<br>}<br><br><br>-- <br>Sara A. Rauscher<br>(505) 606-0512<br>T-3 Fluid Dynamics<br>MS B216<br>Los Alamos National Lab<br>Los Alamos, NM 87545 USA<br><br><br>_______________________________________________<br>gradsusr mailing list<br>gradsusr@gradsusr.org<br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></blockquote></div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 12px; "><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>jma@cola.iges.org</div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div> </div><br></div></div></div></div></body></html>