[gradsusr] define new field
Rabah Hachelaf
r.hachelaf at gmail.com
Thu Jul 17 17:23:44 EDT 2014
Hi Stephen,
Thank yo for reply but when using the second way :
i have this error :
ga-> define newfld=const(vgrd10m,1,-a)
Syntax Error: Invalid dimension expression
Expecting +/-/= operator, found 1
Variable name = const
Error ocurred at column 1
DEFINE error: Invalid expression.
I am using grads2.1 .
2014-07-17 15:55 GMT-04:00 Stephen McMillan <smcmillan at planalytics.com>:
> Rabah,
> If you have opengrads, you could use "if" function, for example:
> 'define newfld=if(var,<,1000,1,-u)' where var is an available variable
> whose values are < 1000
>
> Otherwise, you could use const, for example:
> 'define newfld=const(var,1,-a)' where var is an available variable
>
> Hope above helps.
> Stephen McMillan
>
>
> On Thu, Jul 17, 2014 at 3:07 PM, Rabah Hachelaf <r.hachelaf at gmail.com>
> wrote:
>
>> Hello all,
>>
>> How can i define a new field (Xsize,Ysize) containing constant value (1
>> for exemple) in GRADS.
>>
>> Thanks.
>>
>> --
>> ------------------------------
>> Cordialement,
>> Best regards,
>> Rabah Hachelaf
>>
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
> ***************************************************
> The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary.
>
> If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.
> ***************************************************
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
------------------------------
Cordialement,
Best regards,
Rabah Hachelaf
____
( )
( )
(___ __)
/////////
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140717/ae2b262d/attachment.html
More information about the gradsusr
mailing list