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

Allow use of new ocean mask variable default #202

Merged
merged 8 commits into from
Feb 14, 2023
Merged

Conversation

juliecaron
Copy link
Collaborator

@juliecaron juliecaron commented Aug 4, 2022

This PR adds a new mask: "ocean" option to the ADF variable defaults list that allows a user to have only values over the open ocean included in table calculations and plot generation, except for (currently) the special regional map generation. This new mask is applied by default to SST, but can always be added to additional variables as well by default later.

Also, there are currently no "observations" of ocean fraction in the ADF observations collection, and thus for now the mask is only applied for model vs. model comparisons

Finally, it should be noted that in order for this new feature to be applied properly, the provided conda environment had to be updated, which brings the ADF environment closer in line with CISL's NPL envrionment. This modification will also require a new ADF tag to be made after this PR is merged, so that a user can easily find the exact conda environment file they need.

Along with the mask addition, a bug was fixed in the calculation of climo files.

Fixes #190
Fixes #193
Fixes #214
Addresses #157

@nusbaume nusbaume changed the title apply OCNFRAC mask to SST or TS if SST not present Allow use of new ocean mask variable default. Feb 8, 2023
@nusbaume nusbaume changed the title Allow use of new ocean mask variable default. Allow use of new ocean mask variable default Feb 8, 2023
@nusbaume nusbaume self-assigned this Feb 8, 2023
@nusbaume nusbaume added enhancement New feature or request bug-fix Fixes a particular bug (or set of bugs) plotting Related to plot generation labels Feb 8, 2023
Copy link
Collaborator

@justin-richling justin-richling left a comment

Choose a reason for hiding this comment

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

This all looks pretty good, thanks for adding in some of the extra features too; the add_diag_var will come in handy.

You should be good to merge, thanks.

@nusbaume nusbaume merged commit 85b5b4d into NCAR:main Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix Fixes a particular bug (or set of bugs) enhancement New feature or request plotting Related to plot generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

calc_cam_climo logic needs help ADF tables may not be handling missing data properly Incorrect SSTs
3 participants