Commit dde96f3a authored by Carl Schreck's avatar Carl Schreck

Clusterized prism_to_netcdf

parent 7220f33d
#!/bin/bash --login
#if [ -z "$1" ]; then
# QUEUE=`pick_queue`
#else
# QUEUE=$1
#fi
QUEUE=allnodes
echo $QUEUE
PY_DIR=`pwd`
LOG_DIR=$PY_DIR/log
mkdir -p $LOG_DIR
for month in {1..12}
do
JOB_NAME=prism_to_netcdf"_"$month
echo $JOB_NAME `date`
LOG_FILE=$LOG_DIR/$JOB_NAME.log
ERR_FILE=$LOG_DIR/$JOB_NAME.err
rm $LOG_FILE $ERR_FILE
bsub \
-J $JOB_NAME \
-o $LOG_FILE \
-e $ERR_FILE \
-q $QUEUE \
-n 1 -R "span[hosts=1]" -W 48:00 \
-sp 75 \
$PY_DIR/run_prism_to_netcdf.sh $PY_DIR $month
done
......@@ -22,8 +22,9 @@ parser.add_argument('--year', default=2018)
parser.add_argument('--month', default=9)
args = parser.parse_args()
var_name = args.var_name
year = args.year
month = args.month
year = int(args.year)
month = int(args.month)
cjs.tstamp(f'{year}--{month}')
var_name_to_long_name = {
'tmin': 'Minimum Temperature',
......
#!/bin/bash --login
py_dir=$1
month=$2
echo $py_dir
echo $month
cd $py_dir
pwd
export MPLBACKEND="agg"
for year in {1981..1982}
do
python -u prism_to_netcdf.py --year $year --month $month
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment