keller-mark / pizzarr

Slice into Zarr arrays in R 🍕
https://keller-mark.github.io/pizzarr/
Other
29 stars 3 forks source link

listdir in HttpStore and use consolidated metadata #82

Closed dblodgett-usgs closed 5 months ago

dblodgett-usgs commented 6 months ago

As discussed in #79 -- this PR includes a rudimentary listdir for HttpStore that accesses and parses consolidated metadata.

I've introduced vcr for testing and memoise to avoid repeated requests to http resources.

This PR now also includes use of consolidated metadata for httpstore and other reads. Testing could be a bit more complete, but I feel pretty good about it. Performance is WAY WAY better when trying to access all the metadata for a store.

Happy to refactor or rework this if the pattern I put in isn't in line with your vision here @keller-mark -- R6 is totally new to me so this is a bit hacky -- hopefully I am seeing the forest for the trees!