Hi Scott. I see from your png that you seem to be averaging over many time steps. Is that really your intention? (I am not sure that is the root of the problem, however.) Thanks. -Julien > Hi Julien, > > I have attempted to use > |layerAverage(grid, top, bottom) > > in a formula, but perhaps it's my ignorance of how to utilize this function. > > For example, when using one of the IDD servers to access the NAM model > data, I am attempting to use the layerAverage function (see jython.png). > > I'm guessing that I am using this incorrectly, as I get the error > (attached error.png). > > Can you educate me? > > Thanks for your help. > > Scott > | > Unidata IDV Support said the following on 11/30/2010 12:43 PM: > > 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 > > > > > > -- > > *Scott E. Stephens* > > */Meteorologist/* > > Customer Services/Climate Monitoring > > NOAAâs National Climatic Data Center > > 151 Patton Avenue > > Asheville, NC 28801-5001 > > V: 828-271-4800 > > F: 828-271-4876 > > E-Mail: address@hidden <mailto:address@hidden> > > http://www.ncdc.noaa.gov/monitoring > > > > */ /* > > */ /* > > > > > Ticket Details =================== Ticket ID: LVV-324117 Department: Support IDV Priority: Normal Status: Open
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.