COSIMA / cosima-recipes

A cookbook of recipes (i.e., examples) for analysing ocean and sea ice model output
https://cosima-recipes.readthedocs.io
Apache License 2.0
46 stars 66 forks source link

Intake conversion Regridding example; take #2 #413

Closed navidcy closed 4 months ago

navidcy commented 4 months ago

I tried to work with #366 but I couldn't resolve the merge conflicts... So I opened this PR to convert the Regridding example to use Intake instead of cookbook.

Also this PR deals with #418 regarding the Regridding example.

review-notebook-app[bot] commented 4 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

navidcy commented 4 months ago

Took the opportunity to rename/retitle the notebook as per discussion in #412

review-notebook-app[bot] commented 4 months ago

View / edit / reply to this conversation on ReviewNB

anton-seaice commented on 2024-07-08T07:05:56Z ----------------------------------------------------------------

Line #1.    import pandas as pd

This isn't used


review-notebook-app[bot] commented 4 months ago

View / edit / reply to this conversation on ReviewNB

anton-seaice commented on 2024-07-08T07:05:56Z ----------------------------------------------------------------

Line #5.    ssh_1 = ds['sea_level'].sel(time=slice('2000-01-01', '2001-12-31')).cf.chunk({'time': 'auto', 'longitude': -1, 'latitude': -1})

I suggest we just .load() rather than rechunk ...


review-notebook-app[bot] commented 4 months ago

View / edit / reply to this conversation on ReviewNB

anton-seaice commented on 2024-07-08T07:05:57Z ----------------------------------------------------------------

Line #5.    ssh_025 = ds['sea_level'].sel(time=slice('2000-01-01', '2001-12-31')).cf.chunk({'time': 'auto', 'longitude': -1, 'latitude': -1})

I suggest we just .load() rather than rechunk ...


_navidcy commented on 2024-07-09T12:19:12Z_ ----------------------------------------------------------------

I left the chunck as it might be needed if you load a larger data array that you can't .load().What do you think?

_anton-seaice commented on 2024-07-10T00:27:59Z_ ----------------------------------------------------------------

It doesn't appear to have made any difference to the times (or perhaps its slower?) so without .load is fine

_navidcy commented on 2024-07-11T14:20:22Z_ ----------------------------------------------------------------

OK, done