-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Problem statement
Currently, the 2_easymore_remapping.py is not accompanied with a script to submit the easymore job on HPC. This could be important when dealing with large files, and when the process could take up to a few hours.
Proposed solution
Here is a script I have recently used:
#!/bin/bash
#SBATCH --account=rpp-kshook
#SBATCH --ntasks=1
#SBATCH --mem-per-cpu=32G
#SBATCH --time=24:00:00 # time (DD-HH:MM)
#SBATCH --job-name=nc_post_pro
#SBATCH --output=./nc_post_pro-out.txt
#SBATCH --error=./nc_post_pro-err.txt
#SBATCH [email protected]
#SBATCH --mail-type=BEGIN,END,FAIL
# load needed modules
module load StdEnv/2020 gcc/9.3.0 openmpi/4.0.3
module load gdal/3.5.1 libspatialindex/1.8.5
module load python/3.8.10 scipy-stack/2022a mpi4py/3.0.3
# create virtual env inside the job
virtualenv --no-download $SLURM_TMPDIR/env
source $SLURM_TMPDIR/env/bin/activate
pip install --no-index --upgrade pip
pip install --no-index easymore
# run python script that include easymore remapper
python 2_easymore_remapping.pyThis has been taken from https://github.com/ShervanGharari/easymore_config_for_compute_canada
Metadata
Metadata
Assignees
Labels
No labels