usgs / libcomcat

Library of functions and wrapper scripts for accessing ANSS ComCat server data
Other
71 stars 41 forks source link

Can I use this to download all the landslide ground failure images? #266

Closed thomasastanley closed 1 year ago

thomasastanley commented 1 year ago

Is your feature request related to a problem? Please describe. I am trying to download all the landslide ground failure maps, but I don't want to click endlessly through the website. Will this software let me do it?

eg https://earthquake.usgs.gov/realtime/product/ground-failure/6000jllz_cloud/us/1676665996918/jessee_2018_model.tif

Describe the solution you'd like I'd like a path to a download directory where all the files are.

Describe alternatives you've considered Maybe the download paths can be generated in an automated way, but I don't know how to predict these: 6000jllz_cloud 1676665996918

Additional context In the future, I will want to check for new or updated files on a daily basis.

emthompson-usgs commented 1 year ago

Yes, that is what this software is meant for. Note that the repository has recently moved here: https://code.usgs.gov/ghsc/esi/libcomcat-python I'll ask @mhearne-usgs to archive the old repo and have it point to the new one.

The command you probably want is getproduct, documented here: https://code.usgs.gov/ghsc/esi/libcomcat-python/-/blob/main/docs/cli.md#getproduct Note that the documentation has some examples and hopefully that is enough. If you have trouble, let us know.

thomasastanley commented 1 year ago

thanks, i will check it out