Skip to content

Commit

Permalink
add noaa-mrms-qpe colormap (#123)
Browse files Browse the repository at this point in the history
* noaa-mrms-qpe colormap

* color map added to __init__.py

* update noaa-mrms-qpe colormap to opaque

* restore frame.py and branding.py
  • Loading branch information
pholleway committed Oct 10, 2022
1 parent ab9e13e commit 72be508
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pctiler/pctiler/colormaps/__init__.py
Expand Up @@ -14,6 +14,7 @@
from .modis import modis_colormaps
from .mtbs import mtbs_colormaps
from .noaa_c_cap import noaa_c_cap_colormaps
from .noaa_mrms_qpe import noaa_mrms_qpe_colormaps
from .viirs import viirs_colormaps

################################################################################
Expand All @@ -30,6 +31,7 @@
**lidar_colormaps,
**chloris_colormaps,
**noaa_c_cap_colormaps,
**noaa_mrms_qpe_colormaps,
**alos_palsar_mosaic_colormaps,
**viirs_colormaps,
}
Expand Down
23 changes: 23 additions & 0 deletions pctiler/pctiler/colormaps/noaa_mrms_qpe.py
@@ -0,0 +1,23 @@
from typing import Dict

from rio_tiler.types import ColorMapType

noaa_mrms_qpe_colormaps: Dict[str, ColorMapType] = {
"noaa-mrms-qpe": [
((0, 1), (0, 0, 0, 0)),
((1, 10), (24, 99, 183, 255)),
((10, 25), (48, 129, 126, 255)),
((25, 50), (65, 153, 68, 255)),
((50, 75), (93, 172, 18, 255)),
((75, 100), (148, 186, 21, 255)),
((100, 150), (198, 198, 30, 255)),
((150, 200), (241, 203, 36, 255)),
((200, 250), (251, 182, 33, 255)),
((250, 300), (248, 152, 27, 255)),
((300, 400), (244, 121, 22, 255)),
((400, 500), (241, 90, 30, 255)),
((500, 600), (250, 96, 93, 255)),
((600, 800), (255, 121, 170, 255)),
((800, 1000), (254, 146, 251, 255)),
],
}

0 comments on commit 72be508

Please sign in to comment.