Re: Change global attribute of netcdf

From: Ling Huang <hlbutterflyut_at_nyahnyahspammersnyahnyah>
Date: Thu Feb 06 2014 - 21:34:30 MST

I found the answer. Thanks!

On Thu, Feb 6, 2014 at 10:30 PM, Ling Huang <hlbutterflyut@gmail.com> wrote:

> Dear ncl-talk,
>
> I want to change a global attribute of a netcdf file. For example, "SDATE"
> is a global attribute of a netcdf file. I could do:
>
> file1=addfile(netcdf_filename,"w")
> file1@SDATE = new_value
>
> to change the value of "SDATE".
>
> However, there is a special attribute "VAR-LIST" of the netcdf file. When
> I type:
>
> file1@VAR-LIST = new_value
>
> it will give errors. I think it is related to the hyphen sign within the
> variable name. How could I overcome this?
>
> Thank you very much!
>
> Ling
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Feb 6 21:34:42 2014

This archive was generated by hypermail 2.1.8 : Fri Feb 07 2014 - 16:39:11 MST