-
Notifications
You must be signed in to change notification settings - Fork 134
adapted-LC-to-use-STAC #1370
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
base: develop
Are you sure you want to change the base?
adapted-LC-to-use-STAC #1370
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
For some reason the figure in the pixel drill is different for the two methods for the same year, while all other plots and animations in the other notebooks are identical. I will need to investigate further to understand what's going on |
Does odc.stac assign the central date to annual products, or the first day of the year? I think by filtering using the year only and nearest as method (as we do in the pixel drill notebook) I am actually calling different years depending on if I use datacube or odc.stat. EDIT: yes, that's what's happening. With odc.stac is actually more correct! |
Also, should we keep the STAC versions of the notebook separate, like in a subfolder? Or is it ok to replace the datacube ones? I am also thinking that maybe I shouldn't have modified the Microsoft Planetary Computer one, as it was also a comparison of methos on how to access different data for the same region and time period. |
Maybe we should have some standardised text at the top of each notebook that loads with odc-stac? Something like:
|
No, I believe the idea is to eventually replace all notebooks with the odc-stac versions, thereby freeing dea-notebooks from the sandbox |
Yes, some kind of warning is a good is idea. |
Yeah, I think some standards and templating will be really important. It might even be a good opportunity to refresh the entire top block of the Notebooks! Especially now we have things like Knowledge Hub, and if in the future we want to point out to options like Google Colab/Binder etc. Just a general question: is there a short deadline for getting these changes merged? It just might be good to have a DEA Notebooks catchup soon to discuss how they'll fit with the broader STAC refresh plans, and see if we can make them as standardised and streamlined as possible. |
No pressing deadlines on this, was just something that came up so we progressed it. I agree - let's set a task for updating the DEA-Notebooks template with new info on stac, links to binder etc. |
There's pros and cons of both approaches - personally I think having duplicates of every notebook will get unwieldy very fast, and make maintenance really difficult at the scale of the entire repo (it's already a lot of work even with our current notebooks). So I'd probably lean towards not duplicating, but nothing is set in stone yet. |
It's super neat, and having some working examples like this will make it so much easier to start doing this for the full repo - very exciting! |
Proposed changes
I have updated all land cover notebooks and relevant code to use STAC rather than datacube's dc.load().
The changes made to code in landcover.py are only for the plotting of land cover.
I have tested the DEA_Land_Cover.ipynb notebook that uses dc.load() with these recent changes, and the workflow is not broken.
So both the STAC and the datacube approach are still possible.
I have also made some minor changes to formatting and spelling.
Checklist
If this is a notebook, then have you:
Load packages
General advice
)jupyterlab_code_formatter
tool can be used to format code cells to a consistent style: select each code cell, then clickEdit
and then one of theApply X Formatter
options (YAPF
orBlack
are recommended).Notebook currently compatible with
line below the notebook title to reflect the environments the notebook is compatible with