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

Update _make_hgrid docstring #82

Merged
merged 3 commits into from
Nov 15, 2023
Merged
Changes from all commits
Commits
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
10 changes: 3 additions & 7 deletions regional_mom6/regional_mom6.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,14 +510,10 @@ def __init__(
def _make_hgrid(self, gridtype):
"""Sets up hgrid based on users specification of
domain. Default behaviour leaves latitude and longitude evenly
spaced.

If user specifies a resolution of 0.1 degrees, longitude is
spaced this way and latitude spaced with 0.1
cos(mean_latitude). This way, grids in the centre of the
domain are perfectly square, but decrease monatonically in
area away from the equator
navidcy marked this conversation as resolved.
Show resolved Hide resolved
spaced. This is very simple but suitable for small domains.

Note:
The intention is for the hgrid generation to be very flexible. For now there is only one implemented horizontal grid included in the package, but you can customise it by simply overwriting the `hgrid.nc` file that's deposited in your `rundir` after initialising an `experiment`. To conserve the metadata, it might be easiest to read the file in, then modify the fields before re-saving.
"""

if gridtype == "even_spacing":
Expand Down