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

Intake conversion Atlantic_IndoPacific_Basin_Overturning_Circulation #350

Closed

Conversation

rbeucher
Copy link
Contributor

@rbeucher rbeucher commented Jun 6, 2024

Following the discussion in issue #313, we propose converting the recipes to use Intake, given that the Cookbook is no longer supported and the ACCESS-NRI Intake catalog is now available.

A few months ago, @max-anu began working on this transition. This pull request contains the changes @max-anu made to the notebook specified in the title.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link

review-notebook-app bot commented Aug 30, 2024

View / edit / reply to this conversation on ReviewNB

marc-white commented on 2024-08-30T05:06:46Z
----------------------------------------------------------------

No longer needed - to be deleted. There are also unneeded blank cells on either side of this text.


Copy link

review-notebook-app bot commented Aug 30, 2024

View / edit / reply to this conversation on ReviewNB

marc-white commented on 2024-08-30T05:06:47Z
----------------------------------------------------------------

Would be good to split this cell into a couple of cells to show what ends up in the cat_subset variable


Copy link

review-notebook-app bot commented Aug 30, 2024

View / edit / reply to this conversation on ReviewNB

marc-white commented on 2024-08-30T05:06:48Z
----------------------------------------------------------------

Line #1.    cat_subset = catalog[experiment]

I don't think re-searching the catalog is necessary...


Copy link

review-notebook-app bot commented Aug 30, 2024

View / edit / reply to this conversation on ReviewNB

marc-white commented on 2024-08-30T05:06:48Z
----------------------------------------------------------------

Line #8.    atlantic_sector_mask.coords['xt_ocean'] = psi.grid_xt_ocean.values

Fails out here:

ValueError: cannot add coordinates with new dimensions to a DataArray

Copy link

review-notebook-app bot commented Aug 30, 2024

View / edit / reply to this conversation on ReviewNB

navidcy commented on 2024-08-30T05:23:01Z
----------------------------------------------------------------

I doubt we need pandas here


Copy link
Collaborator

@navidcy navidcy left a comment

Choose a reason for hiding this comment

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

Instead of having a separate recipe for this I suggest we expand a bit with 1-2 cells the https://cosima-recipes.readthedocs.io/en/latest/Recipes/Meridional_Overturning_Circulation.html recipe. This way it will reduce the amount of maintenance we need. Also everything will be at the same place. Also, the recipe on the meridional overturning circulation has been made model agnostic and use pint for units so we don't need to put more effort in doing that here!

cc @adele-morrison, @julia-neme

@adele-morrison
Copy link
Collaborator

Agreed Navid. We already have an issue for this: #435.

@navidcy
Copy link
Collaborator

navidcy commented Aug 30, 2024

I'm closing this then. Let's open a new PR to combine the recipes!

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

Successfully merging this pull request may close these issues.

4 participants