-
Notifications
You must be signed in to change notification settings - Fork 66
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 NearestNeighbourDistance #363
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
This is ready to be reviewed. Any volunteers @COSIMA/cosima-contrib? |
Ready to review! |
@@ -31,7 +31,9 @@ | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -31,7 +31,9 @@ | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #2. client = Client("tcp://10.6.48.33:8786")
Curious as to what this means/why we need it? Is it better than dong Client()? I get this error when running it:
OSError: Timed out trying to connect to tcp://10.6.48.33:8786 after 30 s
Reply via ReviewNB
@@ -31,7 +31,9 @@ | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running this with a "small" ARE session crushes the kernel. I think this is because it is not efficient to try to open and then subset the times...
Reply via ReviewNB
@@ -31,7 +31,9 @@ | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #2. cat_subset = catalog['01deg_jra55v140_iaf_cycle4']
Already run in the cell above.
Reply via ReviewNB
@@ -31,7 +31,9 @@ | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #4. var_search = var_search.search(path=var_search.df['path'][0])
What does this do/why we need it?
Reply via ReviewNB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is hack to only load this data from one file (it doesn't change in time, but is saved multiple time in the model output)
Its equivalent to the n=1
argument supplied to getvar
in the cookbook version
I have only commented on the But my biggest concern is that I tried to run it using a small ARE session, and my kernel crashed trying to open the data (3rd cell). It is perfectly fine to open it with the cosima_cookbook. Related to my test here. |
I'm cc'ing here @rbeucher, @anton-seaice, @dougiesquire, @AndyHoggANU in case they want to comment on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments in ReviewNB
I think this is due to the way the CICE data are structured (with the 2D coordinates saved in every file). The issue has been brought up in the past on the forum in the context of the cookbook - see here. There are two solutions described in that topic:
So, pass:
to your |
@@ -31,7 +31,9 @@ | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest getting rid of the cat subset line and merging into the var_search line.
and changing darray
to ds
because its a dataset not a data array
This would be similar to cell 4 in https://github.com/COSIMA/cosima-recipes/blob/4fd51150331ebb1669fdb8bc58ff4ac16b313b0e/Examples/Bathymetry.ipynb
Reply via ReviewNB
@@ -31,7 +31,9 @@ | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anton-seaice feel free to push the changes you suggest? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done the suggestions by @anton-seaice and @dougiesquire
thanks!
oh... @julia-neme requested changed so she needs to approve @julia-neme I ran the notebook and seems good. Recipe takes few minutes! feel free to re-review and approve/merge at your convenience! |
I'm actually taking the liberty to merge and spare @julia-neme from looking at another intake PR |
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.