This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Scott. Have you considered Jython: http://www.unidata.ucar.edu/software/idv/docs/userguide/page_dataanalysis.html Thanks. -Julien > Full Name: Scott Stephens > Email Address: address@hidden > Organization: NOAA/NCDC > Package Version: 2.9u2 build date:2010-10-04 19:14 UTC > Operating System: Windows 7 > Hardware: Java: home: C:\Program Files (x86)\Java\jre6 version: 1.6.0_21 > j3d:1.5.2 fcs (build4) > Description of problem: Creating display: Image Display > TypeError: createLayerAverage(): 2nd arg can't be coerced to double or String > org.python.core.PyException > > ----- > What is the best way to calculate a layer average of two or more fields? For > example, when evaluating NCEP model grids, what would be the best way to > calculate average relative humidity between 850mb and 500mb (inclusive of all > intermediate levels)? I have attempted to use the grid diagnostics with no > success. Thanks! > > ****************** > Stack trace: > Traceback (innermost last): > File "<string>", line 1, in ? > File "<string>", line 191, in lav > File "<string>", line 83, in layerAverage > TypeError: createLayerAverage(): 2nd arg can't be coerced to double or String > > > Ticket Details =================== Ticket ID: LVV-324117 Department: Support IDV Priority: Normal Status: Closed