Skip to content

Correctly mask area for use in hypoxic area calculation#278

Merged
uwagura merged 1 commit into
NOAA-GFDL:mainfrom
andrew-c-ross:fix/hypoxic_area_diag
Jun 9, 2026
Merged

Correctly mask area for use in hypoxic area calculation#278
uwagura merged 1 commit into
NOAA-GFDL:mainfrom
andrew-c-ross:fix/hypoxic_area_diag

Conversation

@andrew-c-ross

Copy link
Copy Markdown
Contributor

There was a bug in the hypoxic area diagnostic: instead of the cell area being masked to only hypoxic conditions and summed, oxygen was masked to hypoxic conditions, multiplied by area, and then summed. Fortunately, because the oxygen was masked to where it was < 2, this had a fairly minor impact on the diagnostic result. Nevertheless, this PR fixes the bug and correctly calculates the area where oxygen is < 2 mg/l.

@andrew-c-ross andrew-c-ross added the bug Something isn't working label Jun 4, 2026

@uwagura uwagura left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I had some difficulty running this on analysis, mostly due to the size of the data and perhaps because of some dmget issues, but I was eventually able to run it by extracting a few days worth of daily data and running on that rather than the whole thing. We may want to explore ways of improving some of the diagnostics that use large, daily datasets in future, but that can be for a later PR. This one is good to go for now.

@uwagura uwagura merged commit 36ad952 into NOAA-GFDL:main Jun 9, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants