Re: space between name of the variable

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 12 2010 - 14:12:57 MDT

   f = addfile("...", "r")
   x = f->$"water discharge"$

OR

   var = "water discharge"
   x = f->$var$

Good luck

On 10/12/10 2:05 PM, Debasish wrote:
> Hello!
>
> Is there any way to read a variable in NCL if there is a space between variable's name
>
> example
>
> dimensions:
> cell_index = 451 ;
> date_length = 16 ;
> time = UNLIMITED ; // (10988 currently)
> variables:
> float water discharge(time, cell_index) ;
> water discharge:units = "m ** 3 / s" ;
> int x-index(cell_index) ;
> int y-index(cell_index) ;
> char time(time, date_length) ;
>
> I would like to read "water discharge"
>
> Thanks
>
> Debasish
>
>
>
> _______________________________________________
> 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 Tue Oct 12 14:13:02 2010

This archive was generated by hypermail 2.1.8 : Tue Oct 12 2010 - 15:26:59 MDT