eccodes/examples/python/grib_set_missing.sh

13 lines
281 B
Bash
Raw Permalink Normal View History

2016-08-25 17:25:36 +00:00
#!/bin/sh
. ./include.sh
2017-08-09 12:53:15 +00:00
temp=out.p_set_missing.grib
2016-08-25 17:25:36 +00:00
REDIRECT=/dev/null
$PYTHON $examples_src/grib_set_missing.py 2> $REDIRECT > $REDIRECT
2017-08-09 12:53:15 +00:00
x=`${tools_dir}/grib_get -p scaleFactorOfFirstFixedSurface,scaledValueOfFirstFixedSurface $temp`
[ "$x" = "MISSING MISSING" ]
rm -f $temp