Python script for comparing "zonal statistics" implementations/algorithms

bash_grass_exec_cmd.sh 385B

1234567
  1. INDIR="/home/thomas/tmp/zonalbenchmark"
  2. epsg=$(pkinfo -i "/home/thomas/tmp/zonalbenchmark/test_data/wc2.0_10m_tavg_07.tif" -a_srs | tail -c -18 | cut -d '"' -f 4)
  3. grass72 -c epsg:$epsg "$INDIR"/grassdata/templocation -e
  4. export GRASS_BATCH_JOB="$INDIR/bash_grass_set_cmd.sh"
  5. export GRASS_VERBOSE=0
  6. grass72 "$INDIR"/grassdata/templocation/PERMANENT
  7. rm -rf "$INDIR"/grassdata/templocation