mirror of https://github.com/ecmwf/eccodes.git
GRIB-527: prepare for parallel test runs
This commit is contained in:
parent
108ed9cce1
commit
b927e5a4fe
|
@ -20,3 +20,5 @@ status=$?
|
|||
set -e
|
||||
# Check command did indeed fail
|
||||
[ $status != 0 ]
|
||||
rm $OUTPUT || true
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import random
|
|||
from eccodes import *
|
||||
|
||||
INPUT='../../data/constant_field.grib1'
|
||||
OUTPUT='out.grib'
|
||||
OUTPUT='out.clone.grib'
|
||||
VERBOSE=1 # verbose error reporting
|
||||
|
||||
def example():
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
REDIRECT=/dev/null
|
||||
$PYTHON clone.py 2> $REDIRECT > $REDIRECT
|
||||
rm out.grib || true
|
||||
rm -f out.clone.grib || true
|
||||
|
|
|
@ -14,7 +14,7 @@ import sys
|
|||
from eccodes import *
|
||||
|
||||
INPUT='../../data/sample.grib2'
|
||||
OUTPUT='out.grib'
|
||||
OUTPUT='out.mw.grib'
|
||||
VERBOSE=1 # verbose error reporting
|
||||
|
||||
def example():
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
REDIRECT=/dev/null
|
||||
$PYTHON multi_write.py 2> $REDIRECT > $REDIRECT
|
||||
rm out.grib || true
|
||||
rm -f out.mw.grib || true
|
||||
|
|
|
@ -14,7 +14,7 @@ import sys
|
|||
from eccodes import *
|
||||
|
||||
INPUT='../../data/tp_ecmwf.grib'
|
||||
OUTPUT='out.grib'
|
||||
OUTPUT='out.samples.grib'
|
||||
VERBOSE=1 # verbose error reporting
|
||||
|
||||
def example():
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
REDIRECT=/dev/null
|
||||
$PYTHON samples.py 2> $REDIRECT > $REDIRECT
|
||||
rm out.grib || true
|
||||
rm -f out.samples.grib || true
|
||||
|
|
|
@ -13,7 +13,7 @@ from eccodes import *
|
|||
from datetime import date
|
||||
|
||||
INPUT='../../data/regular_latlon_surface_constant.grib1'
|
||||
OUTPUT='out.grib'
|
||||
OUTPUT='out.set.grib'
|
||||
VERBOSE=1 # verbose error reporting
|
||||
|
||||
def example():
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
REDIRECT=/dev/null
|
||||
$PYTHON set.py 2> $REDIRECT > $REDIRECT
|
||||
rm out.grib || true
|
||||
rm -f out.set.grib || true
|
||||
|
|
|
@ -11,7 +11,7 @@ import sys
|
|||
from eccodes import *
|
||||
|
||||
INPUT = '../../data/regular_latlon_surface.grib1'
|
||||
OUTPUT = 'out.grib'
|
||||
OUTPUT = 'out.bmp.grib'
|
||||
MISSING = 9999
|
||||
VERBOSE = 1 # verbose error reporting
|
||||
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
REDIRECT=/dev/null
|
||||
$PYTHON set_bitmap.py 2> $REDIRECT > $REDIRECT
|
||||
rm out.grib || true
|
||||
rm out.bmp.grib || true
|
||||
|
|
|
@ -14,7 +14,7 @@ import sys
|
|||
from eccodes import *
|
||||
|
||||
INPUT='../../data/tigge/tigge_ecmf_pl_t.grib'
|
||||
OUTPUT='out.grib'
|
||||
OUTPUT='out.set_missing.grib'
|
||||
VERBOSE=1 # verbose error reporting
|
||||
|
||||
def example():
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
REDIRECT=/dev/null
|
||||
$PYTHON set_missing.py 2> $REDIRECT > $REDIRECT
|
||||
rm out.grib || true
|
||||
rm -f out.set_missing.grib || true
|
||||
|
|
|
@ -28,7 +28,7 @@ def example():
|
|||
numberOfCoefficients = 2 * (numberOfLevels + 1)
|
||||
assert(len(pv) == numberOfCoefficients)
|
||||
|
||||
fout = open('out.grib1','w')
|
||||
fout = open('out.pv.grib1','w')
|
||||
gid = codes_new_from_samples('reduced_gg_sfc_grib1')
|
||||
|
||||
codes_set(gid,'typeOfLevel','hybrid')
|
||||
|
|
Loading…
Reference in New Issue