Re: Read variable with parenthesis in name?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 5 Dec 2007 17:18:35 -0700 (MST)

You can try using the $...$ syntax:

   varname = "Isoprene_(microgram_per_m2_per_hr)"
   f = addfile(filename,"r")
   isoprene = f->$varname$

We use this method for variable names that contain "-" symbols, so
hopefully it will work for "(" and ")".

--Mary

On Wed, 5 Dec 2007 abtawfik_at_umich.edu wrote:

> Hello all
>
> I was wondering if there was a way of reading a variable from a netcdf file
> when the variable name contains a parenthesis. For example when using ncdump
> -h the variable would appear as:
>
> short Isoprene_(microgram_per_m2_per_hr)(y, x) ;
> Isoprene_(microgram_per_m2_per_hr):long_name =
> "Isoprene_(microgram_per_m2_per_hr)" ;
>
>
> Any feedback would be greatly appreciated and thank you in advance.
>
> -Ahmed
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Dec 05 2007 - 17:18:35 MST

This archive was generated by hypermail 2.2.0 : Tue Dec 11 2007 - 14:19:21 MST