<div dir="ltr">Imran,<div><br></div><div>If you put quotes around the output files, you should see your desired output. For example,</div><div>res=write('Melreg.txt',rc)</div><div><br></div><div>Also, unless your data is on a .01 degree grid, your output will be to the nearest grid point, not the lon and lat specified. For interpolation, please see Documentation Index for "lterp" or "gr2stn" if you have not already done so.</div><div><br></div><div>Stephen Mc</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 10, 2015 at 10:22 AM, Md Hosen <span dir="ltr"><<a href="mailto:md.hosen@live.vu.edu.au" target="_blank">md.hosen@live.vu.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>
<p>Hi Stephen,</p>
<p>Thanks for your prompt reply. In the text files I am not getting any expected output values. Only it shows as follows:</p>
<p></p>
<p>Interpolation</p>
<p>Interpolation</p>
<p>.......................</p>
<p>.......................</p>
<p>so on</p>
<p></p>
<p>Any further suggestion please.</p>
<p></p>
<p>Kind regards,</p>
<p>Imran </p>
<p></p>
<p></p>
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> <<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>> on behalf of Stephen McMillan <<a href="mailto:smcmillan@planalytics.com" target="_blank">smcmillan@planalytics.com</a>><br>
<b>Sent:</b> 10 August 2015 23:32:38<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] No hardcopy metafile open</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">Imran,
<div><br>
</div>
<div>I don't see that it's a problem. Did you not get the extracted output you expected?</div>
<div><br>
</div>
<div>What you present as an error actually is not. They are informational only.</div>
<div><br>
</div>
<div>Stephen </div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Aug 10, 2015 at 9:14 AM, Md Hosen <span dir="ltr">
<<a href="mailto:md.hosen@live.vu.edu.au" target="_blank">md.hosen@live.vu.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 style="font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">
<p style="color:rgb(0,0,0)">Dear GRADS users,</p>
<p style="color:rgb(0,0,0)"><br>
</p>
<p style="color:rgb(0,0,0)">Good day!</p>
<p style="color:rgb(0,0,0)"><br>
</p>
<p style="color:rgb(0,0,0)">I am totally new with GRADS. The following sample script is my first try to extract Temperature data from wrfoutput.</p>
<p style="color:rgb(0,0,0)"><br>
</p>
<p style="color:rgb(0,0,0)"><br>
</p>
<p style="color:rgb(0,0,0)">'reinit'<br>
'open feb2000.ctl'<br>
<br>
i=1<br>
while (i<=73)<br>
'set t 'i<br>
<br>
********************************corrected lat&lon***<br>
'set lon 144.97'<br>
'set lat -37.81'<br>
'd t2-272.15'<br>
rc=subwrd(result,4)<br>
res=write(Melreg.txt,rc)<br>
*************************************************<br>
'set lon 144.76'<br>
'set lat -37.86'<br>
'd t2-272.15'<br>
rc=subwrd(result,4)<br>
res=write(Raaf.txt,rc)<br>
********************************<br>
'set lon 145.10'<br>
'set lat -37.98'<br>
'd t2-272.15'<br>
rc=subwrd(result,4)<br>
res=write(Moorabbin.txt,rc)<br>
**********************************<br>
i=i+1<br>
endwhile<br>
return</p>
<p style="color:rgb(0,0,0)"><br>
</p>
<p style="color:rgb(0,0,0)">After running this script, I am getting the following error message:</p>
<p style="color:rgb(0,0,0)"><br>
</p>
<p><i><font color="#ff0000">No hardcopy metafile open<br>
All files closed; all defined objects released;<br>
All GrADS attributes have been reinitialized<br>
Notice: Implied interpolation for file feb2000.ctl<br>
Interpolation will be performed on any data displayed from this file</font></i><br>
<br>
</p>
<p style="color:rgb(0,0,0)"><br>
</p>
<p style="color:rgb(0,0,0)">Even, if I type 'reinit' in the command line, I am getting same error message as follows:</p>
<p style="color:rgb(0,0,0)"><br>
</p>
<p><font color="#ff0000">ga-> reinit<br>
No hardcopy metafile open<br>
All files closed; all defined objects released;<br>
All GrADS attributes have been reinitialized</font></p>
<p style="color:rgb(0,0,0)"><br>
</p>
<p style="color:rgb(0,0,0)">Could you please give any instruction to solve the problem. Your cooperation will be highly appreciated.</p>
<p style="color:rgb(0,0,0)"><br>
</p>
<p style="color:rgb(0,0,0)">Kind regards,</p>
<p style="color:rgb(0,0,0)">Imran<br>
<br>
</p>
<p style="color:rgb(0,0,0)"><br>
</p>
<p style="color:rgb(0,0,0)"><br>
</p>
<div style="color:rgb(0,0,0)">
<div name="divtagdefaultwrapper">
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial;font-size:small;color:rgb(204,51,204)"></span></div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>