<div dir="ltr"><div><div><div><div><div><div><div>Hi Chao,<br></div>Try this:<br><br></div>att_glb = True<br></div>tt = "VAR-LIST"<br></div>att_glb@$tt$ = name_value<br></div>fileattdef(fout,att_glb)<br><br></div>If you have any further issues please respond to ncl-talk.<br></div>Adam<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 28, 2015 at 9:02 AM, Luo, Chao <span dir="ltr"><<a href="mailto:chao.luo@eas.gatech.edu" target="_blank">chao.luo@eas.gatech.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><font style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif"><span style="font-size:12pt">Dear NCL users,</span></font><div style="font-size:12pt;background-color:rgb(255,255,255)"><br></div><div style="font-size:12pt;background-color:rgb(255,255,255)">I am trying to change global attribute in netcdf file. What I did is:</div><div style="font-size:12pt;background-color:rgb(255,255,255)"><br></div><div style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif">att_glb = True</font></div><div style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif">att_glb@VAR-LIST = name_value;</font></div><div style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif">fileattdef( fout, att_glb )</font></div><div style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif"> </font></div><div style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif">I happened the error at att_glb@VAR-LIST, It was caused by hyphen sign between VAR and LIST.</font></div><div style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif">in this attribute, and I don't know how to do it. Very appreciate any suggestions and help. </font></div><div style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif"><br></font></div><div style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif">Thanks,</font></div><div style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif"><br></font></div><div style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif">Chao</font></div></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>