niwa / geoapis

A Python package for simply downloading publicly available web-hosted geo-spatial data. View API docs at: https://niwa.github.io/geoapis/
MIT License
9 stars 3 forks source link

Support OpenTopography datasets with files in nested folder structure #19

Closed rosepearson closed 2 years ago

rosepearson commented 2 years ago

Currently it is assumed all files for a OpenTopography dataset are in the top level AWS folder. This causes a 404 traceback when the tile files are grouped in subfolders. i.e. Chch_Selwn_2015

The TileIndex file also contains a URL to the file location. It should be possible to use this directly to extract the folder information.

An example of a nested folder structure: image

An example of the TileIndex contents including a URL: image