# run LIS for one Sentinel-2 Level-2A tile (all available dates in the tile folder)
# specify the path to the tile folder, the path the DEM and the template configuration file (.json)
# First argument is the tile name (nnccc): qsub -v tile="31TGK",out_path="path/where/to/store/results"(,overwrite="false") runTile_lis_Sentinel2_datalake_anytile.sh
# FIXME: conflict on hal between environnement variable TMPDIR used also internally by openmpi
# Store the directory in PBS_TMP_DIR
PBS_TMPDIR=$TMPDIR
# Unset TMPDIR env variable which conflicts with openmpi
unset TMPDIR
# Tile to process
# tile="T"$1
if[-z$tile];then
echo"tile is not set, exit"
exit 1
fi
echo$tile
if[-z$overwrite];then
echo"overwrite is not set, not overwrite will be done"
# run LIS for one Sentinel-2 Level-2A tile and one date (walltime is higher)
# specify the path to the tile folder, the path the DEM and the template configuration file (.json)
# First argument is the tile name (nnccc): qsub -v tile="31TCH",date="20160720",out_path="path/where/to/store/results"(,overwrite=false) runTile_lis_Sentinel2_datalake_anytile_anydate.sh
# Second argument is the date (YYYMMDD)
# Tile to process
# tile="T"$1
if[-z$tile];then
echo"tile is not set, exit"
exit
fi
if[-z$date];then
echo"date is not set, exit"
exit
fi
echo$tile" on "$date
if[-z$overwrite];then
echo"overwrite is not set, not overwrite will be done"