forked from langnico/global-canopy-height-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_merge_h5_files_per_split.sh
executable file
·28 lines (21 loc) · 1.13 KB
/
run_merge_h5_files_per_split.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
#SBATCH --job-name=merge_h5
#SBATCH --array=0
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=8
#SBATCH --mem-per-cpu=8G # this is muliplied by cpus-per-task AND ntasks
#SBATCH --time=0-48:00:00
#SBATCH --output=/cluster/work/igp_psr/nlang/experiments/gchm/slurm_logs/slurm-%A_%a_%x.out
# send email
#SBATCH --mail-type=ARRAY_TASKS # send email for each individual array task, otherwise only for the job array as a whole.
#SBATCH --mail-type=end # send email when job ends
#SBATCH --mail-type=fail # send email if job fails
module load gcc/6.3.0 openblas/0.2.20 nccl/2.7.8-1 python_gpu/3.8.5 cuda/11.7.0 cudnn/8.4.0.27 gdal/3.5.3
# Set path to python
PYTHON="$HOME/venvs/gchm/bin/python"
# Set path to repository
CODE_PATH="${HOME}/code/global-canopy-height-model-private"
cd ${CODE_PATH}
in_h5_dir_parts="/cluster/work/igp_psr/nlang/global_vhm/gchm_public_data/training_data/GLOBAL_GEDI_2019_2020/parts_shuffled"
out_h5_dir="/cluster/work/igp_psr/nlang/global_vhm/gchm_public_data/training_data/GLOBAL_GEDI_2019_2020/merged_shuffled"
$PYTHON gchm/preprocess/merge_h5_files_per_split.py ${in_h5_dir_parts} ${out_h5_dir}