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

New functionality to get unmasked grids #312

Open
navidcy opened this issue Dec 1, 2022 · 0 comments
Open

New functionality to get unmasked grids #312

navidcy opened this issue Dec 1, 2022 · 0 comments

Comments

@navidcy
Copy link
Collaborator

navidcy commented Dec 1, 2022

At the moment to use the unmasked grids we need to know where they are saved and then do something like

geolon_t = xr.open_dataset('/g/data/ik11/grids/ocean_grid_025.nc').geolon_t

(see, e.g., https://cosima-recipes.readthedocs.io/en/latest/tutorials/Making_Maps_with_Cartopy.html#fixing-the-tripole)

I propose a functionality within the cosima-cookbook which would be something like:

grid = cc.get_unmasked_grid(experiment)

The function, cc.get_unmasked_grid would have the path the grid is hardcoded in and could be updated when that path changes. This way the weight of knowing where the grids are is taken off from the shoulders of the users and goes to the shoulders of the cookbook developers.

cc: @AndyHoggANU, @aidanheerdegen, @angus-g, @micaeljtoliveira, @aekiss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant