eccodes/examples/python/grib_iterator.sh

31 lines
841 B
Bash
Raw Normal View History

2013-03-25 12:04:10 +00:00
#!/bin/sh
. ./include.sh
label="py_grib_iterator"
TEMP1=$label.temp1.$$
TEMP2=$label.temp2.$$
TEMP3=$label.temp3.$$
2013-03-25 12:04:10 +00:00
# Input file with some missing data values
2014-08-21 15:02:15 +00:00
FILE="${data_dir}/reduced_latlon_surface.grib1"
$PYTHON $examples_src/grib_iterator.py $FILE 2> $TEMP1 > $TEMP1
./p_grib_iterator $FILE 2> $TEMP2 > $TEMP2
diff $TEMP1 $TEMP2 >/dev/null
2014-08-21 15:02:15 +00:00
$PYTHON $examples_src/grib_iterator_bitmap.py $FILE 2> $TEMP3 > $TEMP3
diff $TEMP1 $TEMP3 >/dev/null
2013-03-25 12:04:10 +00:00
2014-08-21 15:02:15 +00:00
# Polar stereographic
FILE="${ECCODES_SAMPLES_PATH}/polar_stereographic_pl_grib2.tmpl"
$PYTHON $examples_src/grib_iterator.py $FILE 2> $TEMP1 > $TEMP1
./p_grib_iterator $FILE 2> $TEMP2 > $TEMP2
diff $TEMP1 $TEMP2 >/dev/null
2014-08-21 15:02:15 +00:00
$PYTHON $examples_src/grib_iterator_bitmap.py $FILE 2> $TEMP3 > $TEMP3
diff $TEMP1 $TEMP3 >/dev/null
# Clean up
rm $TEMP1 $TEMP2 $TEMP3