Re: reading in array with dash in name

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon May 03 2010 - 16:20:13 MDT

Hi Joe,
Try this:
tt = "U-component_of_wind"
U_WND = aa->$tt$
The $ $ syntax allows you to pass a string in as an array name. If that
doesn't work let us know. Adam

On 05/03/2010 04:15 PM, Joe Grim wrote:
> Hi,
>
> I was wondering if someone could tell me how to read into NCL an array
> with a dash in its name (e.g., U-component_of_wind). My line looks like
> this:
> U_WND = aa->U-component_of_wind
> but NCL thinks this is saying, take the difference of "U" in file "aa"
> and "component_of_wind".
>
> If there isn't a way of being able to read in this array in NCL, could
> you let me know how to alter the netCDF file to change its name before
> reading it into NCL?
>
> Thank you very much in advance.
>
> Joe Grim
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
__________________________________________________
Adam Phillips 
asphilli@ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon May 3 16:20:17 2010

This archive was generated by hypermail 2.1.8 : Fri May 07 2010 - 10:36:00 MDT