Commit badd3f723d5f227778453e5449a5f96f7dcc698a

Authored by Jordi Inglada
1 parent 8a171ba1
Exists in master

Zonal stats on hal

Showing 2 changed files with 21 additions and 1 deletions   Show diff stats
jobs/prepare_samples.sh
... ... @@ -3,4 +3,4 @@ module load release_66
3 3 iota2path=/work/OT/theia/oso/production/cnes/sources/iota2
4 4 MAASSPSRC=/work/OT/theia/oso/jordi/src/maassp
5 5  
6   -python $iota2path/scripts/Iota2Cluster.py -config $MAASSPSRC/runs_iota2/prepare_samples.cfg -config_ressources /work/OT/theia/oso/production/cnes/inputs/OSO_resources.cfg -mode MPI
  6 +python $iota2path/scripts/Iota2Cluster.py -config $MAASSPSRC/jobs/prepare_samples.cfg -config_ressources /work/OT/theia/oso/production/cnes/inputs/OSO_resources.cfg -mode MPI
... ...
jobs/zonal_stats.pbs 0 → 100644
... ... @@ -0,0 +1,20 @@
  1 +#!/bin/sh
  2 +#PBS -N zonal_stats
  3 +#PBS -l select=1:ncpus=20:mem=110gb
  4 +#PBS -l walltime=20:00:00
  5 +
  6 +
  7 +. /work/OT/theia/oso/jordi/OTB/otb_superbuild/otb_superbuild-otb_develop-Release-install/config_otb_tf_py35.sh
  8 +
  9 +TERLAB_DIR=/work/OT/theia/oso/shapes/TERLAB/
  10 +DPT=31
  11 +TERLAB_FILE=RPG_TERLAB_DEP${DPT}_2017
  12 +TERLAB_ZIP=$TERLAB_DIR/$TERLAB_FILE.7z
  13 +TERLAB_SHP=$TERLAB_DIR/SURFACES-2017-PARCELLES-GRAPHIQUES-CONSTATEES_0${DPT}_20180210.shp
  14 +MAASSP_DIR=/work/OT/theia/oso/jordi/maassp_data
  15 +
  16 +7z x $TERLAB_ZIP -aoa -o$TERLAB_DIR
  17 +#otbcli_ZonalStatistics -in ${MAASSP_DIR}/tiles/T31TCJ/Sentinel2_ST_MASK.tif -inbv -1000 -inzone.vector.in $TERLAB_SHP -inzone.vector.reproject 1 -out.vector.filename ${MAASSP_DIR}/zonal_stats_mask.shp -ram 30000
  18 +
  19 +otbcli_ZonalStatistics -in ${MAASSP_DIR}/tiles/T31TCJ/Sentinel2_ST_REFL.tif -inbv -1000 -inzone.vector.in $TERLAB_SHP -inzone.vector.reproject 1 -out.vector.filename ${MAASSP_DIR}/zonal_stats_refl.shp -ram 30000
  20 +
... ...