[ncl-talk] variable name in netCDF file
Rashed Mahmood
rashidcomsis at gmail.com
Mon Jul 23 21:48:21 MDT 2018
May be try using the $$ syntax:
e.g.
infil = addfile("abc.nc","r")
vname = "lwp37_mid-high_daynight_mon"
varb = infil->$vname$
Cheers,
Rashed
On Mon, Jul 23, 2018 at 8:27 PM, Laura Fowler <laura at ucar.edu> wrote:
> Hello:
>
> I am trying to read two variables in a NetCDF file. One is named "lwp37_high_daynight_mon"
> and I do not have any issue to read it.
>
> The other one is named "lwp37_mid-high_daynight_mon" for which ncl
> (6.4.0) an error message. I do not have any issue using ncdump with this
> variable. Does ncl has an issue reading variable that a name with a mix of
> "_" and "-" sign.
>
> This is the only thing I can think of.
>
> Many thanks,
> Laura
>
>
> --
> !-----------------------------------------------------------
> --------------------------------------------------
> Laura D. Fowler
>
> Mesoscale and Microscale Meteorology Division (MMM)
> National Center for Atmospheric Research
> P.O. Box 3000, Boulder CO 80307-3000
>
> e-mail: laura at ucar.edu
> phone: 303-497-1628
>
> !-----------------------------------------------------------
> --------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180723/12fd326a/attachment.html>
More information about the ncl-talk
mailing list