[gradsusr] Templating over ENSEMBLE (EDEF entry)

Jennifer Adams jma at cola.iges.org
Tue Apr 10 11:19:38 EDT 2012


Ciao, Stefano -- 
You didn't show what your actual file names are, but the %e template is a straight string substitution, there is no integer to describe how many numbers are involved as there are with the time templating strings. If your files are:
WAfrica_prec_19970501_0.nc
WAfrica_prec_19970501_1.nc
WAfrica_prec_19970501_2.nc 
et al. 
Then change "%e1" in your DSET entry to "%e". 

Also, you must change 
> lon=>lon   
to lon=>glon
(and lat to glat) because lat and lon are internally defined variables. 
No need to alias precip to precip as the original name is valid as it is. 
--Jennifer

On Apr 10, 2012, at 5:52 AM, Stefano Materia wrote:

> 
> I would like to concatenate several model outputs coming from different 
> ensemble members. I edited a control file accordingly, and placed all my 
> netcdf files in the same directory.  However, when I open the control 
> file and attempt to display any variables (whether the e dimension is 
> varying or not), I get the "cannot contour grid - all undefined values" 
> error.  What is wrong?
> 
> DSET ^WAfrica_prec_19970501_%e1.nc
> OPTIONS template
> DTYPE netcdf
> TITLE Precipitation from ISO
> UNDEF  -9999
> XDEF 38 linear -30 1.875
> YDEF 32 linear -20 1.875
> TDEF 184 linear 01may1997 1dy
> EDEF 9 NAMES 0 1 2 3 4 5 6 7 8
> ZDEF 1 linear      1 1
> VARS  4
> precip=>precip   0 t,y,x precip
> lon=>lon         0 x   longitude(degrees_east)
> lat=>lat         0 x   latitude(degrees_north)          time=>time 
>  0 t   time
> endvars
> 
> Thanks for your help,
> Stefano
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120410/abdc5fbd/attachment-0003.html 


More information about the gradsusr mailing list