-
Notifications
You must be signed in to change notification settings - Fork 26
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
Keep fill value for encoding #369
Conversation
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.
I think this is right, thanks @abarciauskas-bgse
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #369 +/- ##
=======================================
Coverage 78.90% 78.90%
=======================================
Files 32 32
Lines 1906 1906
=======================================
Hits 1504 1504
Misses 402 402
|
@abarciauskas-bgse Thanks for reporting the bug! I'm still not sure if |
Thanks for looking @ayushnag. Are we sure that _FillValue should be removed? I'm considering (a) I see |
@ayushnag @TomNicholas I'm still not 100% sure I understand in what data structures for what backend data formats It appears there is an upstream failure that I will look into fixing. |
@mpiannucci @TomNicholas I had to pin |
I'm going to merge as tests are passing and don't want this to get stale. Will work on the upgrades suggested https://github.com/zarr-developers/VirtualiZarr/pull/375/files |
While trying to create a virtual icechunk store for MUR SST, using the dmrpp reader, I noticed that a mean value coming back from the icechunk store was wrong. (To be clear this issue has nothing to do with icechunk, but the data have to be stored to zarr or icechunk). After some trial and error, I found that the issue was a missing fill value in the encoding of the data variables. This PR fixes the issue by replacing
pop
withget
for the_FillValue
in attrs, so they can be passed along in the encoding.I verified this works by making the same code change in the dmrpp.py file VirtualiZarr dependency of my notebook (run on hub.openveda.cloud and using the quay.io/developmentseed/veda-optimized-data-delivery-image:latest image). The mean value returned from the icechunk.
Closes #xxxxn/aFull type hint coveragen/aNew functions/methods are listed in api.rstn/aNew functionality has documentationn/aPlease review @ayushnag