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 #24

Merged
merged 2 commits into from
Nov 6, 2023
Merged

Conversation

wx4stg
Copy link
Contributor

@wx4stg wx4stg commented Nov 4, 2023

This adds colormaps designed for correlation coefficient radar products:

  • NWS_CC which I reverse-engineered from AWIPS CAVE. Recommend vmin=0, vmax=1.05
  • 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 ARM-DOE/pyart#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.

@zssherman
Copy link
Collaborator

Thanks @wx4stg again for the PR! Tomorrow I will submit some minor PEP8 and unit test changes, then this should be good to go.

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 - I think we should move ahead and merge here, and solicit wider community feedback here!

@kmuehlbauer
Copy link
Collaborator

Nice work @wx4stg, let's merge then.

@mgrover1
Copy link
Collaborator

mgrover1 commented Nov 6, 2023

Merging!

@mgrover1 mgrover1 merged commit 9f273f1 into openradar:main Nov 6, 2023
6 checks passed
@wx4stg
Copy link
Contributor Author

wx4stg commented Feb 13, 2024

plasmidis

@wx4stg wx4stg deleted the ccmaps branch April 11, 2024 18:49
@wx4stg wx4stg mentioned this pull request Apr 11, 2024
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.

4 participants