<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi Dennis </p>
<p><br>
</p>
<p>Thanks</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" 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,'Segoe UI','Segoe WP',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 face="Arial Bold" size="2" color="#1F497D"><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,'Segoe UI','Segoe WP',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 face="Arial Bold" size="2" color="#1F497D"><span style="font-size:11pt">MSc BSc Mechanical Engineering</span></font><font face="Arial,sans-serif" size="1" color="#1F497D"><span style="font-size:8pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><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,'Segoe UI','Segoe WP',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 face="Arial Bold" size="2" color="#AB8303"><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,'Segoe UI','Segoe WP',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 face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Department of Imaging and Applied Physics</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt"><br>
Curtin University</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt"><br>
</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:11pt"><br>
</span></font><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:9pt">Curtin University</span></font><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Tel |</span></font><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt">+61
8 9266 7962</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Calibri,sans-serif" size="1" color="#1F497D"><span style="font-size:7pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Fax |</span></font><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt">+61
8 9266 2377</span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Mobile |</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt">0470 237 525</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Email |</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><a href="mailto:m.lynch@curtin.edu.au" target="_blank" id="LPNoLP"><font face="Arial,sans-serif" size="2"><span style="font-size:9pt">m.mughal1@postgrad.curtin.edu.au</span></font></a><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Web |</span></font><font face="Calibri,sans-serif" size="2" color="#AB8303"><span style="font-size:9pt"> </span></font><a href="http://curtin.edu.au/" target="_blank" id="LPNoLP"><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 face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Calibri,sans-serif" size="1" color="#1F497D"><span style="font-size:7pt"><br>
</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif; font-size:15.4545450210571px; margin:0px; background-color:rgb(255,255,255)">
<font face="Calibri,sans-serif" size="1" color="#1F497D"><span style="font-size:6pt"></span></font><font face="Arial,sans-serif" size="1" color="#1F497D"><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,'Segoe UI','Segoe WP',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 face="Arial,sans-serif" size="1" color="#1F497D"><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,'Segoe UI','Segoe WP',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 face="Arial,sans-serif" size="1" color="#1F497D"><span style="font-size:6pt"><br>
</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',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 face="Arial,sans-serif" size="1" color="#1F497D"><span style="font-size:6pt"><br>
</span></font></span></font></div>
</div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Dennis Shea <shea@ucar.edu><br>
<b>Sent:</b> Friday, 9 December 2016 12:09:06 PM<br>
<b>To:</b> Muhammad Omer Mughal<br>
<b>Cc:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] Attributes</font>
<div> </div>
</div>
<div>
<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("<a href="http://uv300.nc">uv300.nc</a>","r")<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 = "lat" ;<br>
lat:long_name = "latitude" ;<br>
lat:units = "degrees_north" ;<br>
float lon(lon) ;<br>
lon:units = "degrees_east" ;<br>
lon:long_name = "longitude" ;<br>
lon:short_name = "lon" ;<br>
float gw(lat) ;<br>
gw:long_name = "gaussian weights" ;<br>
gw:short_name = "gws" ;<br>
gw:units = "dimensionless" ;<br>
int time(time) ;<br>
time:long_name = "Month of Year" ;<br>
time:short_name = "Mo" ;<br>
time:units = "month" ;<br>
float U(time, lat, lon) ;<br>
U:_FillValue = -999.f ;<br>
U:long_name = "Zonal Wind" ;<br>
U:short_name = "U" ;<br>
U:units = "m/s" ;<br>
float V(time, lat, lon) ;<br>
V:_FillValue = -999.f ;<br>
V:long_name = "Meridional Wind" ;<br>
V:short_name = "V" ;<br>
V:units = "m/s" ;<br>
<br>
// global attributes:<br>
:title = "UV300: January and July" ;<br>
:source = "Climate Analysis Section, NCAR" ;<br>
:history = "Dataset uv300.hs from EZPLOT demo dataset" ;<br>
:Conventions = "None" ;<br>
:creation_date = "Mon Mar 29 09:24:57 MST 1999" ;<br>
:references = "\n",<br>
"EZPLOT for Publication Quality Plots\n",<br>
"Christian Guillemot\n",<br>
"NCAR-TN 414 1995\n",<br>
"<a href="http://www.cgd.ucar.edu/cas/ezplot/">http://www.cgd.ucar.edu/cas/ezplot/</a>" ;<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">
<<a href="mailto:m.mughal1@postgrad.curtin.edu.au" target="_blank">m.mughal1@postgrad.curtin.edu.au</a>></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("$NCARG_ROOT/lib/<wbr>ncarg/data/cdf/<a href="http://uv300.nc" target="_blank">uv300.nc</a>","r")<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("Attribute " + file_atts(i) + " = " + 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,'Segoe UI','Segoe WP',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,'Segoe UI','Segoe WP',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,'Segoe UI','Segoe WP',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,'Segoe UI','Segoe WP',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,'Segoe UI','Segoe WP',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,'Segoe UI','Segoe WP',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,'Segoe UI','Segoe WP',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,'Segoe UI','Segoe WP',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>
</div>
</body>
</html>