#!/bin/bash ############################################################################### # File name: timeslice_job_cray.bash # # # # Author : Zhengtao Cui (Zhengtao.Cui@noaa.gov) # # # # Initial version date: # # # # Last modification date: 7/12/2017 # # # # Description: Submit the USGS time slice job to the WCOSS Cray machines # # # ############################################################################### #BSUB -J time_slice_for_da # Job name #BSUB -o time_slice_for_da.out # output filename #BSUB -e time_slice_for_da.err # error filename #BSUB -L /bin/sh # shell script #BSUB -q "dev_shared" # queue #BSUB -W 00:30 # wallclock time - timing require to complete run #BSUB -P "OHD-T2O" # Project name #BSUB -R 'span[ptile=10]' #BSUB -M 2048 where ## is memory in MB source $HOME/.bashrc find /gpfs/hps/nwc/noscrub/Zhengtao.Cui/time_slices -mtime +5 -exec rm {} \; /gpfs/hps/nwc/save/Zhengtao.Cui/chps-wrf-hydro/usgs_download/analysis/make_time_slice_from_usgs_waterml.py -i /gpfs/hps/nwc/noscrub/Zhengtao.Cui/usgs_flow -o /gpfs/hps/nwc/noscrub/Zhengtao.Cui/time_slices > /gpfs/hps/nwc/noscrub/Zhengtao.Cui/time_slices.log