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

Feature clip round 12bit jpeg #3

Merged
merged 31 commits into from
Feb 22, 2024
Merged

Feature clip round 12bit jpeg #3

merged 31 commits into from
Feb 22, 2024

Conversation

dugalh
Copy link
Collaborator

@dugalh dugalh commented Feb 22, 2024

Features:

  • Round and clip to dtype range when it is integer.
  • Write internal mask when nodata is None.
  • Allow 12bit JPEG input / output files.
  • Cache RasterArray mask.
  • Issue warnings rather than log them.

Fixes:

  • Allow --nodata before --dtype on CLI.

Docs:

  • Expand CLI 'Output file format' section.
  • Add 'Contributing' section.

- change to_rio_dataset() to convert dtype internally & write internal mask when nodata==None
- remove command docstring bottom separator & stripping
Copy link

codecov bot commented Feb 22, 2024

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (4bbbe1d) 95.80% compared to head (63d0954) 96.12%.

Files Patch % Lines
homonim/raster_array.py 93.02% 3 Missing ⚠️
homonim/cli.py 93.75% 2 Missing ⚠️
homonim/raster_pair.py 90.90% 1 Missing ⚠️
homonim/utils.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
+ Coverage   95.80%   96.12%   +0.32%     
==========================================
  Files          13       13              
  Lines        1429     1471      +42     
==========================================
+ Hits         1369     1414      +45     
+ Misses         60       57       -3     

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

@dugalh dugalh merged commit c5a93ff into main Feb 22, 2024
17 of 18 checks passed
@dugalh dugalh deleted the feature-clip_round_12bit_jpeg branch February 28, 2025 08:50
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.

1 participant