Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use local stashvar_cmip6.py with CASA variables instead of the environment module #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions ACCESS_Archiver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ echo -e "\n---- Setting up jobs ----"

#---- um2nc parallel job ----#
cp $here/subroutines/run_um2nc.py $here/tmp/$loc_exp/run_um2nc.py
cp $here/subroutines/um2netcdf4.py $here/tmp/$loc_exp/um2netcdf4.py # TFL: use local stashvars
cp $here/subroutines/stashvar_cmip6.py $here/tmp/$loc_exp/stashvar_cmip6.py
#
cat << EOF > $here/tmp/$loc_exp/job_um2nc.qsub.sh
#!/bin/bash
Expand All @@ -117,7 +119,8 @@ module use /g/data/hh5/public/modules
module use ~access/modules
module load cdo
module load nco
module load pythonlib/um2netcdf4/2.0
#module load pythonlib/um2netcdf4/2.0 # TFL replaced by local um2netcdf4.py
module load conda/analysis3-23.10
set -a
ncpus=\$PBS_NCPUS
here=$here
Expand All @@ -139,7 +142,7 @@ echo "arch dir: $arch_dir"
echo "local exp: $loc_exp"
echo "access version: $access_version"

python -W ignore $here/tmp/$loc_exp/run_um2nc.py
python3 -W ignore $here/tmp/$loc_exp/run_um2nc.py

EOF
if [[ $access_version != om2 ]]; then
Expand Down
Loading