Skip to content

Commit

Permalink
few notebook fixes (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy authored Apr 23, 2024
1 parent 61aa8f1 commit 102c5f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
21 changes: 6 additions & 15 deletions demos/access_om2-forced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,17 @@
"Additionally, you'll need access to `/g/data/x77/` if you want to use the same executable using the latest FMS build (a good idea for troubleshooting)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"To use your own version of regional_mom6 package, clone the entire github repository\n",
"on your machine and set the regional-mom6 path using the `os` library, like shown below:"
]
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"import os\n",
"os.chdir(\"/g/data/v45/nc3020/dhruvs-regional-mom6/\")\n",
"\n",
"import regional_mom6 as rmom6\n",
"\n",
"import os\n",
"import xarray as xr\n",
"from pathlib import Path\n",
"from dask.distributed import Client"
Expand Down Expand Up @@ -526,7 +517,7 @@
"\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. "
"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. "
]
},
{
Expand Down Expand Up @@ -590,8 +581,8 @@
"source": [
"expt_name = \"tassie-glorys\"\n",
"\n",
"latitude_extent = [-48, -38.95]\n",
"longitude_extent = [143, 150]\n",
"latitude_extent = (-48, -38.95)\n",
"longitude_extent = (143, 150)\n",
"\n",
"date_range = [\"2003-01-01 00:00:00\", \"2003-01-05 00:00:00\"]\n",
"\n",
Expand Down
5 changes: 3 additions & 2 deletions demos/reanalysis-forced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import regional_mom6 as rmom6\n",
"\n",
"import os\n",
"from pathlib import Path\n",
"from dask.distributed import Client"
]
Expand Down Expand Up @@ -381,7 +382,7 @@
"\n",
"Ideally, MOM6 runs. If not, the first thing you should try is reducing the timestep. You can do this by adding `#override DT=XXXX` to your `MOM_override` file. \n",
"\n",
"If there's strange behaviour on your boundaries, you could play around with the `nudging timescale` (an example is already included in the `MOM_override` file). Sometimes, if your boundary has a lot going on (like all of the eddies spinning off the ACC), it can be hard to avoid these edge effects. This is because the chaotic, submesoscale structures developed within the regional domain won't match the flow at the boundary. \n",
"If there's strange behaviour on your boundaries, you could play around with the `nudging timescale` (an example is already included in the `MOM_override` file). Sometimes, if your boundary has a lot going on (like all of the eddies spinning off the western boundary currents or off the Antarctic Circumpolar current), it can be hard to avoid these edge effects. This is because the chaotic, submesoscale structures developed within the regional domain won't match the flow at the boundary. \n",
"\n",
"Another thing that can go wrong is little bays that create non-advective cells at your boundaries. Keep an eye out for tiny bays where one side is taken up by a boundary segment. You can either fill them in manually, or move your boundary slightly to avoid them"
]
Expand Down

0 comments on commit 102c5f9

Please sign in to comment.