File: Vertstat.py.test.in

package info (click to toggle)
cdo 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 49,836 kB
  • sloc: cpp: 185,271; ansic: 95,766; sh: 7,192; f90: 6,147; makefile: 1,977; ruby: 1,078; csh: 1,028; python: 995; fortran: 319; pascal: 219; perl: 9
file content (19 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! @PYTHON@
#
from cdoTest import *
#
OPERATORS=["vertmin","vertmax","vertrange","vertsum","vertavg","vertmean","vertstd","vertstd1","vertvar","vertvar1","vertint","vertcum"]
#
IFILE=f'{DATAPATH}/pl_data.grb'
FORMAT="-f srv -b 32"
#
test_module = TestModule()
for OPER in OPERATORS:
    OFILE=f'{OPER}_res'
    RFILE=f'{DATAPATH}/{OPER}_ref'
    t=TAPTest(OPER)
    t.add(f'{CDO} {FORMAT} {OPER} {IFILE} {OFILE}')
    t.diff(RFILE,OFILE)
    t.clean(OFILE)
    test_module.add(t)
test_module.run()