<div dir="ltr"><div><div><div><div><div><div><div><div><div>Please read the documentation at (say): <br>    <a href="http://www.ncl.ucar.edu/Document/Manuals/">http://www.ncl.ucar.edu/Document/Manuals/</a><br><br></div>Mini-Language Manual <br></div>or the <br></div>DKRZ Tutorial<br><br></div><div>Look at the @ for attribute<br></div><div>==============================<br></div>   f = addfile(&quot;<a href="http://uv300.nc">uv300.nc</a>&quot;,&quot;r&quot;)<br></div>   TITLE = f@title<br></div>or<br></div>   title  = f@title<br></div>or<br></div>   foo = f@title<br><br>==========================<br><div><div><div><div><div>   <br><div><div><div><div><div><br>netcdf uv300 {<br>dimensions:<br>        lat = 64 ;<br>        lon = 128 ;<br>        time = 2 ;<br>variables:<br>        float lat(lat) ;<br>                lat:short_name = &quot;lat&quot; ;<br>                lat:long_name = &quot;latitude&quot; ;<br>                lat:units = &quot;degrees_north&quot; ;<br>        float lon(lon) ;<br>                lon:units = &quot;degrees_east&quot; ;<br>                lon:long_name = &quot;longitude&quot; ;<br>                lon:short_name = &quot;lon&quot; ;<br>        float gw(lat) ;<br>                gw:long_name = &quot;gaussian weights&quot; ;<br>                gw:short_name = &quot;gws&quot; ;<br>                gw:units = &quot;dimensionless&quot; ;<br>        int time(time) ;<br>                time:long_name = &quot;Month of Year&quot; ;<br>                time:short_name = &quot;Mo&quot; ;<br>                time:units = &quot;month&quot; ;<br>        float U(time, lat, lon) ;<br>                U:_FillValue = -999.f ;<br>                U:long_name = &quot;Zonal Wind&quot; ;<br>                U:short_name = &quot;U&quot; ;<br>                U:units = &quot;m/s&quot; ;<br>        float V(time, lat, lon) ;<br>                V:_FillValue = -999.f ;<br>                V:long_name = &quot;Meridional Wind&quot; ;<br>                V:short_name = &quot;V&quot; ;<br>                V:units = &quot;m/s&quot; ;<br><br>// global attributes:<br>                :title = &quot;UV300: January and July&quot; ;<br>                :source = &quot;Climate Analysis Section, NCAR&quot; ;<br>                :history = &quot;Dataset uv300.hs from EZPLOT demo dataset&quot; ;<br>                :Conventions = &quot;None&quot; ;<br>                :creation_date = &quot;Mon Mar 29 09:24:57 MST 1999&quot; ;<br>                :references = &quot;\n&quot;,<br>                        &quot;EZPLOT for Publication Quality Plots\n&quot;,<br>                        &quot;Christian Guillemot\n&quot;,<br>                        &quot;NCAR-TN 414   1995\n&quot;,<br>                        &quot;<a href="http://www.cgd.ucar.edu/cas/ezplot/">http://www.cgd.ucar.edu/cas/ezplot/</a>&quot; ;<br></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 8, 2016 at 8:59 PM, Muhammad Omer Mughal <span dir="ltr">&lt;<a href="mailto:m.mughal1@postgrad.curtin.edu.au" target="_blank">m.mughal1@postgrad.curtin.edu.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_7090244619362093108divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>Hi </p>
<p><br>
</p>
<p></p>
<div>This example pulls the global attributes off a file and prints out their values:<br>
<br>
  f = addfile(&quot;$NCARG_ROOT/lib/<wbr>ncarg/data/cdf/<a href="http://uv300.nc" target="_blank">uv300.nc</a>&quot;,&quot;r&quot;)<br>
<br>
  file_atts = getvaratts(f)<br>
<br>
  print(file_atts)<br>
<br>
  if(.not.any(ismissing(file_<wbr>atts))) then<br>
    do i=0,dimsizes(file_atts)-1<br>
      print(&quot;Attribute &quot; + file_atts(i) + &quot; = &quot; + f@$file_atts(i)$)<br>
   end do<br>
  end if</div>
<br>
<p></p>
<p>How can one pull out a specific attribute from the file f  and use it ?</p>
<p><br>
</p>
<p><br>
</p>
<div id="m_7090244619362093108Signature">
<div id="m_7090244619362093108divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><b><br>
</b></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,&#39;Segoe UI&#39;,&#39;Segoe WP&#39;,Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font color="#1F497D" face="Arial Bold" size="2"><span style="font-size:11pt">Muhammad Omer Mughal</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,&#39;Segoe UI&#39;,&#39;Segoe WP&#39;,Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font color="#1F497D" face="Arial Bold" size="2"><span style="font-size:11pt">MSc BSc Mechanical Engineering</span></font><font color="#1F497D" face="Arial,sans-serif" size="1"><span style="font-size:8pt"><br>
</span></font><font color="#AB8303" face="Arial Bold" size="2"><span style="font-size:9pt">PhD  Research Scholar</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,&#39;Segoe UI&#39;,&#39;Segoe WP&#39;,Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font color="#AB8303" face="Arial Bold" size="2"><span style="font-size:9pt">Remote Sensing and Satellite Research Group</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,&#39;Segoe UI&#39;,&#39;Segoe WP&#39;,Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font color="#AB8303" face="Arial Bold" size="2"><span style="font-size:9pt">Department of Imaging and Applied Physics</span></font><font color="#AB8303" face="Arial Bold" size="2"><span style="font-size:9pt"><br>
Curtin University</span></font><font color="#AB8303" face="Arial Bold" size="2"><span style="font-size:9pt"><br>
</span></font><font color="#1F497D" face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><br>
</span></font><font color="#1F497D" face="Arial Bold" size="2"><span style="font-size:9pt">Curtin University</span></font><font color="#1F497D" face="Arial Bold" size="2"><span style="font-size:9pt"><br>
</span></font><font color="#AB8303" face="Arial Bold" size="2"><span style="font-size:9pt">Tel |</span></font><font color="#1F497D" face="Arial Bold" size="2"><span style="font-size:9pt"> </span></font><font color="#1F497D" face="Arial,sans-serif" size="2"><span style="font-size:9pt">+61
 8 9266 7962</span></font><font color="#1F497D" face="Calibri,sans-serif" size="2"><span style="font-size:9pt"> </span></font><font color="#1F497D" face="Calibri,sans-serif" size="1"><span style="font-size:7pt"><br>
</span></font><font color="#AB8303" face="Arial Bold" size="2"><span style="font-size:9pt">Fax |</span></font><font color="#1F497D" face="Arial Bold" size="2"><span style="font-size:9pt"> </span></font><font color="#1F497D" face="Arial,sans-serif" size="2"><span style="font-size:9pt">+61
 8 9266 2377</span></font><font color="#1F497D" face="Arial,sans-serif" size="2"><span style="font-size:9pt"><br>
</span></font><font color="#AB8303" face="Arial Bold" size="2"><span style="font-size:9pt">Mobile |</span></font><font color="#1F497D" face="Calibri,sans-serif" size="2"><span style="font-size:9pt"> </span></font><font color="#1F497D" face="Arial,sans-serif" size="2"><span style="font-size:9pt">0470 237 525</span></font><font color="#1F497D" face="Calibri,sans-serif" size="2"><span style="font-size:9pt">  </span></font><font color="#1F497D" face="Calibri,sans-serif" size="2"><span style="font-size:9pt"><br>
</span></font><font color="#1F497D" face="Calibri,sans-serif" size="2"><span style="font-size:9pt"><br>
</span></font><font color="#AB8303" face="Arial Bold" size="2"><span style="font-size:9pt">Email |</span></font><font color="#1F497D" face="Calibri,sans-serif" size="2"><span style="font-size:9pt"> </span></font><a href="mailto:m.lynch@curtin.edu.au" id="m_7090244619362093108LPNoLP" target="_blank"><font face="Arial,sans-serif" size="2"><span style="font-size:9pt">m.mughal1@postgrad.curtin.<wbr>edu.au</span></font></a><font color="#1F497D" face="Arial,sans-serif" size="2"><span style="font-size:9pt"> </span></font><font color="#1F497D" face="Arial,sans-serif" size="2"><span style="font-size:9pt"><br>
</span></font><font color="#AB8303" face="Arial Bold" size="2"><span style="font-size:9pt">Web |</span></font><font color="#AB8303" face="Calibri,sans-serif" size="2"><span style="font-size:9pt"> </span></font><a href="http://curtin.edu.au/" id="m_7090244619362093108LPNoLP" target="_blank"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" size="2"><span style="font-size:9pt">http://curtin.edu.au</span></font></span></font></a><font color="#1F497D" face="Arial,sans-serif" size="2"><span style="font-size:9pt"><br>
</span></font><font color="#1F497D" face="Calibri,sans-serif" size="1"><span style="font-size:7pt"><br>
</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,&#39;Segoe UI&#39;,&#39;Segoe WP&#39;,Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font color="#1F497D" face="Calibri,sans-serif" size="1"><span style="font-size:6pt"></span></font><font color="#1F497D" face="Arial,sans-serif" size="1"><span style="font-size:6pt">Curtin University is a trademark of Curtin University of Technology. </span></font><br>
</div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,&#39;Segoe UI&#39;,&#39;Segoe WP&#39;,Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font color="#1F497D" face="Arial,sans-serif" size="1"><span style="font-size:6pt">CRICOS Provider Code 00301J (WA), 02637B (NSW)</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,&#39;Segoe UI&#39;,&#39;Segoe WP&#39;,Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font color="#1F497D" face="Arial,sans-serif" size="1"><span style="font-size:6pt"><br>
</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,&#39;Segoe UI&#39;,&#39;Segoe WP&#39;,Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font color="#1F497D" face="Arial,sans-serif" size="1"><span style="font-size:6pt"><br>
</span></font></span></font></div>
</div>
</div>
</div>
</div>
</div>

<br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>