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 example of compression, chunking by trajectory #152

Merged
merged 4 commits into from
Dec 3, 2024

Conversation

jerabaul29
Copy link
Collaborator

This is to illustrate how the user can compress the data.

This is a bit verbose, but given that the users may want to chunk in another way, this is what I think could be most pedagogical.

I added a larger file to the test_data, so that compression actually helps (with the small files we had so far, compression was degrading size, which is understandable :) ).

closes #144

@jerabaul29
Copy link
Collaborator Author

I use some jupyter magics (see the !ls commands), curious if this will work with how the CICD works and builds the example pages :) .

@jerabaul29
Copy link
Collaborator Author

ok, magics do not work there :( . pushing a quick fix now, but maybe someone better at this can do something nicer :)

examples/example_compress.py Outdated Show resolved Hide resolved
examples/example_compress.py Outdated Show resolved Hide resolved
@jerabaul29
Copy link
Collaborator Author

done :) .

@gauteh
Copy link
Member

gauteh commented Dec 3, 2024

Thanks!

@gauteh gauteh merged commit 3a3b266 into OpenDrift:main Dec 3, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants