-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a script to do 'makepointdata' only, for using on CADES.
- Loading branch information
1 parent
bfde99d
commit 13cc3c1
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash -f | ||
#SBATCH --time 24:00:00 | ||
#SBATCH -A ccsi | ||
#SBATCH -p batch | ||
#SBATCH --mem=125G | ||
#SBATCH -N 1 | ||
#SBATCH -n 1 | ||
#SBATCH --ntasks-per-node 1 | ||
#SBATCH --job-name=makepointonly | ||
#SBATCH -o ./%j-output.txt | ||
#SBATCH -e ./%j-error.txt | ||
#SBATCH --exclusive | ||
|
||
source $MODULESHOME/init/bash | ||
source ~/.bashrc | ||
|
||
ZONING_FILE=daymet_zone_mappings.txt | ||
|
||
cwd=$(pwd) | ||
|
||
if python ./makepointdata.py \ | ||
--ccsm_input /lustre/or-hydra/cades-ccsi/proj-shared/project_acme/ACME_inputdata \ | ||
--keep_duplicates \ | ||
--lat_bounds -999,-999 --lon_bounds -999,-999 \ | ||
--mysimyr 1850 \ | ||
--model ELM \ | ||
--surfdata_grid --res hcru_hcru \ | ||
--point_list ${ZONING_FILE} \ | ||
--point_area_kmxkm 1.0 & sleep 10 | ||
|
||
then | ||
wait | ||
|
||
echo "DONE making point data for point_list ${ZONING_FILE} !" | ||
|
||
else | ||
exit &? | ||
fi | ||
|
||
cd ${cwd} | ||
|