GeoscienceAustralia / digitalearthau

Code and tools for Digital Earth Australia (a deployment of Open Data Cube)
https://geoscienceaustralia.github.io/digitalearthau/
31 stars 21 forks source link

Adding an attribute to the searchable fields in Landsat c3 l1 #301

Closed dunkgray closed 2 years ago

dunkgray commented 3 years ago

Hi, It would be useful if local_path is in the searchable fields in Landsat L1. This would speed up determining which L1's to process.

Thanks Duncan

dunkgray commented 2 years ago

I found out this can't be done since local_path is not in the metadata.

Jez gave this tip though; local_path isn't doable from a type, as it's not a metadata field -- but you should be able to search via uri. Just convert your local path to a file:// uri. It's easy if you're using pathlib: Path(path).as_uri()