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

Convert nowcast callback exporter to xarray #404

Open
mats-knmi opened this issue Jul 19, 2024 · 0 comments
Open

Convert nowcast callback exporter to xarray #404

mats-knmi opened this issue Jul 19, 2024 · 0 comments
Assignees

Comments

@mats-knmi
Copy link
Contributor

mats-knmi commented Jul 19, 2024

Since xarray does not natively support incremental writes (https://stackoverflow.com/questions/66231575/xarray-appending-or-rewriting-a-existing-nc-file), we need to find a solution for the callback method.

  • One option could be to create the initial dataset using dataset.to_netcdf(...) and then incremental write to it using the netcdf4 library directly.
  • Another option is to use dask, as that is supposed to make it possible to stream data, but I don't know how that works and if it even fits our usecase (a dask expert, might be able to pick this up).
  • Final option is to just create separate files per timestep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants