[ncl-talk] change attribute

Adam Phillips asphilli at ucar.edu
Fri Aug 28 09:12:00 MDT 2015


Hi Chao,
Try this:

att_glb = True
tt = "VAR-LIST"
att_glb@$tt$ = name_value
fileattdef(fout,att_glb)

If you have any further issues please respond to ncl-talk.
Adam


On Fri, Aug 28, 2015 at 9:02 AM, Luo, Chao <chao.luo at eas.gatech.edu> wrote:

> Dear NCL users,
>
> I am trying to change global attribute in netcdf file. What I did is:
>
> att_glb         = True
> att_glb at VAR-LIST = name_value;
> fileattdef( fout, att_glb  )
>
> I happened the error at att_glb at VAR-LIST, It was caused by hyphen sign
> between VAR and LIST.
> in this attribute, and I don't know how to do it. Very appreciate any
> suggestions and help.
>
> Thanks,
>
> Chao
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>


-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150828/fc5e576d/attachment.html 


More information about the ncl-talk mailing list