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><span></span><br>On Thursday, July 2, 2015, Ryan Hickman <<a href="javascript:_e(%7B%7D,'cvml','ryan@allisonhouse.com');" target="_blank">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>