File: Filter.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 (23 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! @PYTHON@

from cdoTest import *
test_module = TestModule();

OPERS = ["lowpass", "highpass", "bandpass"]
OPER_ARGS = ["1", "1", "0.5,5"]
IFILE = DATAPATH + "/" + "ts_mm_5years"

OPER_CALLS = zip(OPERS,OPER_ARGS)

for oper in OPER_CALLS:
    OFILE = oper[0]+"_res"
    RFILE = DATAPATH+"/"+oper[0] +"_ref"
    cdo_call = ",".join(oper) 
    t = TAPTest(cdo_call)
    t.add(f'{CDO} {cdo_call} {IFILE} {OFILE}')
    t.add(f'{CDO} diff {RFILE} {OFILE}')
    t.clean(OFILE)
    test_module.add(t)

test_module.run()