Skip to content

Add PBS job and submission wrapper for bottom roughness generation on Gadi#117

Merged
minghangli-uni merged 5 commits intomainfrom
116-add_pbs_submission_wrapper
Feb 26, 2026
Merged

Add PBS job and submission wrapper for bottom roughness generation on Gadi#117
minghangli-uni merged 5 commits intomainfrom
116-add_pbs_submission_wrapper

Conversation

@minghangli-uni
Copy link
Collaborator

closes #116

@minghangli-uni minghangli-uni self-assigned this Feb 26, 2026
@minghangli-uni
Copy link
Collaborator Author

Below is the help message of submit_bottom_roughness.sh

$ ./submit_bottom_roughness.sh -h

Submit bottom roughness generation PBS job (Gadi).

./submit_bottom_roughness.sh -s PATH_TO_SAVE -r RESOLUTION -p true|false -g HGRID -t TOPOG -j PBS_SCRIPT

Note:
  Reusing PATH_TO_SAVE across resolutions is recommended. The WOA intermediate
  file (depth variance on the WOA grid) is resolution-independent and can be
  reused. After the first run, subsequent runs in the same directory will
  typically skip the intermediate step and only perform regridding much faster.

  However the final output filename is always 'bottom_roughness.nc'.
  Please run one resolution at a time and move or rename the output file
  (e.g. to /g/data/vk83/) before running the next resolution to avoid
  overwriting previous results.

  -h   Show this help message

Required arguments:
  -s   Path to save intermediate and final outputs
  -r   Resolution is one of: 100km, 25km, 8km, panan_4km.
  -p   Periodic mode: true (periodic longitude); false (aperiodic longitude) is not supported yet.
       (Sets BOTH PERIODIC_REGRID and PERIODIC_LON_LAPLACE as a bundle)
  -g   Path to ocean_hgrid.nc
  -t   Path to ocean_topog.nc
  -j   Path to PBS script

Examples:
  # periodic longitude
  ./submit_bottom_roughness.sh -s /path/to/save -r 25km -p true -g /path/to/hgrid.nc -t /path/to/topog.nc -j /path/to/pbs_bottom_roughness.pbs
  # aperiodic longitude (not supported yet)

Hence for 25km configs, one can do,

$ ./submit_bottom_roughness.sh \
-s . \
-p true \
-g /g/data/vk83/configurations/inputs/access-om3/mom/grids/mosaic/global.25km/2025.09.02/ocean_hgrid.nc \
-t /g/data/vk83/configurations/inputs/access-om3/share/grids/global.25km/2025.11.27/topog.nc \
-r 25km \
-j pbs_bottom_roughness.pbs

@minghangli-uni
Copy link
Collaborator Author

Hi @aekiss would you mind reviewing this?

aekiss
aekiss previously approved these changes Feb 26, 2026
Copy link
Contributor

@aekiss aekiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @minghangli-uni - I assume you've tested it?

Co-authored-by: Andrew Kiss <31054815+aekiss@users.noreply.github.com>
@minghangli-uni
Copy link
Collaborator Author

LGTM, thanks @minghangli-uni - I assume you've tested it?

Yep I've tested it. Could you please approve this again?

@minghangli-uni minghangli-uni merged commit 79d4d40 into main Feb 26, 2026
4 checks passed
@minghangli-uni minghangli-uni deleted the 116-add_pbs_submission_wrapper branch February 26, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add PBS job and submission wrapper for bottom roughness generation on Gadi

2 participants