template option

Jennifer Adams jma at COLA.IGES.ORG
Tue Apr 26 12:43:02 EDT 2005


What you're asking for is a 5-yr template option, which GrADS does not  
have. At this point, your best bet will be to use one of the netcdf  
operators ( http://nco.sourceforge.net ) to break your files into  
annual pieces and then use the yearly template options.

At some point during the development of version 1.9, a decadal template  
was added, and beginning with 1.9b4 there will also be an option to  
template on a user-specified string. These options are now documented  
(with examples) in http://iges.org/grads/gadoc/templates.html .

A final comment on your descriptor file: using the templating option  
with xdfopen is known to lead to core dumps. If you're running 1.9b3,  
you might want to consider using the 'dtype netcdf' option instead. And  
there's no need to alias the variable name (pr=>pr) if you're not  
changing it to something else.

Jennifer

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Rd., Suite 302
Calverton, MD 20705
jma at cola.iges.org

On Apr 26, 2005, at 3:37 PM, Dr. A. K. Sahai wrote:

>  Dear Grads users
>      We are facing a problem opening daily files listed below using  
> template
> option. Each file has daily data of 5-years. In ctl file using  
> template option
> will by default assume one-year data in one file. How to tell grads
> that there are 5-years of daily data in one file.?
> List of files are as follows
> pr_A2.20c3m.gfdl_cm2.0.run1.da.19610101-19651231.nc
> pr_A2.20c3m.gfdl_cm2.0.run1.da.19710101-19751231.nc
> pr_A2.20c3m.gfdl_cm2.0.run1.da.19660101-19701231.nc
> pr_A2.20c3m.gfdl_cm2.0.run1.da.19760101-19801231.nc
> pr_A2.20c3m.gfdl_cm2.0.run1.da.19810101-19851231.nc
> pr_A2.20c3m.gfdl_cm2.0.run1.da.19860101-19901231.nc
> pr_A2.20c3m.gfdl_cm2.0.run1.da.19910101-19951231.nc
> pr_A2.20c3m.gfdl_cm2.0.run1.da.19960101-20001231.nc
>
> We created following ctl file
> dset ^pr_A2.20c3m.gfdl_cm2.0.run1.da.%y40101.nc
> options template
> undef -200000000000000000.0
> xdef lon 144 linear 1.25 2.5
> ydef lat 90 linear -89 2.0
> tdef time 14700 linear 1Jan1961 1dy
> vars 1
> pr=>pr 0 99 Precipitation kg m-2 s-1
> endvars
> This ctl file assumes only 1-year 1961 daily data in one file and
> serach file named 1962 for next year.
> Please advice.
> Regards
> Sujata K. Mandke
> Climate and Global Modeling Division
> Indian Institute of Tropical Meterology
> PUNE,INDIA
> --
> ======================================================================= 
> ========
> Dr. Atul Kumar Sahai
> Scientist-D
> Climate & Global Modelling Division
> Indian Institute of Tropical Meteorology
> Homi Bhabha Road, Pune 411 008, India
>
> Phone: +91-20-2589-3600 ext 302 (Off);  +91-20-2588-3821 (Res)
> Fax:   +91-20-2589-3825
> email: sahai at tropmet.res.in 
> ======================================================================= 
> ========
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2920 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20050426/925efab2/attachment.bin 


More information about the gradsusr mailing list