[gradsusr] if else statement

Manoranjan LPAS lpasmanoranjan at gmail.com
Wed Jul 1 23:43:14 EDT 2015


Dear users,
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.

 'd 'var''
if (subwrd(result,3) > -99999)
val=subwrd(result,3)
else
val=99999
endif
rc=write(outfile.txt,val)

Can anybody help me where am I doing mistake.

Thanking You,
Kind Regards
Mano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150702/9a67b113/attachment.html 


More information about the gradsusr mailing list