<div dir="ltr">TRY<div><br><div><span style="font-size:12.8000001907349px"> 'd 'var''</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">val=</span><span style="font-size:12.8000001907349px">subwrd</span><span style="font-size:12.8000001907349px">(result,3)</span></div><div><br></div><div><span style="font-size:12.8000001907349px">if ( val < -99999</span><span style="font-size:12.8000001907349px">)</span><br></div><div><span style="font-size:12.8000001907349px"> ...</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">else</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> ...</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">endif</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">rc</span><span style="font-size:12.8000001907349px">=write(</span><span style="font-size:12.8000001907349px">outfile</span><span style="font-size:12.8000001907349px">.</span><span style="font-size:12.8000001907349px">txt</span><span style="font-size:12.8000001907349px">,val)</span><br style="font-size:12.8000001907349px"></div><div><span style="font-size:12.8000001907349px"><br></span></div></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">-rupak</span></div><div><span style="font-size:12.8000001907349px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 2, 2015 at 3:16 PM, Manoranjan LPAS <span dir="ltr"><<a href="mailto:lpasmanoranjan@gmail.com" target="_blank">lpasmanoranjan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Ryan,<div>Thank you very much for your suggestion. But this could not solve my problem. Because, at some times (e. g. at t 101) there is no data. </div><div>e.g. If I display the variable by setting lat 5 , lon 80 and time 1 to 100, it is fine. </div><div>But at t 101, it is giving error.</div><div><span></span>Again from t 102 to 250, it is fine... Like this. <br><br>Kind regards </div><div>Sridhara </div><div class="HOEnZb"><div class="h5"><div><span></span><br>On Thursday, July 2, 2015, Ryan Hickman <<a>ryan@allisonhouse.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Mano,<br>
<br>
Use 'set undef 99999' instead of looping over every grid point (inefficient.)<br>
<br>
- Ryan<br>
<br>
> On Jul 1, 2015, at 9:44 PM, Manoranjan LPAS <<a>lpasmanoranjan@gmail.com</a>> wrote:<br>
><br>
> Dear users,<br>
> I was trying to save the grads output values at a grid point in ACSII format. I found that there are some missing values at many times. So I wanted to write those missing values as 99999. When I used the following, I am getting every values 99999.<br>
><br>
> 'd 'var''<br>
> if (subwrd(result,3) > -99999)<br>
> val=subwrd(result,3)<br>
> else<br>
> val=99999<br>
> endif<br>
> rc=write(outfile.txt,val)<br>
><br>
> Can anybody help me where am I doing mistake.<br>
><br>
> Thanking You,<br>
> Kind Regards<br>
> Mano<br>
> _______________________________________________<br>
> gradsusr mailing list<br>
> <a>gradsusr@gradsusr.org</a><br>
> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
_______________________________________________<br>
gradsusr mailing list<br>
<a>gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></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>