[gradsusr] multiplying grads variable with scalar varibale

Jeff Duda jeffduda319 at gmail.com
Tue Jun 2 18:11:52 EDT 2020


if n is a script variable then it needs to be outside the quotes.

On Tue, Jun 2, 2020 at 3:12 PM M.Mahakur <mmahakur at tropmet.res.in> wrote:

> Dear All,
>
> How can I multiply grads variable with a scalar variable?
>
> For example : var1 and var2 are grads variables and n a scalar variable,
> which I calculates:
>
>
> n=p+q
> 'var=var1-var2'
>
> 'newvar=var*n'
>
> Gives errors and grads crashes. How to do the multiplication?
>
> Sorry, I might have forgot/missed this issue, if discussed in this list.
>
> Thanks and Regards,
> Mahakur
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>


-- 
Jeff Duda, Research Scientist
University of Colorado Boulder
Cooperative Institute for Research in Environmental Sciences
NOAA/OAR/ESRL/Global Systems Laboratory
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200602/a8dc7233/attachment.html>


More information about the gradsusr mailing list