GeoscienceAustralia / dea-notebooks

Repository for Digital Earth Australia Jupyter Notebooks: tools and workflows for geospatial analysis with Open Data Cube and Xarray
https://docs.dea.ga.gov.au/notebooks/
Apache License 2.0
445 stars 128 forks source link

Update repository with recent DigitalEarthAfrica notebooks and code #533

Closed robbibt closed 3 years ago

robbibt commented 4 years ago

In the recent ODC Hackathon 2020 there were some major additions and updates to code in the DEAfrica notebooks repository (https://github.com/digitalearthafrica/deafrica-sandbox-notebooks).

We should keep a list of relevant things that were updated in DEAfrica notebooks/code so that we can port them back over to dea-notebooks.

@cbur24, @caitlinadams, if you get a chance can you comment with any new notebooks/functionality that was developed during the hack that you think would also be useful to include in dea-notebooks? I'm thinking things like the Dask notebook I saw that would work just as well in the Australian context.

caitlinadams commented 4 years ago
cbur24 commented 4 years ago
robbibt commented 4 years ago

Another one I noticed come up in Github emails: was there a bug fix to mostcommon_crs to allow it to work when certain query/data load params are passed to it? @cbur24

cbur24 commented 4 years ago

Yes, that's right @robbibt . Pretty basic, I just removed the offending params:

query = deepcopy(query)
if 'dask_chunks' in query:
      query.pop('dask_chunks', None)

if 'align' in query:
      query.pop('align', None)

A better fix might be to take the query input and only select the params that mostcommon_crs requires (time, lat, lon)

cbur24 commented 4 years ago

A soil moisture notebook has recently been added to the 'Datasets' folder in the DE Africa repo. Uses a global dataset at 10km resolution so should be useful for Australia too

caitlinadams commented 4 years ago

I've added a notebook on generating median, mean, min and max composites to go along with the geomedian notebook. This largely replaces the functionality offered by the DCAL mosaic notebook.

See the PR for details, as I also changed the title of the existing geomedians notebook to group them together.

cbur24 commented 4 years ago
andrewdhicks commented 4 years ago

Added ds.sel(method='...') examples in Frequently_used_code/Working with time in xarray notebook in this PR.

cbur24 commented 4 years ago

New Frequently_used_code notebook demonstrating a PCA on multispectral data

cbur24 commented 4 years ago

Two new Beginners_guide notebooks:

cbur24 commented 4 years ago

New notebook Vegetation_phenology, and accompanying script deafrica_temporal_statistics

robbibt commented 3 years ago

This is done, but we should revisit in the future