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

Band statistics #60

Merged
merged 10 commits into from
Dec 27, 2023
Merged

Band statistics #60

merged 10 commits into from
Dec 27, 2023

Conversation

MAfarrag
Copy link
Member

@MAfarrag MAfarrag commented Dec 27, 2023

retrieve the statistics of bands of the dataset.

extract the statistics of bands in the dataset object

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

  • The test_dataset::TestStats::test_all_bands test extracts the stats [min, max, mean, std] for 9 bands and check that the returned object is a DataFrame, check that the columns [min, max, mean, std] exists in the returned DataFrame, and check the extracted statistical values for each band.

  • The test_dataset::TestStats::test_specific_band extracts the stats [min, max, mean, std] for the first bands (index=0), and do all the above checks.

  • test_dataset::TestStats::test_all_bands

  • test_dataset::TestStats::test_specific_band

Checklist:

  • updated version number in setup.py/pyproject.toml.
  • updated environment.yml and the lock file.
  • added changes to History.rst.
  • updated the latest version in README file.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • documentation are updated.

Copy link

codecov bot commented Dec 27, 2023

Codecov Report

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

Comparison is base (6e765b5) 83.23% compared to head (c612091) 83.29%.

Files Patch % Lines
pyramids/dataset.py 90.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #60      +/-   ##
==========================================
+ Coverage   83.23%   83.29%   +0.06%     
==========================================
  Files           7        7              
  Lines        2099     2119      +20     
==========================================
+ Hits         1747     1765      +18     
- Misses        352      354       +2     

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

@MAfarrag MAfarrag changed the title Draft Band statistics Dec 27, 2023
@MAfarrag MAfarrag merged commit 4725d7b into main Dec 27, 2023
10 checks passed
@MAfarrag MAfarrag deleted the datacube/docs branch December 27, 2023 19:43
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