示例#1
0
文件: grid.py 项目: relaxar/mcidasv
def runave(grid, nave=3, option=0):
    """generate a running average:
    <div class=jython>
    Where:<br>
          grid = grid to average<br>
          nave - number of steps to average over<br>
          option - option for unsmoothed end points<br>
                   0 - set to missing<br>
                   1 - use symmetry<br>
                  -1 - assume cyclic <br>
    </div>
    """
    steps = int(nave)
    opt = int(option)
    return GridMath.timeRunningAverage(grid, steps, opt)
示例#2
0
def runave(grid, nave=3, option=0):
    """generate a running average:
    <div class=jython>
    Where:<br>
          grid = grid to average<br>
          nave - number of steps to average over<br>
          option - option for unsmoothed end points<br>
                   0 - set to missing<br>
                   1 - use symmetry<br>
                  -1 - assume cyclic <br>
    </div>
    """
    steps = int(nave)
    opt = int(option)
    return GridMath.timeRunningAverage(grid,steps,opt)