opendatacube / datacube-explorer

Web-based exploration of Open Data Cube collections
Apache License 2.0
54 stars 31 forks source link

Make it easier to browse dataset s3 files #488

Closed Ariana-B closed 1 year ago

Ariana-B commented 1 year ago

As per issue #480

Config should now include SHOW_DATASET_LOCATION, which is a dict that maps an s3 bucket to its browseable url. For now, that is just dea-public-data mapping to data.dea.ga.gov.au. The first 'location' link for the dataset links to the browseable folder, and all offsets to their respective links from that page.

Added test to test_resolved_uris to verify functionality, including that other links or s3 buckets are unaffected by this change.

Also took the chance to clean up thumbnail work a little: made filter code more pythonic, and updated css to make image width unset so that image ratio is conserved, allowing for proper overlay even if the dataset is irregularly-shaped. Ex: image vs image


:books: Documentation preview :books:: https://datacube-explorer--488.org.readthedocs.build/en/488/