Re: [idvusers] Adding two different 4d grids

I would expect that the second one would work.  What errors do you get?

Don

On 8/26/13 8:49 PM, Paul Graham wrote:
Dear IDV Users,

What is the best way to add two different 4d grids (ie. having different
units) in order to create dimensionless field?

Eg.  Suppose, for whatever reason, you wanted to add convective available
potential energy (CAPE), F1, and rainfall rate, F2.

I have not been able to get either of the following to work (IDV produces
errors):

def simpleAdd(F1,F2):
   res = add(F1,F2)
   return res

def simpleAdd(F1,F2):
   res = add(noUnit(F1),noUnit(F2))
   return res

What should I do?

Thanks,

Paul
_______________________________________________
idvusers mailing list
idvusers@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/


--
Don Murray
NOAA/ESRL/PSD and CIRES
303-497-3596
http://www.esrl.noaa.gov/psd/people/don.murray/



  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the idvusers archives: