[gradsusr] if else statement
Ryan Hickman
ryan at allisonhouse.com
Wed Jul 1 23:47:40 EDT 2015
Mano,
Use 'set undef 99999' instead of looping over every grid point (inefficient.)
- Ryan
> On Jul 1, 2015, at 9:44 PM, Manoranjan LPAS <lpasmanoranjan at gmail.com> wrote:
>
> 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
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
More information about the gradsusr
mailing list