[gradsusr] converting variable to string

Ricardo Hallak ricardo.hallak at iag.usp.br
Tue Aug 12 14:58:51 EDT 2014


Dear Laura, 

I think it is missing simple quotes , since par is, now, a variable. 
Try this: 
'print filename_value'par'.eps' 

Hope this helps, 
Ricardo 
----- Mensagem original -----

> De: "Laura Zamboni" <lzamboni at mcs.anl.gov>
> Para: gradsusr at gradsusr.org
> Enviadas: Terça-feira, 12 de Agosto de 2014 15:28:17
> Assunto: [gradsusr] converting variable to string

> Hello,

> how can I convert a grads variable to a string within a script? What
> I'd
> like to do is the following:
> 'define par=10'
> (instructions)
> 'print filename_value<par>.eps'
> in which I'd like to see the value "10" in lieu of <par>

> Thanks,
> Laura

> --
> -------------------------
> My research and why I got to Argonne curious?
> http://www.anl.gov/articles/laura-zamboni

> -------------------------
> -------------------------
> Laura Zamboni, PhD
> Computational Postdoctoral Fellow - Climate Scientist
> Board member of the Postdoctoral Society of Argonne - Chair of the
> PSA mentoring committee
> Argonne National Laboratory, MCS Division
> 9700 S.Cass Ave
> TCS Bldg #240, room 4152
> Argonne, IL 60439
> ph.+1 630-252-1131
> fax. +1 630-252-5986
> web: http://www.mcs.anl.gov/~lzamboni/

> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140812/ebc1b6b1/attachment.html 


More information about the gradsusr mailing list