Skip to content
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

expose API surface for loading netcdf directly from a Buffer #38

Open
riastrad opened this issue Jul 13, 2022 · 0 comments
Open

expose API surface for loading netcdf directly from a Buffer #38

riastrad opened this issue Jul 13, 2022 · 0 comments

Comments

@riastrad
Copy link

I currently have an application that downloads NetCDF data from S3 and then uses this library to read that data. Unfortunately, with the API surface that's currently exposed, I'm forced to save the data I have to disk first and then read it back into memory.

Obviously, this isn't the ideal workflow, since I already have the object in memory when downloading from S3. So it would be preferable if I could simply pass my buffer to a netcdf method (e.g. new netcdf4.fromBuffer(data)) and skip the disk entirely.

Based on the C-library's documentation, this is already implemented in NetCDF4 (source docs) and it should just be a question of adding new bindings to this library.

@parro-it any chance of implementing this in the future? I'm not very familiar with this repo's code, but I could also try to put a PR together (definitely the slower option) if you'd be willing to review & then make a new release after it was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant