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

Declutter notebook #85

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
0e7c589
Modify notebook to remove mentions of NCI
ashjbarnes Nov 15, 2023
1588ad1
modify notebook
ashjbarnes Nov 15, 2023
0222382
migrate era5 and setup rundir functions from notebook to package
ashjbarnes Nov 15, 2023
2fcf7f6
decluttered notebook, added functions to library instead. reanalysis …
ashjbarnes Nov 15, 2023
69b3511
update docstrings
ashjbarnes Nov 15, 2023
6dd8549
black
ashjbarnes Nov 15, 2023
01dd95d
docstring vgrid
ashjbarnes Nov 15, 2023
c8d6175
delete model-forced notebook to migrate it to cosima recipes
ashjbarnes Nov 15, 2023
6529ae3
Merge branch 'main' into declutter_notebook
ashjbarnes Nov 15, 2023
d34360a
update the model forced example to include for now
ashjbarnes Nov 15, 2023
7bd42db
Merge branch 'declutter_notebook' of github.com:COSIMA/mom6-regional …
ashjbarnes Nov 15, 2023
f38cc87
fix diag table
ashjbarnes Nov 16, 2023
2e25ad5
fix diag table
ashjbarnes Nov 16, 2023
1408db4
execute notebook to keep sphinx happy
ashjbarnes Nov 16, 2023
c89c436
Update regional_mom6/regional_mom6.py
ashjbarnes Nov 22, 2023
e1de0d8
Update regional_mom6/regional_mom6.py
ashjbarnes Nov 22, 2023
d81495f
Update regional_mom6/regional_mom6.py
ashjbarnes Nov 22, 2023
4d25a17
fix copytree overwrite issue
ashjbarnes Nov 28, 2023
3190caa
Update regional_mom6/regional_mom6.py
ashjbarnes Nov 28, 2023
1685d2c
remove subprocess and fix era5 calculation formatting
ashjbarnes Nov 28, 2023
cba5b2c
update dependencies and move default run directories to demo folder
ashjbarnes Nov 28, 2023
ed8a49c
use pyyaml to modify config.yaml
ashjbarnes Nov 28, 2023
c50fe89
modified file manipulations
ashjbarnes Nov 28, 2023
b6d894f
revert to string maniplulations for yaml file
ashjbarnes Nov 29, 2023
a8541b1
black reformat
ashjbarnes Nov 29, 2023
19e7836
update setup_era5 docstring
ashjbarnes Nov 29, 2023
fca3849
Switch to ruamel.yaml for manipulating config.yaml
angus-g Nov 30, 2023
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
213 changes: 58 additions & 155 deletions demos/model-forced.ipynb → demos/access_om2-forced.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## Example of a config.yaml file for using MOM6 with Payu

project: x77
queue: normal
walltime: 02:00:00
jobname: mom6_GIPPSLAND
jobname: mom6_regional
ncpus: 82
jobfs: 10GB

Expand All @@ -10,15 +12,10 @@ shortpath: /scratch/x77
model: mom6
input:
- /scratch/v45/ab8992/mom6/regional_configs/gippsland
# - /g/data/ua8/JRA55-do/RYF/v1-3/
- /g/data/ik11/inputs/JRA-55/RYF/v1-3/
# release exe
exe: /g/data/x77/ahg157/exes/MOM6_SIS2/symmetric_FMS2-e7d09b7
# debug exe
#exe: /g/data/x77/ahg157/exes/MOM6_SIS2/symmetric_FMS2-9bc3419a


collate: false
#runlog: true
storage:
gdata:
- ua8
Expand Down
22 changes: 22 additions & 0 deletions demos/premade_run_directories/era5_surface/data_table
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

"ATM", "p_surf", "", "", "bilinear", 100410.25
"ATM", "p_bot", "", "", "bilinear", 100410.25
"ATM", "t_bot", "", "", "bilinear", 289.9
"ATM", "sphum_bot", "", "", "bilinear", 0.0083
"ATM", "u_bot", "", "", "bicubic", 0.0
"ATM", "v_bot", "", "", "bicubic", 0.0
"ATM", "z_bot", "", "", "bilinear", 10.0
"ATM", "gust", "", "", "bilinear", 1.0e-4
"ICE", "lw_flux_dn", "", "", "bilinear", 1.0
"ICE", "sw_flux_vis_dir_dn", "", "", "bilinear", 0.0
"ICE", "sw_flux_vis_dif_dn", "", "", "bilinear", 0.0
"ICE", "sw_flux_nir_dir_dn", "", "", "bilinear", 0.0
"ICE", "sw_flux_nir_dif_dn", "", "", "bilinear", 0.0
"ICE", "lprec", "", "", "bilinear", 0.0
"ICE", "fprec", "", "", "bilinear", 0.0
"ICE", "runoff", "", "", "none", 0.0
"ICE", "dhdt", "", "", "none", 80.0
"ICE", "dedt", "", "", "none", 2.0e-6
"ICE", "drdt", "", "", "none", 10.0
"LND", "rough_mom", "", "", "none", 0.01
"LND", "rough_heat", "", "", "none", 0.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## Example of a config.yaml file for running mom6 via payu

project: x77
queue: normal
walltime: 02:00:00
jobname: mom6_GIPPSLAND
jobname: mom6_regional
ncpus: 82
jobfs: 10GB

Expand All @@ -10,15 +12,11 @@ shortpath: /scratch/x77
model: mom6
input:
- /scratch/v45/ab8992/mom6/regional_configs/gippsland
# - /g/data/ua8/JRA55-do/RYF/v1-3/
- /g/data/ik11/inputs/JRA-55/RYF/v1-3/
# release exe
exe: /g/data/x77/ahg157/exes/MOM6_SIS2/symmetric_FMS2-e7d09b7
# debug exe
#exe: /g/data/x77/ahg157/exes/MOM6_SIS2/symmetric_FMS2-9bc3419a


collate: false
#runlog: true
storage:
gdata:
- ua8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
eac
1991 1 1 0 0 0
regional_mom6
1990 1 1 0 0 0

"ocean_daily", 1, "days", 1, "days", "time"
"ocean_month", 1, "months", 1, "days", "time"
Expand Down
884 changes: 113 additions & 771 deletions demos/reanalysis-forced.ipynb

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ dependencies = [
"scipy>=1.2.0",
"xarray",
"xesmf>=0.8",
"ruamel.yaml>=0.18.0",
"f90nml>=1.4.1",
]

[build-system]
Expand Down
21 changes: 0 additions & 21 deletions regional_mom6/default_rundir/era5_surface/data_table

This file was deleted.

93 changes: 0 additions & 93 deletions regional_mom6/default_rundir/era5_surface/env.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions regional_mom6/default_rundir/era5_surface/job.yaml

This file was deleted.

93 changes: 0 additions & 93 deletions regional_mom6/default_rundir/jra_surface/env.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions regional_mom6/default_rundir/jra_surface/job.yaml

This file was deleted.

Loading