[gradsusr] define a field from existing field
Jian-Jian Wang
jjwang at umd.edu
Mon Sep 29 22:00:07 EDT 2014
Thanks.
Actually, I did check out maskout and const functions.
However, seems it only related to missing data? But I want the new field to be a constant where sat_rain > 0
Jay
On Sep 29, 2014, at 9:39 PM, Julio Martinez wrote:
> Check out maskout and const functions
>
> Enviado desde mi iPad
>
>> El 29/09/2014, a las 20:38, "Jian-Jian Wang" <jjwang at umd.edu> escribió:
>>
>> Hi,
>>
>> I have an existing field, "sat_rain" , and would like to define a new field "sat_detect", making it to be constant of 1 if sat_rain > 0.
>> I tried:
>>
>> if (prec > 0) define sat_detect = 1
>>
>> sat_detect = if(prec,>,0,2,-a)
>>
>> none of them works. Would you please provide some advice?
>> Thank you in advance.
>>
>> Jay
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
More information about the gradsusr
mailing list