Skip to content

Conversation

@felixcremer
Copy link
Collaborator

@felixcremer felixcremer commented Jan 24, 2025

According to the CF Conventions https://cfconventions.org/Data/cf-conventions/cf-conventions-1.12/cf-conventions.html#missing-data the missing data check should be done on the raw data before applying offset and scale_factor. Therefore it should also be in the element type of the raw data.

This would fix the missing value problems I have at RQADeforestation.jl

Tests are added and this is good to go.

Felix Cremer added 2 commits January 24, 2025 16:06
According to the CF Conventions https://cfconventions.org/Data/cf-conventions/cf-conventions-1.12/cf-conventions.html#missing-data the missing data check should be done on the raw data before applying offset and scale_factor. Therefore it should also be in the element type of the raw data.
The missing_value would be missed, if we convert it to the element type because of Floating point inaccuracies.
@codecov
Copy link

codecov bot commented Jan 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.42%. Comparing base (d0b3f1f) to head (0e18951).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #30      +/-   ##
==========================================
+ Coverage   73.72%   75.42%   +1.69%     
==========================================
  Files           1        1              
  Lines         236      236              
==========================================
+ Hits          174      178       +4     
+ Misses         62       58       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@meggart meggart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this makes sense. Thanks a lot

@felixcremer felixcremer merged commit 381d506 into master Jan 27, 2025
8 checks passed
@felixcremer felixcremer deleted the fc/cfdiskarray_mv branch January 27, 2025 11:23
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.

3 participants