-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
cf-coding #7654
Closed
Closed
cf-coding #7654
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
d19d57a
implement coders, adapt tests
kmuehlbauer 2e750e4
preserve boolean-dtype within encoding, adapt test
kmuehlbauer 0cd301b
determine cf packed data dtype, adapt tests
kmuehlbauer 7cfc6ac
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] bf4371d
fix typing, fix if-clauses, add link to issue
kmuehlbauer fe006df
add comment ass per review
kmuehlbauer 66628fc
choose float64 if add_offset is not up to cf expectations
kmuehlbauer b6310e4
use scale_factor/add_offset in tests as specified by cf conventions
kmuehlbauer 06ec16a
add test which checks add_offset being not conforming to cf standards
kmuehlbauer 19ef234
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e877aa7
convert to float32 to keep #1840 in sync
kmuehlbauer 8cc7319
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6a73653
add more comments, add more typing
kmuehlbauer d6887cd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c8c3f14
add additional test, make _choose_float_dtype more explicit
kmuehlbauer 2f5709a
Apply suggestions from code review
kmuehlbauer f215d01
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c5cd53d
Apply suggestions from code review
kmuehlbauer 986ffc6
Test against None, as 0 (False) is a valid input for add_offset. Chec…
kmuehlbauer 51f7515
apply astype in the right order to prevent loss of precision, more fi…
kmuehlbauer 8c074f0
add mask/scale roundtrip test for variable cf encoding/decoding
kmuehlbauer 031cac5
separate CFMaskCoder test for multiple missing_values/__FillValues co…
kmuehlbauer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@mankoff do you have time to take a look here please?
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.
Hi @dcherian . I'm not sure what to look for. I will link to my open-but-stale PR that tried to start addressing this/similar issues: #6812
Perhaps also relevant are my last few comments on #2304 (see #2304 (comment) ). The problem for me is that (1) the CF standards are ambiguously defined and (2) xarray needs to address the many use-cases where the CF standards are not followed (usually this means different data types).
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.
Thanks! Does this PR fix your original issue?
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.
Thanks @mankoff, I'll have a look at your extensive notes over there and try to come up with aomething.