Skip to content

regrid_forcing.py: Add option to homogenize after regridding#124

Merged
dougiesquire merged 1 commit into
mainfrom
regrid-homogenize
Apr 30, 2026
Merged

regrid_forcing.py: Add option to homogenize after regridding#124
dougiesquire merged 1 commit into
mainfrom
regrid-homogenize

Conversation

@dougiesquire
Copy link
Copy Markdown
Collaborator

This PR adds a --homogenize option to regrid_forcing.py. The option replaces regridded values with their horizontal mean after regridding. This can be useful for idealised/test configurations, e.g. this single-column configuration which uses the MOM6 option HOMOGENIZE_FORCINGS = True.

This does not change answers by default and I've checked that it does what I want when turned on (example output here: /g/data/tm70/ds0092/model/config/om3_M_single-column/EPBL/INPUT/BATS/SFe_Hamiltonetal2020_monthly_clim.nc)

Copy link
Copy Markdown
Contributor

@anton-seaice anton-seaice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@dougiesquire dougiesquire merged commit d086659 into main Apr 30, 2026
4 checks passed
@dougiesquire dougiesquire deleted the regrid-homogenize branch April 30, 2026 03:16
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.

2 participants