Skip to content

#979 Initial util code for grid names - #1004

Draft
Jared Drayton (mo-jareddrayton) wants to merge 1 commit into
mainfrom
979-add-a-utility-for-generating-grid-labels-for-cmip7
Draft

#979 Initial util code for grid names#1004
Jared Drayton (mo-jareddrayton) wants to merge 1 commit into
mainfrom
979-add-a-utility-for-generating-grid-labels-for-cmip7

Conversation

@mo-jareddrayton

Copy link
Copy Markdown
Collaborator

Closes #979

from cdds.utils.grid_labels.parsers import parse_icemod_grids, parse_ocean_grids
from cdds.utils.grid_labels.stashmaster import stash_records

grid_name_to_grid_id = {

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.

mention that this relates to STASH entries

Comment on lines +106 to +109
if variable in seaice_grids and variable not in seaice:
grid_name = "tripolar-native"
if variable in seaice:
grid_name = seaice[variable]

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.

Consider searching expression for apply_ocean_coordinates to identify sea ice variables that are not on T points

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.

Other than docstrings looks good

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.

Add a utility for generating grid labels for CMIP7

2 participants