Skip to content

Commit

Permalink
feat: add noaa-c-cap colormap (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski authored Jan 13, 2022
1 parent 6d53b65 commit f2cff0d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pctiler/pctiler/colormaps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from .jrc import jrc_colormaps
from .lulc import lulc_colormaps
from .mtbs import mtbs_colormaps
from .noaa_c_cap import noaa_c_cap_colormaps

################################################################################
# Custom ColorMap Query Parameter Support
Expand All @@ -22,6 +23,7 @@
**lulc_colormaps,
**mtbs_colormaps,
**chloris_colormaps,
**noaa_c_cap_colormaps,
}

for k, v in custom_colormaps.items():
Expand Down
35 changes: 35 additions & 0 deletions pctiler/pctiler/colormaps/noaa_c_cap.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
from typing import Dict

from rio_tiler.types import ColorMapType


noaa_c_cap_colormaps: Dict[str, ColorMapType] = {
"c-cap": {
0: (0, 0, 0, 255),
1: (0, 0, 0, 255),
2: (235, 235, 235, 255),
3: (168, 153, 168, 255),
4: (143, 117, 121, 255),
5: (194, 204, 56, 255),
6: (82, 31, 0, 255),
7: (194, 159, 79, 255),
8: (235, 184, 133, 255),
9: (0, 235, 0, 255),
10: (0, 57, 0, 255),
11: (6, 159, 57, 255),
12: (108, 108, 0, 255),
13: (0, 94, 94, 255),
14: (235, 108, 0, 255),
15: (235, 0, 235, 255),
16: (57, 0, 57, 255),
17: (108, 0, 108, 255),
18: (181, 0, 181, 255),
19: (0, 235, 235, 255),
20: (235, 235, 0, 255),
21: (0, 0, 120, 255),
22: (0, 0, 236, 255),
23: (102, 117, 219, 255),
24: (1, 26, 119, 255),
25: (24, 24, 24, 255),
}
}

0 comments on commit f2cff0d

Please sign in to comment.