Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119691871
exec_skyview_50cm.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jun 28, 15:12
Size
1 KB
Mime Type
text/x-shellscript
Expires
Mon, Jun 30, 15:12 (2 d)
Engine
blob
Format
Raw Data
Handle
26989113
Attached To
R8800 solar_potential
exec_skyview_50cm.sh
View Options
#!/bin/bash
## == Settings
#SBATCH --account=cadmos
#SBATCH --job-name=skyview
#SBATCH --nodes=1
#SBATCH --mem=32G
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --time=23:00:00
#SBATCH --workdir ./output
#SBATCH --mail-type=ALL
#SBATCH --mail-user=alina.walch@epfl.ch
#SBATCH --array=1-16
#SBATCH -o skyview_%A_%a.out # Standard output
#SBATCH -e skyview_%A_%a.err # Standard error
echo STARTING AT $(date)
echo
## ====== Specify here the needed modules
module purge
module use /ssoft/playground/rmsilva/spack/share/spack/lmod/linux-rhel7-x86_E5v4_Mellanox/openblas/0.2.20-3jwiins/gcc/6.4.0/
module load gcc python/2.7.14 grass
## ====== Get slurm array ID
N=${SLURM_ARRAY_TASK_ID}
echo Slurm array task ID: $N
echo
# variable(s) to be read from file. Copy and change -f1 to -f2 if more than one column is read in control file
## VAR=`head -n ${N} _controlFile | tail -n 1 | cut -d' ' -f1`
## ====== User input
PATH_TO_SCRIPT=/scratch/walch/grassgis/scripts/executables/workspace_skyview/skyview_50cm.sh
PATH_TO_LOCATION=/scratch/walch/grassgis/GVA_Kanton_LV95
## ENTER OTHER USER INPUTS HERE ##
## ===== Variable definitions
CURR_ID=`expr $N - 1`
MAP_NAME=skyview_$CURR_ID
echo Opening mapset $MAP_NAME
echo
## ===== Execute script
grass74 -c -e $PATH_TO_LOCATION\/$MAP_NAME --exec $PATH_TO_SCRIPT $CURR_ID
echo
echo FINISHED AT $(date)
Event Timeline
Log In to Comment