[gradsusr] Need help with time dimension in GrADS

Jennifer Adams jma at cola.iges.org
Tue Oct 28 19:45:59 EDT 2014


Hi, Christopher — 
 GrADS won’t set the T, Z, or E to varying by default when you open a file, even if Y is fixed. I think all you need to do is ‘set t 1 12’ before you invoke ‘display’. I used ‘sdfopen’ with your file, then ’set t’ and ’set gxout grfill’ and got this: 


—Jennifer

On Oct 28, 2014, at 6:13 PM, Lynnes, Christopher S. (GSFC-6102) <christopher.s.lynnes at nasa.gov> wrote:

> I have a netCDF file with a 12-element time dimension, expressed in  "seconds since 1970-01-01 00:00:00", with the first time on Jan 1, 1998.  But when I read in the file (attached), it seems to see only the first time:
> 
> > ga-> sdfopen test4.nc
> > Scanning self-describing file:  test4.nc
> > SDF file test4.nc is open as file 1
> > LON set to 137.875 179.875 
> > LAT set to 1 1 
> > LEV set to 0 0 
> > Time values set: 1998:1:1:0 1998:1:1:0 
> > E set to 1 1 
> 
> with the result then when I plot it, I get not the hovmoller I wanted, but just a line plot vs. longitude.
> 
> I tried xdfopen with the descriptor file:
> 
> > DSET test4.nc
> > TDEF time 12 LINEAR 1JAN1998 1mo
> > VARS 1
> > precip=>precip
> > ENDVARS
> 
> but with the same result.
> 
> What is the recommended way for encoding a time dimension either in netCDF for GrADS to use, or alternatively, using xdfopen?
> 
> --
> Dr. Christopher Lynnes     NASA/GSFC, Code 610.2    phone: 301-614-5185
> "Perfection is achieved, not when there is nothing left to add, but when there is nothing left to take away" -- A. de Saint-Exupery
> 
> 
> 
> 
> 
> 
> <test4.nc>_______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
111 Research Hall, Mail Stop 2B3
George Mason University
4400 University Drive
Fairfax, VA 22030 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20141028/da50a577/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2014-10-28 at 7.44.29 PM.png
Type: image/png
Size: 106610 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20141028/da50a577/attachment-0001.png 


More information about the gradsusr mailing list