Re: variable form in addfiles context

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon, 06 Jul 2009 18:30:30 -0600

array = input->$ivar$

or

array = input->$"prate"$

Please read Page 12 in the "Mini-Language Manual"
http://www.ncl.ucar.edu/Document/Manuals/

or

the Reference Manual

http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml#StringRef

Mark.Collier_at_csiro.au wrote:
> Hi
> is there a way of using a character variable to specify and input or output file when readin/writing after an addfile command:
>
> for example
>
> ivar="prate"
>
> input = addfile("foo.nc","r")
> array = input->ivar
>
> doesn't work as it is looking for variable "ivar". Some how need to expand the variable ivar beforehand.
>
> Regards,
> Mark.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 06 2009 - 18:30:30 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 07 2009 - 11:13:18 MDT