B.-J.,<div><br></div><div> Here is your problem:</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 14px; border-collapse: collapse; "> double time(time) ;<br> time:units = "day as %Y%m%d.%f" ;<br>
time:calendar = "proleptic_gregorian" ;</span></div><div><br></div><div>This is not coards compliant. The time units should say something like</div><div><br></div><div>"days since 2009-08-01". </div>
<div><br></div><div>If you can't fix the file you can always create a DDF for it fixing the time axis.</div><div><br></div><div> Arlindo</div><div><br><br><div class="gmail_quote">On Wed, Oct 14, 2009 at 8:05 PM, Ben-Jei Tsuang <span dir="ltr"><<a href="mailto:btsuang@yahoo.com">btsuang@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear All:<br>
<br>
I created a netcdf file using "CDO".<br>
(<a href="http://www.mpimet.mpg.de/fileadmin/software/cdo/" target="_blank">http://www.mpimet.mpg.de/fileadmin/software/cdo/</a>)<br>
<br>
"cdo -f nc chname,var11,sst -selhour,12 -selltype,1 -selcode,11 flx.ft06.200908"<br>
<br>
I can read the netcdf file using ncdump. But when I try to sdfopen it<br>
using grads v2.0.a7.oga.2. The error "SDF file does not have any<br>
non-coordinate variables" occurs.<br>
<br>
More details of the error and the messange of ncdump are listed as<br>
attatched. Your help are appreciated.<br>
<br>
<br>
Ben<br>
<br>
------------------------------<br>
Config: v2.0.a7.oga.2 little-endian readline printim grib2 netcdf<br>
hdf4-sds hdf5 opendap-grids,stn athena geotiff<br>
Issue 'q config' command for more information.<br>
Loading User Defined Extensions table<br>
</nuwa_cluster/opt/grads-2.0.a7.oga.2/Classic/bin/gex/udxt> ... ok.<br>
Landscape mode? ('n' for portrait): y<br>
GX Package Initialization: Size = 11 8.5<br>
ga-> sdfopen <a href="http://sst.200908.nc" target="_blank">sst.200908.nc</a><br>
Scanning self-describing file: <a href="http://sst.200908.nc" target="_blank">sst.200908.nc</a><br>
SDF file has no discernable time coordinate -- using default values.<br>
gadsdf: SDF file does not have any non-coordinate variables.<br>
-----------------------------<br>
<br>
<br>
--<br>
Ben-Jei Tsuang<br>
<br>
<br>
==================================<br>
[btsuang@nuwaln01 flx]$ ncdump <a href="http://sst.200908.nc" target="_blank">sst.200908.nc</a> |more<br>
netcdf sst.200908 {<br>
dimensions:<br>
lon = 192 ;<br>
lat = 94 ;<br>
time = UNLIMITED ; // (31 currently)<br>
variables:<br>
double lon(lon) ;<br>
lon:long_name = "longitude" ;<br>
lon:units = "degrees_east" ;<br>
lon:standard_name = "longitude" ;<br>
double lat(lat) ;<br>
lat:long_name = "latitude" ;<br>
lat:units = "degrees_north" ;<br>
lat:standard_name = "latitude" ;<br>
double time(time) ;<br>
time:units = "day as %Y%m%d.%f" ;<br>
time:calendar = "proleptic_gregorian" ;<br>
float sst(time, lat, lon) ;<br>
sst:code = 11 ;<br>
sst:table = 132 ;<br>
sst:grid_type = "gaussian" ;<br>
<br>
// global attributes:<br>
:CDI = "Climate Data Interface version 1.3.2" ;<br>
:Conventions = "CF-1.0" ;<br>
:history = "Thu Oct 15 06:51:52 2009: cdo -f nc<br>
chname,var11,sst -selhour,12 -selltype,1 -selcode,11 flx.ft06.200908<br>
<a href="http://sst.200908.nc" target="_blank">sst.200908.nc</a>" ;<br>
:CDO = "Climate Data Operators version 1.3.2<br>
(<a href="http://www.mpimet.mpg.de/cdo" target="_blank">http://www.mpimet.mpg.de/cdo</a>)" ;<br>
data:<br>
<br>
lon = 0, 1.875, 3.75, 5.625, 7.5, 9.375, 11.25, 13.125, 15, 16.875, 18.75,<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Ben-Jei Tsuang<br>
Dept. of Environmental Engineering<br>
National Chung-Hsing University<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>
</div>