ghiggi / gpm_api

Global Precipitation Measurement Mission (GPM) python package to download and analyze data with xarray
https://gpm-api.readthedocs.io
MIT License
46 stars 4 forks source link

Add pycolorbar for colormaps and colorbar configurations #44

Closed ghiggi closed 4 months ago

ghiggi commented 4 months ago

Prework

What kind of change does this PR introduce? (check at least one)

Does this PR introduce a breaking change? (check one)

If yes, please describe the impact and communicate accordingly:

The PR fulfills these requirements:

This PR refactor the code related to the selection of ad-hoc colormaps and colorbars. It defines the configurations in YAML files, which are registered at gpm_api initialization by the pycolorbar software.

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 95.80153% with 22 lines in your changes are missing coverage. Please review.

Project coverage is 84.85%. Comparing base (e3eaea4) to head (e8d8e99). Report is 2 commits behind head on main.

Files Patch % Lines
gpm/visualization/plot.py 89.00% 11 Missing :warning:
gpm/tests/test_dataset/test_granule_files.py 78.57% 6 Missing :warning:
gpm/dataset/crs.py 88.88% 2 Missing :warning:
gpm/visualization/profile.py 33.33% 2 Missing :warning:
gpm/dataset/decoding/decode_imerg.py 98.52% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #44 +/- ## ========================================== + Coverage 81.75% 84.85% +3.10% ========================================== Files 103 107 +4 Lines 9783 10033 +250 ========================================== + Hits 7998 8514 +516 + Misses 1785 1519 -266 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.