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

add write zarr functionality #8

Merged
merged 13 commits into from
Feb 13, 2025
Merged

Conversation

sadamov
Copy link
Collaborator

@sadamov sadamov commented Feb 10, 2025

Copy paste implementation from mllam#104 (2025-02-10)

@sadamov sadamov merged commit 932caf2 into joeloskarsson:research Feb 13, 2025
joeloskarsson added a commit that referenced this pull request Feb 18, 2025
* Implement subsampling using wrapper class

* Make sure time_step_state is computed correct when using subsampling

* add write zarr functionality (#8)

* add write zarr functionality

* multi-zarr works but write 1TB data and wrong state_times

* working multigpu

* slow but working solution with region="auto"

* debugging

* remove manual chunking - WORKS!

* remove logger

* improve chunking for large files

* removed chunking outside if clause

* revert to most simple xarray append

* reset to dmi branch

* linting

* Encode start_time coord using unix standard time when saving to zarr

* Do not instantiate a WeatherDataset on saving each batch

* Fix wrong start_time when saving to zarr

* Rescale predictions to original data scale before saving

* Change chunking to 1 for all except state dim

---------

Co-authored-by: sadamov <45732287+sadamov@users.noreply.github.com>
Co-authored-by: sadamov <kode@mailbox.org>
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

Successfully merging this pull request may close these issues.

1 participant