-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubmit_exportChangeMap_pipe.sh
29 lines (24 loc) · 1.46 KB
/
submit_exportChangeMap_pipe.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
28
29
#!/bin/sh
#SBATCH --partition=generalsky
##SBATCH --partition=parallel
##SBATCH --account=osgusers
##SBATCH --partition=OSGPriority
#SBATCH --ntasks=40
#SBATCH --time=6:00:00 # Job should run for up to 1.5 hours (for example)
#SBATCH --mail-type=END # Event(s) that triggers email notification (BEGIN,END,FAIL,ALL)
#SBATCH --exclude=cn355,cn406,cn217,cn373,cn67,cn87,cn376,cn68,cn116,cn338,cn330,cn398,cn346,cn364,cn368,cn400,cn329,cn333
# working_dir="/scratch/suy20004/suy20004"
# yaml_path="/home/suy20004/Document/pycold-uconnhpc/config.yaml"
# pycold_path='/home/suy20004/Document/pycold'
reccg_path="${4}/h${1}v${2}_results"
reference_path="/scratch/suy20004/suy20004/opensource_dataset/lcmap_lc2001/LCMAP_CU_2001_V01_LCPRI_${1}${2}.tif"
out_path="${4}/h${1}v${2}_results"
# yaml_path="/home/suy20004/Document/pycold-uconnhpc/config.yaml"
# pycold_path='/home/suy20004/Document/pycold'
module purge
module load gsl/2.4
module load proj/4.9.2 geos/3.5.0 mpi/openmpi/2.1.0 libjpeg-turbo/1.1.90 hdf5/1.8.19 netcdf/4.4.1.1-ompi-2.1.0 expat/2.2.0 gdal/2.2.1
module load sqlite/3.18.0 tcl/8.6.6.8606 gcc/5.4.0-alt zlib/1.2.11 java/1.8.0_162 mpi/openmpi/3.1.3 python/3.6.8
# source /home/suy20004/miniconda3/etc/profile.d/conda.sh
# conda activate pycold
mpirun python3 ${6}/src/python/pycold/imagetool/export_change_map.py --reccg_path=$reccg_path --reference_path=$reference_path --out_path=$out_path --method=${3} --yaml_path=${5}