-
Notifications
You must be signed in to change notification settings - Fork 70
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 Fig3-GlobalTimeseries #344
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
What is |
It is an old system we used for the GMD paper. |
Do we actually think it's worth converting all these notebooks from the Kiss et al. 2020 paper to intake? I thought they were more here for completeness and historical records. I don't think they're really still used? |
I don't think they are in use, but I think that if we choose to keep them in the repo they should be runnable. |
Is it worth considering archiving them to zenodo or similar? |
I think they are good as extended contributed examples, so would be nice to keep some of them. Especially as we start to evaluate OM3 ... |
I am not finding this conversion to intake easy.... could someone give me a hand understanding these errors? @rbeucher
|
This normally means we need to set |
Sorry @julia-neme . Hopefully we can make it easier soon. |
I have managed to load all the scalars via intake. However, the figure I am getting is not the same as in Kiss et al. (2020). I'm not sure what I'm doing wrong, I've just changed the loading and added one more cycle.... everything else is the same. It is also extremely slow to run and I am using XXlarge Maybe @aekiss @AndyHoggANU @rbeucher have some idea why? |
Hi @julia-neme. The old (cosima-cookbook) and new (intake) versions of this recipe are loading different data, which is why the plots are different. Someone that knows about the history of these experiments will need to comment on this (@aekiss, @AndyHoggANU). For their reference: The cc version uses experiments:
giving ![]() The intake version uses experiments:
giving ![]() Regarding the timing, the relevant baseline is the time taken before changing to the intake catalog. For me, the old version took ~7 mins to run (bearing in mind that this PR also changes the experiments being used, so we're not really comparing apples in comparing the timing of the old and new versions). The big reason your recipe is slow at the moment is because the chunking of the data has not been considered. By default, both the cookbook and the intake catalog open the data using the netcdf chunking. This chunking is particularly sub-optimal for this recipe as the scalar data are chunked in time. Simply adding |
That's great @dougiesquire thank you so much. I'll try to keep in mind all the intake tips I'm getting jaja, apologies for all my problems. The intake catalog doesn't have the original experiments. So I guess maybe keeping these notebooks here, in a current runnable version is not possible... |
@julia-neme would you like me to push the changes I made to the notebook in this PR to generate the above plots in 5.5 mins? |
On one hand yes, but on the other hand I think this is supposed to be a reproduction of the Kiss et al. (2020) figures. If we can't do that reproduction anymore because the experiments are not in intake, I'm not sure we want to update these at all... or even whether it makes sense to have them. @AndyHoggANU @adele-morrison @navidcy what do you think? |
We can add those experiments to the catalog if they're important to people? Data requests can be made here |
I think it makes sense to move to the newer experiments, as those are the ones we use and refer to now. I'm not sure the goal is to literally replicate the exact results in the paper, I think the goal is to have the same figures available (and up to date)? |
Agreed, I think it's worthwhile having this as an example, even if it doesn't reproduce the paper figure - thanks for getting it working! |
It would be good to widen the y axis limits in panel (a) so we can see the complete 0.25° and 0.1° timeseries. |
The differences between the 0.25° runs in panels (a) is a bit surprising. The initial condition is nearly 0.1°C warmer in the new run and the drift also seems a bit stronger. I haven't thought of a plausible explanation for this. The new run fixed an initial condition bug, but the resulting temperature change seems too small to explain it, and also doesn't explain why the initial difference at 1° is smaller and of the opposite sign. The new config uses the updated bathymetry from |
Yeah, I think we should use more recent runs, but retain the style of plot that we used in the original GMD paper. The key is that people may want to use these as examples in the future, so it’s important that they work — and it’s not important for the intake catalog to include very old experiments that we won’t use for science any more … |
We can update the description of this directory in the README to say something along yhe lines of “reproduce figures in the same style as the Kiss et al. (2020) paper using different model output” |
I've just pushed the minor changes I made to speed things up and finish making the plots. Note, I also added a |
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.