PB-1024: add large asset download guide for assets > 50 GB#127
Conversation
c9dc0df to
5efc56b
Compare
5efc56b to
2f7f9da
Compare
3091930 to
2c2c2a2
Compare
rebert
left a comment
There was a problem hiding this comment.
Nice! Without such a description and an example script, people like me would be lost. Thanks.
2c2c2a2 to
7758331
Compare
GeoPhilo
left a comment
There was a problem hiding this comment.
Thanks a lot for the instructions and sample script!
|
One more thing: this could be parallelized, so several chunks could be downloaded in parallel to speed the whole thing up. But only makes sense if the user has a fast Internet connection. I would not modify the example script, but you can probably mention it somewhere. Another potential solution that just comes to my mind (but would need a little modification of service-stac): we could add the possibility to get a presigned URL for the GET request for the object. With that URL requests would be directed to S3 directly, bypassing CF. (or as part of the asset_id payload, but that would probably impact caching). |
thank you @boecklic . i have added a small comment wrt parallel downloads. |
Add a new page explaining how to download STAC assets larger than 50 GB, which exceed CloudFront's object size limit and return HTTP 400 on regular GET/HEAD requests.
HTTP 206 (Partial Content) is a success status code, not an error, so urllib.request.urlopen() returns it normally without raising an HTTPError.
b36a253 to
c09fbba
Compare
Add a new page explaining how to download STAC assets larger than 50 GB, which exceed CloudFront's object size limit and return HTTP 400 on regular GET/HEAD requests.
Test link