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: Adding colormaps for cmweather #2

Merged
merged 4 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ci/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ dependencies:
- numpydoc
- nbsphinx
- pre-commit
- numpy
- matplotlib
76 changes: 66 additions & 10 deletions cmweather/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,66 @@
#!/usr/bin/env python
# flake8: noqa
"""Top-level module for cmweather ."""
from pkg_resources import DistributionNotFound, get_distribution

try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
_version__ = '0.0.0'
#!/usr/bin/env python
# flake8: noqa
"""
Creating plots of Radar and Grid fields.

There are also Radar related colormaps and colorblind friendly radar
colormaps for plotting.

Available colormaps, reversed versions (_r) are also provided, these
colormaps are available within matplotlib with names 'COLORMAP':

* BlueBrown10
* BlueBrown11
* BrBu10
* BrBu12
* Bu10
* Bu7
* BuDOr12
* BuDOr18
* BuDRd12
* BuDRd18
* BuGr14
* BuGy8
* BuOr10
* BuOr12
* BuOr8
* BuOrR14
* Carbone11
* Carbone17
* Carbone42
* Cat12
* EWilson17
* GrMg16
* Gray5
* Gray9
* NWSRef
* NWSVel
* NWS_SPW
* PD17
* RRate11
* RdYlBu11b
* RefDiff
* SCook18
* StepSeq25
* SymGray12
* Theodore16
* Wild25

Colorblind friendly

* LangRainbow12
* HomeyerRainbow
* balance
* ChaseSpectral
* SpectralExtended

"""
from pkg_resources import DistributionNotFound, get_distribution

try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
_version__ = '0.0.0'

from . import cm, cm_colorblind # noqa
Loading
Loading