<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi <br>
</p>
<p><br>
</p>
<p>I am trying to evaluate RH time series at a certain location near surface using the following code. I do get it correct when I am printing it on screen but I fail to get it corrected when I use ascii write. Can any one help quickly please.</p>
<p><br>
</p>
<p></p>
<div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl&quot;<br>
<br>
begin<br>
a=addfile(&quot;wrfout_d05_2016-04-01_00:00:00.nc&quot;,&quot;r&quot;)<br>
loc = wrf_user_ll_to_ij(a, 103.98226667,1.36776667, True)<br>
x = loc(0) - 1<br>
y= loc(1) - 1<br>
<br>
times = wrf_user_list_times(a)<br>
ntimes = dimsizes(times)<br>
<br>
do it = 0,ntimes-1,1<br>
&nbsp;&nbsp;&nbsp; RH = wrf_user_getvar(a,&quot;rh&quot;,it)<br>
<br>
&nbsp;&nbsp;&nbsp; RH1=RH(2,y,x)<br>
lines = times(it)&#43;&quot; &quot;&#43;sprintf(&quot;%.5f&quot;,RH1)<br>
;print(&quot;Working on time: &quot; &#43; times(it) &#43; &quot; RH=&quot;&#43;RH1)<br>
&nbsp; end do<br>
asciiwrite(&quot;RH.csv&quot;,lines)<br>
end<br>
</div>
<br>
<p></p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri,Arial,Helvetica,sans-serif,&quot;EmojiFont&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols;">
<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 size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font color="#1F497D" size="2" face="Arial Bold"><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 size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font color="#1F497D" size="2" face="Arial Bold"><span style="font-size:11pt">MSc&nbsp;BSc&nbsp;Mechanical Engineering</span></font><font color="#1F497D" size="1" face="Arial,sans-serif"><span style="font-size:8pt"><br>
</span></font><font color="#AB8303" size="2" face="Arial Bold"><span style="font-size:9pt">PhD&nbsp;&nbsp;Research&nbsp;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 size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font color="#AB8303" size="2" face="Arial Bold"><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 size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font color="#AB8303" size="2" face="Arial Bold"><span style="font-size:9pt">Department of Imaging and Applied Physics</span></font><font color="#AB8303" size="2" face="Arial Bold"><span style="font-size:9pt"><br>
Curtin University</span></font><font color="#AB8303" size="2" face="Arial Bold"><span style="font-size:9pt"><br>
</span></font><font color="#1F497D" size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><br>
</span></font><font color="#1F497D" size="2" face="Arial Bold"><span style="font-size:9pt">Curtin University</span></font><font color="#1F497D" size="2" face="Arial Bold"><span style="font-size:9pt"><br>
</span></font><font color="#AB8303" size="2" face="Arial Bold"><span style="font-size:9pt">Tel |</span></font><font color="#1F497D" size="2" face="Arial Bold"><span style="font-size:9pt">&nbsp;</span></font><font color="#1F497D" size="2" face="Arial,sans-serif"><span style="font-size:9pt">&#43;61
 8 9266 7962</span></font><font color="#1F497D" size="2" face="Calibri,sans-serif"><span style="font-size:9pt">&nbsp;</span></font><font color="#1F497D" size="1" face="Calibri,sans-serif"><span style="font-size:7pt"><br>
</span></font><font color="#AB8303" size="2" face="Arial Bold"><span style="font-size:9pt">Fax |</span></font><font color="#1F497D" size="2" face="Arial Bold"><span style="font-size:9pt">&nbsp;</span></font><font color="#1F497D" size="2" face="Arial,sans-serif"><span style="font-size:9pt">&#43;61
 8 9266 2377</span></font><font color="#1F497D" size="2" face="Arial,sans-serif"><span style="font-size:9pt"><br>
</span></font><font color="#AB8303" size="2" face="Arial Bold"><span style="font-size:9pt">Mobile |</span></font><font color="#1F497D" size="2" face="Calibri,sans-serif"><span style="font-size:9pt">&nbsp;</span></font><font color="#1F497D" size="2" face="Arial,sans-serif"><span style="font-size:9pt">0470&nbsp;237&nbsp;525</span></font><font color="#1F497D" size="2" face="Calibri,sans-serif"><span style="font-size:9pt">&nbsp;&nbsp;</span></font><font color="#1F497D" size="2" face="Calibri,sans-serif"><span style="font-size:9pt"><br>
</span></font><font color="#1F497D" size="2" face="Calibri,sans-serif"><span style="font-size:9pt"><br>
</span></font><font color="#AB8303" size="2" face="Arial Bold"><span style="font-size:9pt">Email |</span></font><font color="#1F497D" size="2" face="Calibri,sans-serif"><span style="font-size:9pt">&nbsp;</span></font><a href="mailto:m.lynch@curtin.edu.au" target="_blank" id="LPNoLP"><font size="2" face="Arial,sans-serif"><span style="font-size:9pt">m.mughal1@postgrad.curtin.edu.au</span></font></a><font color="#1F497D" size="2" face="Arial,sans-serif"><span style="font-size:9pt">&nbsp;</span></font><font color="#1F497D" size="2" face="Arial,sans-serif"><span style="font-size:9pt"><br>
</span></font><font color="#AB8303" size="2" face="Arial Bold"><span style="font-size:9pt">Web |</span></font><font color="#AB8303" size="2" face="Calibri,sans-serif"><span style="font-size:9pt">&nbsp;</span></font><a href="http://curtin.edu.au/" target="_blank" id="LPNoLP"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Arial,sans-serif"><span style="font-size:9pt">http://curtin.edu.au</span></font></span></font></a><font color="#1F497D" size="2" face="Arial,sans-serif"><span style="font-size:9pt"><br>
</span></font><font color="#1F497D" size="1" face="Calibri,sans-serif"><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" size="1" face="Calibri,sans-serif"><span style="font-size:6pt"></span></font><font color="#1F497D" size="1" face="Arial,sans-serif"><span style="font-size:6pt">Curtin University is a trademark of Curtin University of Technology.&nbsp;</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 size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font color="#1F497D" size="1" face="Arial,sans-serif"><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 size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font color="#1F497D" size="1" face="Arial,sans-serif"><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 size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font color="#1F497D" size="1" face="Arial,sans-serif"><span style="font-size:6pt"><br>
</span></font></span></font></div>
</div>
</div>
</div>
</div>
</body>
</html>