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

ADD: correlation coefficient colormaps #1485

Closed
wants to merge 1 commit into from
Closed

ADD: correlation coefficient colormaps #1485

wants to merge 1 commit into from

Conversation

wx4stg
Copy link
Contributor

@wx4stg wx4stg commented Nov 4, 2023

This adds colormaps designed for correlation coefficient products:

  • pyart_NWS_CC which I reverse-engineered from AWIPS CAVE. Recommend vmin=0, vmax=1.05
  • pyart_plasmidis, combination of matplotlib viridis and plasma_r that diverges and lightness at 0.95 if vmin=0 and vmax=1

The motivation behind plasmidis is an attempt to be more CVD-friendly than NWS_CC by making the lightness reversal matter (0.95 is subjectively what I look for mixed ice and liquid targets, anything less probably suggests hail and much less suggests non-meteorological targets).

NWS_CC is provided for backwards compatibility/legacy/familiarity/etc.

Test data used: https://noaa-nexrad-level2.s3.amazonaws.com/2021/04/09/KGRK/KGRK20210409_015238_V06

image

image

image

As proven by our fun last year in #1325, y'all have much better cvd/colormap test suites than I, so let me know If I was successful or what can be improved :) The ulterior motivation behind this PR is that I'm doing research involving polarimetric products, and I didn't want to use the RefDiff cmap for ZDR and CC. This is just my first swing at it, improvements/suggestions welcomed and encouraged.

@wx4stg wx4stg requested a review from zssherman as a code owner November 4, 2023 22:57
@zssherman
Copy link
Collaborator

Hi @wx4stg thanks for the PR! We are currently moving colormaps including CVD friendly colormaps over to:
https://github.com/openradar/cmweather

Would you be willing to open the PR there instead?

Cheers

@wx4stg
Copy link
Contributor Author

wx4stg commented Nov 4, 2023

ah! yes I do remember that now. sorry that totally slipped my mind.

@wx4stg wx4stg closed this Nov 4, 2023
@wx4stg
Copy link
Contributor Author

wx4stg commented Nov 4, 2023

openradar/cmweather#24

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.

2 participants