Replies: 3 comments 10 replies
-
Thanks @rmg55, glad to hear it's working out for you! Both great suggestions; I'll reply separately for easier threading. If you want to explore either of these in PRs, that would be awesome. For the I think this is one case of a more general issue: wanting/needing to get some metadata out of the files directly, instead of STAC. Instead of putting this in
So yes, I think this totally fits into stackstac—in fact, I think it's a key part to make it work on real-world data. I'd just like to see it as a separate component, instead of another code path in the |
Beta Was this translation helpful? Give feedback.
-
For URL rewriting (from A quick search makes it sound like S3's only API is over HTTP/HTTPS, so I don't know if Then there's the question of /vsicurl vs /vsis3. Again, I know little here, but I'd want to check that /vsis3 isn't just a wrapper around /vsicurl. Skimming the docs, it sure sounds like it is: between The main thing /vsis3 does is add auth to the request. So even if there are no performance differences, routing through /vsis3 could still be handy, in case an asset is given as a plain HTTP URL, but actually requires AWS credentials to access. That said, so far, the assets I've seen on AWS given as Stepping back, if the ideas in corteva/rioxarray#246 (comment) around routing fsspec into GDAL come to fruition, maybe we could handle it at the fsspec level instead, and not worry about /vsicurl vs /vsis3. |
Beta Was this translation helpful? Give feedback.
-
If the http URL is actually just the http version of the s3 location then I don't think there's any way to throttle egress so they should always be the same. |
Beta Was this translation helpful? Give feedback.
-
@gjoseph92 - really enjoying working with this package FYI!
I had a couple ideas for features that I thought might be worthwhile to discuss.
exact: bool
argument. This would:remap_url: func
argument. This would be a function that would alter the url/href of the raster allowing to remap the url from /vsicurl to /vsis3 (or other). Alternative would be to build this logic in with (remap_url: str
such as s3 or az or gc).Thoughts? Would be happy to put together a PR if either of these seem like they would fit into stackstac
Beta Was this translation helpful? Give feedback.
All reactions