2013-03-25 12:04:10 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. ./include.sh
|
|
|
|
|
2017-04-19 12:58:39 +00:00
|
|
|
label="py_grib_iterator"
|
|
|
|
TEMP1=$label.temp1.$$
|
|
|
|
TEMP2=$label.temp2.$$
|
|
|
|
TEMP3=$label.temp3.$$
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2016-03-10 15:40:18 +00:00
|
|
|
# Input file with some missing data values
|
2014-08-21 15:02:15 +00:00
|
|
|
FILE="${data_dir}/reduced_latlon_surface.grib1"
|
2015-10-16 17:17:30 +00:00
|
|
|
$PYTHON $examples_src/grib_iterator.py $FILE 2> $TEMP1 > $TEMP1
|
2016-03-10 15:40:18 +00:00
|
|
|
./p_grib_iterator $FILE 2> $TEMP2 > $TEMP2
|
2017-04-19 12:58:39 +00:00
|
|
|
diff $TEMP1 $TEMP2 >/dev/null
|
2014-08-21 15:02:15 +00:00
|
|
|
|
2016-03-10 15:40:18 +00:00
|
|
|
$PYTHON $examples_src/grib_iterator_bitmap.py $FILE 2> $TEMP3 > $TEMP3
|
2017-04-19 12:58:39 +00:00
|
|
|
diff $TEMP1 $TEMP3 >/dev/null
|
2016-03-10 15:40:18 +00:00
|
|
|
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2014-08-21 15:02:15 +00:00
|
|
|
# Polar stereographic
|
2015-01-23 22:47:51 +00:00
|
|
|
FILE="${ECCODES_SAMPLES_PATH}/polar_stereographic_pl_grib2.tmpl"
|
2015-10-16 17:17:30 +00:00
|
|
|
$PYTHON $examples_src/grib_iterator.py $FILE 2> $TEMP1 > $TEMP1
|
2015-03-17 14:21:14 +00:00
|
|
|
./p_grib_iterator $FILE 2> $TEMP2 > $TEMP2
|
2017-04-19 12:58:39 +00:00
|
|
|
diff $TEMP1 $TEMP2 >/dev/null
|
2014-08-21 15:02:15 +00:00
|
|
|
|
2016-03-10 15:40:18 +00:00
|
|
|
$PYTHON $examples_src/grib_iterator_bitmap.py $FILE 2> $TEMP3 > $TEMP3
|
2017-04-19 12:58:39 +00:00
|
|
|
diff $TEMP1 $TEMP3 >/dev/null
|
2016-03-10 15:40:18 +00:00
|
|
|
|
2017-04-19 12:58:39 +00:00
|
|
|
# Clean up
|
|
|
|
rm $TEMP1 $TEMP2 $TEMP3
|