[gradsusr] underscore in variable name

Jennifer Adams jma at cola.iges.org
Wed Nov 16 11:13:40 EST 2011


From the doc page http://iges.org/grads/gadoc/descriptorfile.html#VARS
"varname may contain alphabetic and numeric characters but it must start with an alphabetic character (a-z)."
Same rules apply for defined variable names. 
--Jennifer

On Nov 16, 2011, at 9:29 AM, Becker, Bernd wrote:

> dear all, 
> 
> Running opengrads on linux redhat6:
> (Linux/Versions/2.0.1.oga.1/x86_64/grads)
> 
> I learn about "forbidden" characters in variable names:
> 
> ga-> define obs_t=ave(((tmax+tmin)/2.),t=1,t=32)
> DEFINE error:  Name too long; missing '='
> 
> whereas
> 
> ga-> define obs=ave(((tmax+tmin)/2.),t=1,t=32)  
> Averaging.  dim = 3, start = 1, end = 32
> 
> works!
> 
> Dot is an obvious candidate, but _ underscore?
> which other characters are forbidden in variable names?
> 
> Cheers,
> Bernd.
> 
> 
> --
> Bernd Becker   Climate Impacts Product Development
> Met Office Hadley Centre    FitzRoy Road  Exeter   Devon EX1 3PB  United
> Kingdom
> Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050
> E-mail:bernd.becker at metoffice.gov.uk -
> http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/
> bernd-becker
> http://www.metoffice.gov.uk/news/releases/archive/2011/weather-game
> 
> _______________________________________________
> 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/20111116/24988441/attachment-0003.html 


More information about the gradsusr mailing list