Skip to content

Commit

Permalink
Updated the default run directories to match changes to package
Browse files Browse the repository at this point in the history
  • Loading branch information
ashjbarnes committed Dec 15, 2023
1 parent 0dab05b commit 0bd2260
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions demos/access_om2-forced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,9 @@
],
"source": [
"## To simply use Ashley's version of this package, uncomment the following:\n",
"import os\n",
"# os.chdir(\"/home/149/ab8992/cosima_regional/regional-mom6/\")\n",
"\n",
"#IMPORTANT: As of Nov 2023 you need to use analysis-unstable to get the latest version of xESMF or bathymetry regridding won't work\n",
"import os\n",
"import xarray as xr\n",
"import regional_mom6 as rm\n",
"from pathlib import Path\n",
Expand All @@ -362,7 +361,7 @@
"source": [
"## What does this package do?\n",
"\n",
"Setting up a regional model in MOM6 is a pain. The goal of this package is that users should spend their debugging time fixing a model that's running and doing weird things, rather than puzzling over a model that won't even start.\n",
"Setting up a regional model in MOM6 can be a pain. The goal of this package is that users should spend their debugging time fixing a model that's running and doing weird things, rather than puzzling over a model that won't even start.\n",
"\n",
"In running this notebook, you'll hopefully have a running MOM6 regional model. There will still be a lot of fiddling to do with the MOM_input file to make sure that the parameters are set up right for your domain, and you might want to manually edit some of the input files. BUT, this package should help you bypass most of the woes of regridding, encoding and understanding the arcane arts of the MOM6 boundary segment files. \n"
]
Expand Down
6 changes: 2 additions & 4 deletions demos/reanalysis-forced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,7 @@
"source": [
"## Step 8: Modify the default input directory to make a (hopefully) runnable configuration out of the box\n",
"\n",
"This step copies the default directory, and modifies the `MOM_input` and `SIS_input` files to match your experiment. If you use Payu to run mom6, set the `using_payu` flag to `True` and an example `config.yaml` file will be copied to your run directory. This still needs to be modified manually to work with your projects, executable etc.\n",
"\n",
"If you've pip-installed the package, you'll need to know where the `regional-mom6` code was copied to. Alternatively, just clone the repo somewhere else and pass the path to the method below. This allows it to find and modify the default input directory included with the package."
"This step copies the default directory, and modifies the `MOM_layout` files to match your experiment by inserting the right number of x,y points and cpu layout. If you use Payu to run mom6, set the `using_payu` flag to `True` and an example `config.yaml` file will be copied to your run directory. This still needs to be modified manually to work with your projects, executable etc."
]
},
{
Expand All @@ -312,7 +310,7 @@
"metadata": {},
"outputs": [],
"source": [
"expt.setup_run_directory(\"PATH_TO_REGIONAL_MOM6_PACKAGE\",surface_forcing = \"era5\",using_payu = False)"
"expt.setup_run_directory(surface_forcing = \"era5\",using_payu = False)"
]
},
{
Expand Down

0 comments on commit 0bd2260

Please sign in to comment.