Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: [idvusers] Help with Averaging NexRad scans over time.

  • Subject: Re: [idvusers] Help with Averaging NexRad scans over time.
  • From: Ben Kamen <bkamen@xxxxxxxxxxxxx>
  • Date: Thu, 06 Dec 2007 10:44:11 -0600
Tom Whittaker wrote:
def makeAverage(g):
   sum = 0.0
   for (k in g):
      sum = k + sum
   sum = sum / len(g)
   return sum
Ahh the fun of being new to jython:

When I enter that in I get:

"There was an error in the Python library:Traceback (innermost last)
(no code object) at line 0
SyntaxError: ('invalid syntax', ('<string>',9,16,' for (k in g):'))


HUH??

Hahah

-Ben



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