Skip to content

Commit

Permalink
Create scripts folder for reference scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-seaice committed Apr 4, 2024
1 parent 6b8c644 commit 29c2291
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 31 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
31 changes: 0 additions & 31 deletions om3utils/pbs_make_cice_grids.sh

This file was deleted.

5 changes: 5 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
@@ -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.
33 changes: 33 additions & 0 deletions scripts/pbs_make_cice_grids.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 29c2291

Please sign in to comment.