-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read FITS straight out of AWS S3 storage #3
Comments
A simpler step before this may be to do it over a remote http address. |
For caldb, yes, but long term, we will need this anyway. |
FYI, in healpy, we recently took pains to make sure that we were not linking cfitsio against libcurl because it turns out that it is a very large dependency (healpy/healpy#906). At least for Python users, support for URLs usually comes from a higher level than cfitsio itself; that would also be my preference for S3 support. |
For DASCH, I've implemented a version of this capability by wrapping the CFITSIO code in a Rust framework that uses the AWS S3 Rust SDK to implement the I/O backend: https://github.com/pkgw/dasch-science-lambda/blob/dev/src/s3fits.rs This uses the There's no reason that one couldn't do this in C++ with the language-appropriate AWS SDK, but I personally would only do so under duress. It remains true that adding support for this inevitably brings in a bunch of HTTPS infrastructure that, as Leo mentioned, makes the library a lot heavier than it is otherwise. For my use case, that's fine, and for Tess's |
I'd prefer if this is not built into cfitsio. The builtin http support already brings along dependencies on curl and ssl that make building downstream dependencies more complicated than otherwise. |
Can cfitsio be made to read data out of an AWS S3 location using the AWS SDK for C++? (https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/examples-s3.html) I mean, for example, that a user would be able to work on an AWS EC2 instance and run a command like
fdump infile=s3://nasa-heasarc/chandra/data/byobsid/5/4475/primary/acisf04475N004_full_img2.fits.gz
This would be extremely useful for users in AWS to work analogously to the astropy.io.fits ability to read straight out of S3 using the boto3 and s3fs libraries.
The text was updated successfully, but these errors were encountered: