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

BUG: Handle netCDF _Unsigned and load in all attributes #575

Merged
merged 2 commits into from
Sep 14, 2022

Conversation

snowman2
Copy link
Member

@snowman2 snowman2 commented Sep 9, 2022

Updated unsigned logic based on:
https://github.com/pydata/xarray/blob/abe1e613a96b000ae603c53d135828df532b952e/xarray/coding/variables.py#L306-L334

This required updating loading attributes to ensure the _Unsigned property is saved/loaded correctly.

@codecov
Copy link

codecov bot commented Sep 9, 2022

Codecov Report

Merging #575 (170bac9) into master (f23d3d4) will increase coverage by 0.05%.
The diff coverage is 97.33%.

@@            Coverage Diff             @@
##           master     #575      +/-   ##
==========================================
+ Coverage   96.25%   96.30%   +0.05%     
==========================================
  Files          13       13              
  Lines        1603     1652      +49     
==========================================
+ Hits         1543     1591      +48     
- Misses         60       61       +1     
Impacted Files Coverage Δ
rioxarray/_io.py 96.00% <96.92%> (+0.14%) ⬆️
rioxarray/raster_writer.py 95.32% <100.00%> (+0.42%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@snowman2 snowman2 changed the title BUG: Handle _Unsigned and load in all attributes BUG: Handle netCDF _Unsigned and load in all attributes Sep 14, 2022
@snowman2 snowman2 marked this pull request as ready for review September 14, 2022 19:43
@snowman2 snowman2 merged commit d6e7dc2 into corteva:master Sep 14, 2022
@snowman2 snowman2 deleted the unsigned branch September 14, 2022 20:16
@snowman2
Copy link
Member Author

Thanks @justingruca 👍

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.

to_raster() save function changes original data
2 participants