[ncl-talk] change attribute

Dennis Shea shea at ucar.edu
Fri Aug 28 10:06:43 MDT 2015


A side point.

I think netCDF-3 does not support the -
It does support the _

I suggest using _ and not -

:-)

On Fri, Aug 28, 2015 at 9:12 AM, Adam Phillips <asphilli at ucar.edu> wrote:
> 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
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


More information about the ncl-talk mailing list