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

FIX: always read nodata and undetect attributes from ODIM file #125

Merged

Conversation

egouden
Copy link
Contributor

@egouden egouden commented Sep 14, 2023

The current behavior is to not read ODIM undetect and nodata attributes if the values are not transformed (i.e. the attribute gain is 1 and the attribute offset is 0). This can lead to a loss of information. I think these attributes should always be read.

@kmuehlbauer
Copy link
Collaborator

@egouden Sorry for the delay here. Could you please fix the linter error. Otherwise this looks OK to me.

@egouden egouden force-pushed the odim_always_read_undetect_nodata branch from 479b316 to ab2addd Compare September 26, 2023 14:25
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Merging #125 (ab2addd) into main (42d11c7) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #125   +/-   ##
=======================================
  Coverage   88.21%   88.21%           
=======================================
  Files          19       19           
  Lines        3334     3334           
=======================================
  Hits         2941     2941           
  Misses        393      393           
Flag Coverage Δ
unittests 88.21% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
xradar/io/backends/odim.py 84.98% <100.00%> (ø)

Copy link
Collaborator

@mgrover1 mgrover1 left a comment

Choose a reason for hiding this comment

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

This looks great!!

@kmuehlbauer kmuehlbauer merged commit e10a697 into openradar:main Sep 26, 2023
11 checks passed
@kmuehlbauer
Copy link
Collaborator

Thanks @egouden!

@egouden egouden deleted the odim_always_read_undetect_nodata branch February 28, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants