eccodes/examples/python/iterator.sh

22 lines
431 B
Bash
Raw Normal View History

2013-03-25 12:04:10 +00:00
#!/bin/sh
. ./include.sh
TEMP1=temp1
TEMP2=temp2
2014-08-21 15:02:15 +00:00
FILE="${data_dir}/reduced_latlon_surface.grib1"
$PYTHON iterator.py $FILE 2> $TEMP1 > $TEMP1
./p_iterator $FILE 2> $TEMP2 > $TEMP2
diff $TEMP1 $TEMP2
2013-03-25 12:04:10 +00:00
2014-08-21 15:02:15 +00:00
# Polar stereographic
FILE="${GRIB_SAMPLES_PATH}/polar_stereographic_pl_grib2.tmpl"
$PYTHON iterator.py $FILE 2> $TEMP1 > $TEMP1
./p_iterator $FILE 2> $TEMP2 > $TEMP2
2013-03-25 12:04:10 +00:00
diff $TEMP1 $TEMP2
2014-08-21 15:02:15 +00:00
2013-03-25 12:04:10 +00:00
rm $TEMP1 $TEMP2 || true