# 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 filename="file.txt",tile="31TCH",out_path="path/where/to/store/results"(,overwrite="false") run_lis_from_filelist.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="T"$1
if[-z$tile];then
echo"tile is not set, exit"
exit
fi
# filename to process
if[-z$filename];then
echo"filename is not set, exit"
exit 1
fi
echo$filename
if[-z$overwrite];then
echo"overwrite is not set, not overwrite will be done"