Skip to content

Support non-periodic longitude in regional bottom roughness calculations#113

Closed
minghangli-uni wants to merge 1 commit intomainfrom
112-non-periodic-bottom-roughness
Closed

Support non-periodic longitude in regional bottom roughness calculations#113
minghangli-uni wants to merge 1 commit intomainfrom
112-non-periodic-bottom-roughness

Conversation

@minghangli-uni
Copy link
Collaborator

closes #112

In regional grid, longitude does not wrap hence in this PR, only use neighbours that are inside the domain and skip neighbours outside bounds. So this is basically a homogenous Neumann boundary condition

@minghangli-uni minghangli-uni self-assigned this Feb 23, 2026
@aekiss
Copy link
Contributor

aekiss commented Feb 25, 2026

Is this the PR you wanted me to look at @minghangli-uni ? It's still in draft.

@minghangli-uni
Copy link
Collaborator Author

Yeah this is still a draft. There are nans appearing in wet cells for the regional configuration and I am investigating it at the moment.

@minghangli-uni
Copy link
Collaborator Author

Had a bit of a brain fade there... Our panan configuration is also periodic in longitude, so the existing script works just fine for it. But this would still be an issue for genuinely regional configs. Since it’s not a priority at the moment, I'll close this for now. Happy to reopen it if and when we decide to prioritise regional support.

Dropping the error here so I don't lose it later...

ValueError: Regridding resulted in 2084 NaN values in wet MOM cells.Check source data coverage and regridding method.

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.

bottom roughness: Handle non-periodic longitude case in fill_missing_data_laplace for regional configurations

2 participants