diff --git a/README.md b/README.md index 472929e..622947c 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,4 @@ Collection of utilities aimed at simplifying the creation and handling of ACCESS-OM3 runs. It currently includes: - functions to read and write ACCESS-OM3 configuration files - functions to read and process profiling data + - scripts to create the CICE grid file from an existing MOM grid file diff --git a/om3utils/pbs_make_cice_grids.sh b/om3utils/pbs_make_cice_grids.sh deleted file mode 100644 index 6655a38..0000000 --- a/om3utils/pbs_make_cice_grids.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -#PBS -W umask=0022 -#PBS -l mem=24gb -#PBS -l storage=gdata/ik11+gdata/tm70+gdata/hh5 -#PBS -l wd -#PBS -j oe - -umask 0003 - -module purge -module use /g/data/hh5/public/modules -module load conda/analysis3-23.10 - -echo "1 degree" -python3 cice_grid.py /g/data/ik11/inputs/access-om2/input_20201102/mom_1deg/ocean_hgrid.nc /g/data/ik11/inputs/access-om2/input_20201102/mom_1deg/ocean_mask.nc - -mkdir 1deg -mv grid.nc kmt.nc 1deg - -echo "0.25 deg" -python3 cice_grid.py /g/data/ik11/inputs/access-om2/input_20230515_025deg_topog/mom_025deg/ocean_hgrid.nc /g/data/ik11/inputs/access-om2/input_20230515_025deg_topog/mom_025deg/ocean_mask.nc - -mkdir 025deg -mv grid.nc kmt.nc 025deg - -echo "01 deg" -python3 cice_grid.py /g/data/ik11/inputs/access-om2/input_20201102/mom_01deg/ocean_hgrid.nc /g/data/ik11/inputs/access-om2/input_20201102/mom_01deg/ocean_mask.nc - -mkdir 01deg -mv grid.nc kmt.nc 01deg \ No newline at end of file diff --git a/scripts/README.md b/scripts/README.md new file mode 100644 index 0000000..01f3ef0 --- /dev/null +++ b/scripts/README.md @@ -0,0 +1,5 @@ +# Scripts + +This folder contains scripts which are the reference implementation of how to use software within OM3 utils. + +i.e. run `qsub pbs_make_cice_grids.sh` to create the cice grid for ACCESS-OM3 at all three standard resolutions. After sanity checking, these are then moved by hand to the desired folder to run the model. \ No newline at end of file diff --git a/scripts/pbs_make_cice_grids.sh b/scripts/pbs_make_cice_grids.sh new file mode 100644 index 0000000..d5e46f8 --- /dev/null +++ b/scripts/pbs_make_cice_grids.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +#PBS -W umask=0022 +#PBS -l mem=24gb +#PBS -l storage=gdata/ik11+gdata/tm70+gdata/hh5 +#PBS -l wd +#PBS -j oe + +run='python3 ../om3utils/cice_grid.py' + +umask 0003 + +module purge +module use /g/data/hh5/public/modules +module load conda/analysis3-23.10 + +echo "1 degree" +$run /g/data/ik11/inputs/access-om2/input_20201102/mom_1deg/ocean_hgrid.nc /g/data/ik11/inputs/access-om2/input_20201102/mom_1deg/ocean_mask.nc + +mkdir 1deg +mv grid.nc kmt.nc 1deg + +echo "0.25 deg" +$run /g/data/ik11/inputs/access-om2/input_20230515_025deg_topog/mom_025deg/ocean_hgrid.nc /g/data/ik11/inputs/access-om2/input_20230515_025deg_topog/mom_025deg/ocean_mask.nc + +mkdir 025deg +mv grid.nc kmt.nc 025deg + +echo "01 deg" +$run /g/data/ik11/inputs/access-om2/input_20201102/mom_01deg/ocean_hgrid.nc /g/data/ik11/inputs/access-om2/input_20201102/mom_01deg/ocean_mask.nc + +mkdir 01deg +mv grid.nc kmt.nc 01deg \ No newline at end of file