-
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
Adding raster compression option #106
Conversation
Thanks for working on this @Antsalacia! You create a I guess you'd want this: Line 178 in 71b3cc5
to rather be something like: self.get_raster_compression() with Lines 204 to 219 in 71b3cc5
|
Solved #84 |
For now this code isn't working, but it's not visible since we can't run That's because in Actually Remember to run your modifications before pushing your code! If it doesn't work, please make a note that it will be fixed later! :) |
Also, could you:
|
What kind of test should I add in test_earthspy for raster_compression ? |
Have you tested if the raster saving works fine with "compress" to None in the metadata? You could try on the earthspy example in the README. |
The raster saving works fine when no argument is pass to |
Cool thanks! Then what remains is to resolve the discussion with CodeQL further up here and then you'd need to run the See CONTRIBUTING.md for details. :) |
I just added a commit to address CodeQL alert that I see you fixed |
Don't hesitate to One would usually run |
closes #84 |
Now that I think about it, we could only update the metadata dictionary to add the compression when |
I just added more comments and fixed a couple more things. So I think the only thing missing here is to get |
How can I check raster_compression when I try this it doesn't work: |
Maybe |
Still the same after pip |
Can you share where you're running this |
I am running it in the |
All good now was just testing the wrong way thanks for helping. |
Nice to hear! Now please modify the tests to compliy with github-advanced-security |
tests/test_earthspy.py
Outdated
# assert all(isinstance(item, str) for item in self.t3.output_filenames_renamed) | ||
# # check that one output per split box was created | ||
# assert len(self.t3.outputs) == len(self.t3.split_boxes) | ||
# check raster compression sith mode specified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's a typo left :) "sith"
Added a compression option in
set_query_parameters
and put new key in theoutput_metadata
dictionary.Method get_raster_compression added with a try and except.