-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix the issue of input data nodata changing by the odc loading #163
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #163 +/- ##
===========================================
- Coverage 80.02% 80.02% -0.01%
===========================================
Files 49 49
Lines 4356 4361 +5
===========================================
+ Hits 3486 3490 +4
- Misses 870 871 +1 ☔ View full report in Codecov by Sentry. |
It looks like it should work, but I'm confused why we have to handle so many weird corner cases here (float, nodata=NaN; float, nodata=None; int, nodata=255; int, nodata=255 OR MORE, etc). Surely we have more control over the dataflow here? |
The problem is with Currently there is no ideal way to gain the information of product definition for datasets not indexed, dataset metadata and product definition seems totally irrelevant unless that we are always assumed to know where to find that piece of information. All the corner cases are caused by how odc deals with missing information by default, as stated in the issue raised on The essence of a solution would be linking product definition to dataset metadata such that the dataflow can know for sure what to be loaded without relying on |
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.
This is fixing nodata at level3 for the cultivated band which is a specific known case. Level4 loads other bands and If nan is present in those bands, this won't fix that. Example are woody_cover, pv_pc_50 and water_frequency.
The change is not meant to fix any particular band or dataset. It only
informs what’s the real nodata value of the data. The individual plugin
should deal with the information accordingly, level 3 plugin only serves as
an example of how.
…On Fri, 25 Oct 2024 at 1:16 pm, Toktam Ebadi ***@***.***> wrote:
***@***.**** commented on this pull request.
This is fixing nodata at level3 for the cultivated band which is a
specific known case. Level4 loads other bands and If nan is present in
those bands, this won't fix that. Example are woody_cover, pv_pc_50 and
water_frequency.
—
Reply to this email directly, view it on GitHub
<#163 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLBWNQG3FZPI6UYLIMQBDTZ5GWKBAVCNFSM6AAAAABQSF6SFGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGOJUGA2TIOJUGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
As the title, ref opendatacube/datacube-core#1646
datacube
nodata
from dataset attributesNote that it's not a fundamental solution, as the issue raised in
datacube
, ideally the loading process should inform any change, asNone
can be understood and dealt with so many ways. Currentlydatacube
rely on the assumption that people agree with one, which might not always be true.