diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 69aadedf1..2a9f94f02 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: args: [--autofix] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.2 + rev: v0.9.1 hooks: - id: ruff args: [--fix, --unsafe-fixes] @@ -24,13 +24,13 @@ repos: # commented out until PEP 639 is supported\ # https://github.com/abravalheri/validate-pyproject/issues/70 - # - repo: https://github.com/abravalheri/validate-pyproject - # rev: v0.10.1 - # hooks: - # - id: validate-pyproject + - repo: https://github.com/abravalheri/validate-pyproject + rev: v0.23 + hooks: + - id: validate-pyproject - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.14.1 hooks: - id: mypy files: "^src/" diff --git a/pyproject.toml b/pyproject.toml index c79f8bf8e..bc053cc8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,8 @@ name = "cmap" description = "Scientific colormaps for python, without dependencies" readme = "README.md" requires-python = ">=3.8" -license = { text = "BSD 3-Clause License" } +license = "BSD-3-Clause" +license-files = ["LICENSE/*"] authors = [{ email = "talley.lambert@gmail.com", name = "Talley Lambert" }] classifiers = [ "Development Status :: 4 - Beta", @@ -25,9 +26,6 @@ classifiers = [ dynamic = ["version"] dependencies = ["numpy"] -[project.license-files] -globs = ["LICENSE/*"] - # extras # https://peps.python.org/pep-0621/#dependencies-optional-dependencies [project.optional-dependencies] @@ -52,9 +50,9 @@ test_thirdparty = [ "colour", "matplotlib", "napari>=0.4.19; python_version<'3.13'", - "numba; python_version<'3.13'", + "numba; python_version<'3.13' and platform_machine != 'arm64'", "plotly", - "pydantic-extra-types>=2", + "pydantic-extra-types>=2,!=2.10.1", "pydantic", "pygfx", "pyqtgraph", @@ -73,6 +71,7 @@ dev = [ "pytest", "rich", "ruff", + "pyqt6", ] [project.urls] diff --git a/src/cmap/__init__.py b/src/cmap/__init__.py index 5a159026b..bfe972519 100644 --- a/src/cmap/__init__.py +++ b/src/cmap/__init__.py @@ -62,13 +62,13 @@ def resolve(self, name: str) -> str: from ._catalog import Catalog, CatalogItem __all__ = [ - "Catalog", - "CatalogItem", - "Color", - "Colormap", - "ColorStops", "HSLA", "HSVA", "RGBA", "RGBA8", + "Catalog", + "CatalogItem", + "Color", + "ColorStops", + "Colormap", ] diff --git a/src/cmap/_catalog.py b/src/cmap/_catalog.py index 3e1ea07ca..ea68e1677 100644 --- a/src/cmap/_catalog.py +++ b/src/cmap/_catalog.py @@ -177,7 +177,7 @@ def _build_catalog(records: Iterable[FileDescriptorOrPath]) -> CatalogDict: # here we add any global keys to the colormap that are not already there. for k in ("license", "namespace", "source", "authors", "category"): if k in data: - v.setdefault(k, data[k]) # type: ignore [misc,literal-required] + v.setdefault(k, data[k]) # type: ignore [misc] # add the fully namespaced colormap to the catalog ctlg[namespaced] = v diff --git a/src/cmap/_color.py b/src/cmap/_color.py index 7ab614279..ef24e35f7 100644 --- a/src/cmap/_color.py +++ b/src/cmap/_color.py @@ -141,7 +141,7 @@ def to_float(self) -> RGBA: def to_hex(self) -> str: """Convert to hex color.""" out = f"#{self.r:02X}{self.g:02X}{self.b:02X}" - return f"{out}{round(self.a*255):02X}" if self.a != 1 else out + return f"{out}{round(self.a * 255):02X}" if self.a != 1 else out def to_hsv(self) -> HSVA: """Convert to Hue, Saturation, Value.""" @@ -466,7 +466,7 @@ class Color: The color to represent. Can be any "ColorLike". """ - __slots__ = ("_rgba", "_name", "__weakref__") + __slots__ = ("__weakref__", "_name", "_rgba") _rgba: RGBA _name: str | None diff --git a/src/cmap/_colormap.py b/src/cmap/_colormap.py index 00efa2b24..be132a7dd 100644 --- a/src/cmap/_colormap.py +++ b/src/cmap/_colormap.py @@ -121,6 +121,9 @@ class Colormap: """ __slots__ = ( + "__weakref__", + "_initialized", + "_lut_cache", "bad_color", "category", "color_stops", @@ -130,9 +133,6 @@ class Colormap: "name", "over_color", "under_color", - "_initialized", - "_lut_cache", - "__weakref__", ) color_stops: ColorStops @@ -920,7 +920,7 @@ def _from_colorarray_like(cls, colors: ArrayLike) -> ColorStops: return cls(np.concatenate([stops[:, None], ary], axis=1)) @property - def stops(self) -> tuple[float, ...]: + def stops(self) -> tuple[np.floating, ...]: """Return tuple of color stop positions.""" return tuple(self._stops[:, 0]) @@ -1061,14 +1061,14 @@ def to_css( midpoints = np.linspace(0, 1, len(colors) + 1)[1:-1] _midstops = [] for m, (c1, c2) in zip(midpoints, zip(colors[:-1], colors[1:])): - s1 = f"{c1.hex if as_hex else c1.rgba_string} {m*100:g}%" - s2 = f"{c2.hex if as_hex else c2.rgba_string} {m*100:g}%" + s1 = f"{c1.hex if as_hex else c1.rgba_string} {m * 100:g}%" + s2 = f"{c2.hex if as_hex else c2.rgba_string} {m * 100:g}%" _midstops.extend([s1, s2]) _stops = ", ".join(_midstops) else: _stops = ", ".join( [ - f"{c.hex if as_hex else c.rgba_string} {s*100:g}%" + f"{c.hex if as_hex else c.rgba_string} {s * 100:g}%" for c, s in zip(colors, stops) ] ) diff --git a/src/cmap/_util.py b/src/cmap/_util.py index 7eed144e0..d7069e920 100644 --- a/src/cmap/_util.py +++ b/src/cmap/_util.py @@ -34,7 +34,11 @@ def plot_color_gradients( nrows = len(cmap_list) * (2 if compare else 1) figh = 0.35 + 0.15 + (nrows + (nrows - 1) * 0.1) * 0.22 fig, axs = plt.subplots(nrows=nrows + 1, figsize=(6.4, figh)) - fig.subplots_adjust(top=1 - 0.35 / figh, bottom=0.15 / figh, left=0.2, right=0.99) + bottom = 0.15 / figh + top = 1 - 0.35 / figh + if bottom >= top: # pragma: no cover + bottom, top = top, bottom + fig.subplots_adjust(top=top, bottom=bottom, left=0.2, right=0.99) for i, (ax, name) in enumerate(zip(axs[:: 2 if compare else 1], cmap_list)): cm = _ensure_cmap(name).to_mpl() @@ -137,7 +141,7 @@ def plot_lightness( x = np.linspace(0.0, 1.0, 101) if x is None else np.asarray(x) cmap = _ensure_cmap(cmap) lab = calc_lightness(cmap, x, colorspace) - lslice = np.s_[::-1] if reverse else np.s_[:] + lslice = np.s_[::-1] if reverse else slice(None) y_ = lab[lslice] c_ = x[lslice] diff --git a/src/cmap/data/crameri/glasgow.py b/src/cmap/data/crameri/glasgow.py new file mode 100644 index 000000000..5931585fd --- /dev/null +++ b/src/cmap/data/crameri/glasgow.py @@ -0,0 +1,262 @@ +__license__ = "MIT" +__source__ = "https://zenodo.org/records/8409685" + + +glasgow = [ + [0.21181, 0.073933, 0.22061], + [0.21584, 0.074823, 0.21741], + [0.2198, 0.075756, 0.21424], + [0.22367, 0.076703, 0.21107], + [0.22749, 0.07767, 0.20791], + [0.23125, 0.078655, 0.20477], + [0.23496, 0.079657, 0.20161], + [0.23858, 0.08067, 0.19849], + [0.24219, 0.081714, 0.19539], + [0.24573, 0.082671, 0.1923], + [0.24925, 0.083676, 0.18923], + [0.25274, 0.084681, 0.18619], + [0.25617, 0.085604, 0.18312], + [0.2596, 0.086656, 0.1801], + [0.26298, 0.087669, 0.17711], + [0.26634, 0.088633, 0.17412], + [0.26968, 0.089618, 0.17115], + [0.27298, 0.0906, 0.16819], + [0.27629, 0.091604, 0.16524], + [0.27957, 0.092519, 0.16237], + [0.28284, 0.093477, 0.15943], + [0.28607, 0.094504, 0.15658], + [0.28934, 0.095451, 0.15367], + [0.29257, 0.096347, 0.15081], + [0.29581, 0.097347, 0.14796], + [0.29906, 0.09833, 0.14514], + [0.30229, 0.099261, 0.14228], + [0.30557, 0.10022, 0.1394], + [0.30883, 0.10118, 0.13657], + [0.31209, 0.10216, 0.13376], + [0.31541, 0.10316, 0.13093], + [0.31873, 0.10412, 0.12807], + [0.32208, 0.10509, 0.1252], + [0.32545, 0.10617, 0.1223], + [0.32889, 0.10719, 0.11944], + [0.33235, 0.10818, 0.11656], + [0.33585, 0.10931, 0.11364], + [0.33941, 0.11041, 0.11071], + [0.34301, 0.11153, 0.10771], + [0.34665, 0.11271, 0.10469], + [0.35037, 0.1139, 0.1017], + [0.35412, 0.11515, 0.098667], + [0.35795, 0.11651, 0.095593], + [0.36183, 0.11789, 0.092462], + [0.36575, 0.11935, 0.089337], + [0.36973, 0.12088, 0.086106], + [0.37376, 0.12251, 0.082919], + [0.37783, 0.12428, 0.079656], + [0.38192, 0.12619, 0.07636], + [0.38604, 0.12818, 0.073124], + [0.39017, 0.13034, 0.069771], + [0.3943, 0.13258, 0.066344], + [0.39842, 0.13503, 0.062973], + [0.4025, 0.13764, 0.059485], + [0.40654, 0.14038, 0.055873], + [0.41051, 0.14333, 0.052208], + [0.41438, 0.14644, 0.048631], + [0.41814, 0.14977, 0.044938], + [0.42179, 0.1532, 0.041226], + [0.4253, 0.15687, 0.037499], + [0.42864, 0.16066, 0.033747], + [0.43181, 0.16463, 0.030454], + [0.43479, 0.16873, 0.027345], + [0.43757, 0.17293, 0.024453], + [0.44013, 0.17727, 0.021779], + [0.4425, 0.18166, 0.019323], + [0.44465, 0.18619, 0.017081], + [0.44658, 0.19073, 0.015046], + [0.44831, 0.19533, 0.013206], + [0.44984, 0.19994, 0.011537], + [0.45119, 0.20462, 0.0099048], + [0.45236, 0.20926, 0.0086143], + [0.45334, 0.21392, 0.0074732], + [0.45419, 0.21855, 0.0064682], + [0.45489, 0.22316, 0.0055888], + [0.45546, 0.22775, 0.0048194], + [0.45592, 0.2323, 0.0041464], + [0.45627, 0.23683, 0.0035565], + [0.45655, 0.2413, 0.003037], + [0.45674, 0.24574, 0.0025765], + [0.45688, 0.25015, 0.0021644], + [0.45695, 0.25456, 0.0018062], + [0.45698, 0.25891, 0.0015128], + [0.45696, 0.26322, 0.0012797], + [0.45692, 0.26749, 0.0011036], + [0.45684, 0.27176, 0.00098266], + [0.45674, 0.27603, 0.0009164], + [0.45661, 0.28022, 0.0009059], + [0.45647, 0.28442, 0.0009539], + [0.45631, 0.28862, 0.0010649], + [0.45613, 0.29278, 0.0012453], + [0.45594, 0.29695, 0.0015036], + [0.45573, 0.30108, 0.0018503], + [0.45551, 0.30524, 0.0022982], + [0.45527, 0.30938, 0.0028627], + [0.45502, 0.31349, 0.0035614], + [0.45474, 0.31761, 0.0044146], + [0.45443, 0.32172, 0.0054454], + [0.4541, 0.32583, 0.0066794], + [0.45375, 0.32996, 0.0081439], + [0.45337, 0.33407, 0.0098688], + [0.45296, 0.33816, 0.012123], + [0.45251, 0.34228, 0.014455], + [0.45203, 0.34636, 0.017184], + [0.4515, 0.35047, 0.020328], + [0.45094, 0.35454, 0.023928], + [0.45033, 0.3586, 0.028028], + [0.44969, 0.36266, 0.032682], + [0.449, 0.3667, 0.038112], + [0.44825, 0.37071, 0.043789], + [0.44746, 0.37472, 0.049799], + [0.44664, 0.3787, 0.055892], + [0.44576, 0.38265, 0.062145], + [0.44486, 0.38656, 0.068579], + [0.4439, 0.39046, 0.075044], + [0.44291, 0.39431, 0.081754], + [0.44187, 0.39814, 0.08848], + [0.44079, 0.40191, 0.095363], + [0.43969, 0.40568, 0.1023], + [0.43856, 0.40938, 0.10939], + [0.43741, 0.41306, 0.1165], + [0.43622, 0.41669, 0.12365], + [0.43502, 0.42027, 0.13095], + [0.43378, 0.42383, 0.13827], + [0.43255, 0.42736, 0.14564], + [0.4313, 0.43084, 0.153], + [0.43003, 0.43428, 0.16043], + [0.42875, 0.4377, 0.16791], + [0.42748, 0.44107, 0.17541], + [0.42618, 0.44443, 0.18291], + [0.4249, 0.44774, 0.19045], + [0.4236, 0.45105, 0.19799], + [0.42231, 0.45432, 0.20554], + [0.42102, 0.45756, 0.21309], + [0.41973, 0.46078, 0.22069], + [0.41843, 0.46399, 0.22824], + [0.41715, 0.46718, 0.2358], + [0.41586, 0.47034, 0.24334], + [0.41457, 0.47348, 0.25092], + [0.41329, 0.47663, 0.25848], + [0.41201, 0.47975, 0.26605], + [0.41073, 0.48286, 0.27361], + [0.40945, 0.48596, 0.28114], + [0.40817, 0.48904, 0.2887], + [0.40689, 0.49213, 0.29625], + [0.40563, 0.4952, 0.30378], + [0.40434, 0.49827, 0.31133], + [0.40308, 0.50133, 0.31887], + [0.4018, 0.50438, 0.3264], + [0.40055, 0.50742, 0.33395], + [0.39926, 0.51046, 0.34148], + [0.398, 0.5135, 0.34901], + [0.39673, 0.51653, 0.35654], + [0.39547, 0.51956, 0.36405], + [0.3942, 0.52258, 0.37156], + [0.39294, 0.52561, 0.37908], + [0.39169, 0.52863, 0.38659], + [0.39044, 0.53164, 0.39409], + [0.3892, 0.53464, 0.40159], + [0.38796, 0.53766, 0.40908], + [0.38673, 0.54066, 0.41656], + [0.38552, 0.54366, 0.42403], + [0.38434, 0.54666, 0.43151], + [0.38318, 0.54965, 0.43895], + [0.38204, 0.55265, 0.44641], + [0.38095, 0.55564, 0.45385], + [0.37989, 0.55864, 0.46129], + [0.37889, 0.56166, 0.46873], + [0.37796, 0.56466, 0.47616], + [0.3771, 0.56768, 0.48358], + [0.37634, 0.5707, 0.49102], + [0.37567, 0.57374, 0.49844], + [0.37513, 0.57679, 0.50586], + [0.37473, 0.57986, 0.5133], + [0.3745, 0.58293, 0.52074], + [0.37444, 0.58605, 0.52818], + [0.37458, 0.58916, 0.53562], + [0.37495, 0.59233, 0.54308], + [0.37556, 0.59549, 0.55053], + [0.37646, 0.59869, 0.55798], + [0.37763, 0.60192, 0.56542], + [0.37911, 0.60517, 0.57287], + [0.38093, 0.60845, 0.58029], + [0.38308, 0.61174, 0.58769], + [0.38557, 0.61506, 0.59507], + [0.38844, 0.6184, 0.6024], + [0.39167, 0.62174, 0.6097], + [0.39525, 0.62511, 0.61695], + [0.39918, 0.62848, 0.62413], + [0.40347, 0.63185, 0.63125], + [0.40808, 0.63522, 0.63828], + [0.41302, 0.63858, 0.64524], + [0.41824, 0.64194, 0.65212], + [0.42374, 0.64527, 0.6589], + [0.4295, 0.6486, 0.6656], + [0.43548, 0.6519, 0.6722], + [0.44166, 0.65518, 0.6787], + [0.448, 0.65844, 0.6851], + [0.45452, 0.66167, 0.69141], + [0.46115, 0.66486, 0.69762], + [0.46789, 0.66804, 0.70375], + [0.47473, 0.67118, 0.7098], + [0.48162, 0.6743, 0.71576], + [0.48858, 0.67739, 0.72163], + [0.49556, 0.68045, 0.72744], + [0.50258, 0.68348, 0.73318], + [0.50962, 0.68649, 0.73886], + [0.51666, 0.68948, 0.74447], + [0.5237, 0.69245, 0.75003], + [0.53073, 0.69538, 0.75554], + [0.53775, 0.6983, 0.761], + [0.54475, 0.7012, 0.76641], + [0.55172, 0.70407, 0.77179], + [0.55867, 0.70693, 0.77712], + [0.56559, 0.70977, 0.78241], + [0.57249, 0.71259, 0.78766], + [0.57935, 0.7154, 0.79289], + [0.58617, 0.71818, 0.79807], + [0.59296, 0.72094, 0.80322], + [0.59971, 0.72369, 0.80834], + [0.60643, 0.72642, 0.81341], + [0.6131, 0.72914, 0.81847], + [0.61976, 0.73184, 0.82349], + [0.62636, 0.73453, 0.82848], + [0.63295, 0.7372, 0.83345], + [0.6395, 0.73986, 0.83839], + [0.64603, 0.74251, 0.84332], + [0.65254, 0.74515, 0.84822], + [0.65903, 0.74779, 0.85312], + [0.66553, 0.75042, 0.858], + [0.67202, 0.75304, 0.86289], + [0.67852, 0.75568, 0.86778], + [0.68503, 0.75832, 0.87268], + [0.69157, 0.76097, 0.87759], + [0.69814, 0.76364, 0.88252], + [0.70476, 0.76632, 0.88748], + [0.71144, 0.76902, 0.89249], + [0.71818, 0.77176, 0.89753], + [0.72499, 0.77451, 0.90262], + [0.73189, 0.77731, 0.90777], + [0.73888, 0.78014, 0.91297], + [0.74597, 0.78301, 0.91825], + [0.75317, 0.78593, 0.9236], + [0.7605, 0.7889, 0.92902], + [0.76795, 0.79191, 0.93452], + [0.77554, 0.79498, 0.94011], + [0.78326, 0.7981, 0.94578], + [0.79113, 0.80128, 0.95154], + [0.79915, 0.80452, 0.95738], + [0.8073, 0.80782, 0.9633], + [0.8156, 0.81117, 0.96929], + [0.82403, 0.81457, 0.97536], + [0.8326, 0.81802, 0.9815], + [0.84128, 0.82153, 0.9877], + [0.85008, 0.82507, 0.99395], + [0.85897, 0.82865, 1], +] diff --git a/src/cmap/data/crameri/lipari.py b/src/cmap/data/crameri/lipari.py new file mode 100644 index 000000000..93f847c66 --- /dev/null +++ b/src/cmap/data/crameri/lipari.py @@ -0,0 +1,261 @@ +__license__ = "MIT" +__source__ = "https://zenodo.org/records/8409685" + +lipari = [ + [0.01137, 0.07324, 0.14828], + [0.013965, 0.079062, 0.15537], + [0.015899, 0.084718, 0.16252], + [0.017234, 0.090035, 0.16973], + [0.018046, 0.095138, 0.17697], + [0.018987, 0.1, 0.18427], + [0.01997, 0.10491, 0.19161], + [0.021, 0.10996, 0.19896], + [0.022084, 0.11488, 0.20639], + [0.023227, 0.11992, 0.21378], + [0.02444, 0.12498, 0.22121], + [0.025732, 0.1301, 0.22866], + [0.027114, 0.13518, 0.2361], + [0.028602, 0.14029, 0.24354], + [0.030209, 0.14548, 0.25102], + [0.031951, 0.15062, 0.25848], + [0.033828, 0.15583, 0.26596], + [0.036137, 0.16105, 0.27341], + [0.038425, 0.16628, 0.28084], + [0.040951, 0.17154, 0.28828], + [0.043537, 0.17682, 0.2957], + [0.046467, 0.18211, 0.30308], + [0.049594, 0.18747, 0.31047], + [0.052785, 0.19279, 0.31779], + [0.056373, 0.19814, 0.32507], + [0.060123, 0.20352, 0.33234], + [0.064059, 0.20889, 0.33952], + [0.068323, 0.21429, 0.34664], + [0.072795, 0.21969, 0.35369], + [0.077499, 0.22506, 0.36066], + [0.082595, 0.23046, 0.36755], + [0.087912, 0.23587, 0.37435], + [0.093441, 0.24124, 0.38103], + [0.099307, 0.24659, 0.38756], + [0.10541, 0.25194, 0.39397], + [0.11181, 0.25723, 0.40024], + [0.11843, 0.26248, 0.40634], + [0.12524, 0.26767, 0.41226], + [0.13231, 0.27284, 0.41798], + [0.13952, 0.27792, 0.42351], + [0.14698, 0.28292, 0.42882], + [0.15457, 0.2878, 0.43389], + [0.16232, 0.29261, 0.43873], + [0.17014, 0.2973, 0.44331], + [0.17807, 0.30184, 0.44762], + [0.18603, 0.30629, 0.45168], + [0.19404, 0.31056, 0.45545], + [0.20201, 0.31466, 0.45894], + [0.21, 0.31863, 0.46214], + [0.21794, 0.32242, 0.46506], + [0.22581, 0.32601, 0.4677], + [0.23354, 0.32945, 0.47006], + [0.24121, 0.33269, 0.47215], + [0.24874, 0.33574, 0.47396], + [0.25609, 0.3386, 0.47554], + [0.26333, 0.34129, 0.47686], + [0.27038, 0.34378, 0.47795], + [0.27724, 0.34611, 0.47882], + [0.28392, 0.34828, 0.4795], + [0.29042, 0.35028, 0.47998], + [0.29677, 0.3521, 0.48028], + [0.3029, 0.3538, 0.48042], + [0.3089, 0.35537, 0.48042], + [0.31468, 0.35679, 0.48029], + [0.32035, 0.35809, 0.48003], + [0.32583, 0.35927, 0.47967], + [0.33119, 0.36036, 0.47921], + [0.33642, 0.36136, 0.47866], + [0.34153, 0.36227, 0.47804], + [0.34652, 0.3631, 0.47735], + [0.35141, 0.36386, 0.47661], + [0.35622, 0.36456, 0.47581], + [0.36093, 0.36521, 0.47497], + [0.3656, 0.36581, 0.47408], + [0.37019, 0.36636, 0.47315], + [0.37475, 0.36687, 0.47222], + [0.37926, 0.36734, 0.47124], + [0.38375, 0.36778, 0.47023], + [0.3882, 0.36821, 0.46921], + [0.39264, 0.36861, 0.46815], + [0.39707, 0.36898, 0.4671], + [0.4015, 0.36934, 0.466], + [0.40595, 0.36968, 0.46491], + [0.41039, 0.37001, 0.4638], + [0.41484, 0.37033, 0.46266], + [0.41932, 0.37064, 0.46153], + [0.42381, 0.37095, 0.46037], + [0.42834, 0.37125, 0.45921], + [0.43289, 0.37154, 0.45803], + [0.43747, 0.37183, 0.45684], + [0.44208, 0.37212, 0.45564], + [0.44672, 0.37241, 0.45443], + [0.4514, 0.3727, 0.4532], + [0.45611, 0.37299, 0.45197], + [0.46086, 0.37327, 0.45072], + [0.46564, 0.37356, 0.44947], + [0.47048, 0.37385, 0.4482], + [0.47535, 0.37414, 0.44692], + [0.48024, 0.37443, 0.44563], + [0.48517, 0.37472, 0.44435], + [0.49015, 0.375, 0.44304], + [0.49516, 0.37529, 0.44173], + [0.50021, 0.37559, 0.44039], + [0.5053, 0.37589, 0.43905], + [0.51043, 0.37619, 0.43772], + [0.51559, 0.3765, 0.43636], + [0.52081, 0.3768, 0.435], + [0.52606, 0.3771, 0.43361], + [0.53134, 0.37741, 0.43225], + [0.53668, 0.37772, 0.43085], + [0.54204, 0.37803, 0.42944], + [0.54745, 0.37835, 0.42803], + [0.5529, 0.37867, 0.4266], + [0.55839, 0.37899, 0.42518], + [0.56394, 0.37932, 0.42372], + [0.5695, 0.37965, 0.42227], + [0.57513, 0.37998, 0.42081], + [0.58079, 0.38032, 0.41935], + [0.5865, 0.38067, 0.41786], + [0.59225, 0.38102, 0.41637], + [0.59803, 0.38138, 0.41487], + [0.60388, 0.38173, 0.41337], + [0.60975, 0.38209, 0.41185], + [0.61568, 0.38247, 0.41034], + [0.62164, 0.38286, 0.4088], + [0.62766, 0.38326, 0.40726], + [0.63373, 0.38366, 0.40573], + [0.63983, 0.38407, 0.40417], + [0.64598, 0.3845, 0.40262], + [0.65219, 0.38495, 0.40108], + [0.65843, 0.38541, 0.3995], + [0.66472, 0.3859, 0.39796], + [0.67106, 0.38641, 0.3964], + [0.67745, 0.38695, 0.39485], + [0.68388, 0.38752, 0.3933], + [0.69035, 0.38812, 0.39177], + [0.69688, 0.38877, 0.39023], + [0.70344, 0.38945, 0.38873], + [0.71005, 0.39017, 0.38722], + [0.71669, 0.39097, 0.38575], + [0.72336, 0.39181, 0.3843], + [0.73008, 0.39271, 0.38288], + [0.73681, 0.3937, 0.3815], + [0.74358, 0.39477, 0.38015], + [0.75036, 0.39593, 0.37885], + [0.75715, 0.39717, 0.3776], + [0.76395, 0.39854, 0.37642], + [0.77075, 0.40002, 0.37529], + [0.77754, 0.40162, 0.37425], + [0.78431, 0.40337, 0.37327], + [0.79105, 0.40525, 0.37239], + [0.79775, 0.40729, 0.3716], + [0.8044, 0.4095, 0.37093], + [0.81097, 0.41188, 0.37036], + [0.81747, 0.41444, 0.36992], + [0.82388, 0.4172, 0.36961], + [0.83018, 0.42014, 0.36944], + [0.83635, 0.42329, 0.36941], + [0.84239, 0.42665, 0.36953], + [0.84826, 0.43021, 0.3698], + [0.85397, 0.43398, 0.37025], + [0.85949, 0.43797, 0.37086], + [0.8648, 0.44216, 0.37164], + [0.8699, 0.44654, 0.3726], + [0.87477, 0.45112, 0.37375], + [0.87939, 0.45588, 0.37505], + [0.88376, 0.46082, 0.37655], + [0.88786, 0.46592, 0.3782], + [0.89169, 0.47118, 0.38003], + [0.89525, 0.47657, 0.38202], + [0.89851, 0.48208, 0.38417], + [0.9015, 0.48769, 0.38647], + [0.9042, 0.49337, 0.38893], + [0.90662, 0.49914, 0.39151], + [0.90876, 0.50497, 0.3942], + [0.91063, 0.51082, 0.39702], + [0.91223, 0.5167, 0.39994], + [0.91357, 0.52259, 0.40297], + [0.91467, 0.52848, 0.40608], + [0.91554, 0.53435, 0.40925], + [0.91619, 0.54019, 0.4125], + [0.91664, 0.546, 0.4158], + [0.91689, 0.55176, 0.41915], + [0.91696, 0.55748, 0.42253], + [0.91687, 0.56313, 0.42597], + [0.91664, 0.56872, 0.42943], + [0.91626, 0.57425, 0.43291], + [0.91578, 0.57973, 0.43641], + [0.91519, 0.58514, 0.43993], + [0.91451, 0.59048, 0.44346], + [0.91375, 0.59576, 0.447], + [0.91293, 0.60098, 0.45057], + [0.91206, 0.60614, 0.45414], + [0.91115, 0.61126, 0.45772], + [0.91021, 0.61632, 0.46133], + [0.90925, 0.62133, 0.46495], + [0.90829, 0.62631, 0.4686], + [0.90733, 0.63125, 0.47228], + [0.90637, 0.63616, 0.47599], + [0.90545, 0.64104, 0.47973], + [0.90454, 0.6459, 0.48351], + [0.90367, 0.65075, 0.48735], + [0.90285, 0.65559, 0.49125], + [0.90208, 0.66043, 0.49519], + [0.90137, 0.66527, 0.49921], + [0.90072, 0.67012, 0.5033], + [0.90014, 0.67498, 0.50749], + [0.89964, 0.67985, 0.51176], + [0.89922, 0.68476, 0.51612], + [0.89889, 0.68969, 0.5206], + [0.89865, 0.69465, 0.52519], + [0.89852, 0.69965, 0.52989], + [0.89848, 0.70469, 0.53471], + [0.89855, 0.70978, 0.53966], + [0.89873, 0.71491, 0.54476], + [0.89903, 0.72009, 0.54999], + [0.89945, 0.72533, 0.55536], + [0.89998, 0.73061, 0.56088], + [0.90063, 0.73594, 0.56656], + [0.90141, 0.74134, 0.57238], + [0.90232, 0.7468, 0.57835], + [0.90335, 0.75231, 0.58449], + [0.9045, 0.75787, 0.59077], + [0.90579, 0.76349, 0.59722], + [0.90719, 0.76916, 0.60381], + [0.90871, 0.77489, 0.61054], + [0.91037, 0.78067, 0.61743], + [0.91213, 0.7865, 0.62446], + [0.91402, 0.79237, 0.63162], + [0.91601, 0.79828, 0.63892], + [0.91812, 0.80424, 0.64635], + [0.92032, 0.81023, 0.65391], + [0.92264, 0.81627, 0.66158], + [0.92505, 0.82234, 0.66937], + [0.92755, 0.82844, 0.67726], + [0.93014, 0.83456, 0.68525], + [0.93281, 0.84071, 0.69334], + [0.93556, 0.84688, 0.7015], + [0.93839, 0.85308, 0.70976], + [0.94127, 0.85929, 0.71809], + [0.94423, 0.86551, 0.72648], + [0.94723, 0.87175, 0.73494], + [0.95029, 0.87799, 0.74345], + [0.95339, 0.88424, 0.75201], + [0.95653, 0.89049, 0.76061], + [0.95971, 0.89674, 0.76925], + [0.96291, 0.90299, 0.77792], + [0.96614, 0.90924, 0.78662], + [0.96939, 0.91548, 0.79532], + [0.97265, 0.92173, 0.80406], + [0.97592, 0.92795, 0.81279], + [0.9792, 0.93418, 0.82155], + [0.98248, 0.9404, 0.83031], + [0.98576, 0.94661, 0.83907], + [0.98904, 0.95282, 0.84784], + [0.99231, 0.95902, 0.85661], +] diff --git a/src/cmap/data/crameri/managua.py b/src/cmap/data/crameri/managua.py new file mode 100644 index 000000000..f6b0887ed --- /dev/null +++ b/src/cmap/data/crameri/managua.py @@ -0,0 +1,261 @@ +__license__ = "MIT" +__source__ = "https://zenodo.org/records/8409685" + +managua = [ + [1, 0.81263, 0.40424], + [0.99516, 0.80455, 0.40155], + [0.99024, 0.79649, 0.39888], + [0.98532, 0.78848, 0.39622], + [0.98041, 0.7805, 0.39356], + [0.97551, 0.77257, 0.39093], + [0.97062, 0.76468, 0.3883], + [0.96573, 0.75684, 0.38568], + [0.96087, 0.74904, 0.3831], + [0.95601, 0.74129, 0.38052], + [0.95116, 0.7336, 0.37795], + [0.94631, 0.72595, 0.37539], + [0.94149, 0.71835, 0.37286], + [0.93667, 0.7108, 0.37034], + [0.93186, 0.7033, 0.36784], + [0.92706, 0.69585, 0.36536], + [0.92228, 0.68845, 0.36289], + [0.9175, 0.68109, 0.36042], + [0.91273, 0.67379, 0.358], + [0.90797, 0.66653, 0.35558], + [0.90321, 0.65932, 0.35316], + [0.89846, 0.65216, 0.35078], + [0.89372, 0.64503, 0.34839], + [0.88899, 0.63796, 0.34601], + [0.88426, 0.63093, 0.34367], + [0.87953, 0.62395, 0.34134], + [0.87481, 0.617, 0.33902], + [0.87009, 0.61009, 0.3367], + [0.86538, 0.60323, 0.33442], + [0.86067, 0.59641, 0.33213], + [0.85597, 0.58963, 0.32987], + [0.85125, 0.5829, 0.3276], + [0.84655, 0.57621, 0.32536], + [0.84185, 0.56954, 0.32315], + [0.83714, 0.56294, 0.32094], + [0.83243, 0.55635, 0.31874], + [0.82772, 0.54983, 0.31656], + [0.82301, 0.54333, 0.31438], + [0.81829, 0.53688, 0.31222], + [0.81357, 0.53046, 0.3101], + [0.80886, 0.52408, 0.30796], + [0.80413, 0.51775, 0.30587], + [0.7994, 0.51145, 0.30375], + [0.79466, 0.50519, 0.30167], + [0.78991, 0.49898, 0.29962], + [0.78516, 0.4928, 0.29757], + [0.7804, 0.48668, 0.29553], + [0.77564, 0.48058, 0.29351], + [0.77086, 0.47454, 0.29153], + [0.76608, 0.46853, 0.28954], + [0.76128, 0.46255, 0.28756], + [0.75647, 0.45663, 0.28561], + [0.75166, 0.45075, 0.28369], + [0.74682, 0.44491, 0.28178], + [0.74197, 0.4391, 0.27988], + [0.73711, 0.43333, 0.27801], + [0.73223, 0.42762, 0.27616], + [0.72732, 0.42192, 0.2743], + [0.72239, 0.41628, 0.27247], + [0.71746, 0.41067, 0.27069], + [0.71247, 0.40508, 0.26891], + [0.70747, 0.39952, 0.26712], + [0.70244, 0.39401, 0.26538], + [0.69737, 0.38852, 0.26367], + [0.69227, 0.38306, 0.26194], + [0.68712, 0.37761, 0.26025], + [0.68193, 0.37219, 0.25857], + [0.67671, 0.3668, 0.25692], + [0.67143, 0.36142, 0.25529], + [0.6661, 0.35607, 0.25367], + [0.66071, 0.35073, 0.25208], + [0.65528, 0.34539, 0.25049], + [0.6498, 0.34009, 0.24895], + [0.64425, 0.3348, 0.24742], + [0.63866, 0.32953, 0.2459], + [0.633, 0.32425, 0.24442], + [0.62729, 0.31901, 0.24298], + [0.62152, 0.3138, 0.24157], + [0.6157, 0.3086, 0.24017], + [0.60983, 0.30341, 0.23881], + [0.60391, 0.29826, 0.23752], + [0.59793, 0.29314, 0.23623], + [0.59191, 0.28805, 0.235], + [0.58585, 0.28302, 0.23377], + [0.57974, 0.27799, 0.23263], + [0.57359, 0.27302, 0.23155], + [0.56741, 0.26808, 0.23047], + [0.5612, 0.26321, 0.22948], + [0.55496, 0.25837, 0.22857], + [0.54871, 0.25361, 0.22769], + [0.54243, 0.24891, 0.22689], + [0.53614, 0.24424, 0.22616], + [0.52984, 0.23968, 0.22548], + [0.52354, 0.2352, 0.22487], + [0.51724, 0.23076, 0.22436], + [0.51094, 0.22643, 0.22395], + [0.50467, 0.22217, 0.22363], + [0.49841, 0.21802, 0.22339], + [0.49217, 0.21397, 0.22325], + [0.48595, 0.21, 0.22321], + [0.47979, 0.20618, 0.22328], + [0.47364, 0.20242, 0.22345], + [0.46756, 0.1988, 0.22373], + [0.46152, 0.19532, 0.22413], + [0.45554, 0.19195, 0.22465], + [0.44962, 0.18873, 0.22534], + [0.44377, 0.18566, 0.22616], + [0.43799, 0.18266, 0.22708], + [0.43229, 0.17987, 0.22817], + [0.42665, 0.17723, 0.22938], + [0.42111, 0.17474, 0.23077], + [0.41567, 0.17238, 0.23232], + [0.41033, 0.17023, 0.23401], + [0.40507, 0.16822, 0.2359], + [0.39992, 0.1664, 0.23794], + [0.39489, 0.16475, 0.24014], + [0.38996, 0.16331, 0.24254], + [0.38515, 0.16203, 0.24512], + [0.38046, 0.16093, 0.24792], + [0.37589, 0.16, 0.25087], + [0.37143, 0.15932, 0.25403], + [0.36711, 0.15883, 0.25738], + [0.36292, 0.15853, 0.26092], + [0.35885, 0.15843, 0.26466], + [0.35494, 0.15853, 0.26862], + [0.35114, 0.15882, 0.27276], + [0.34748, 0.15931, 0.27711], + [0.34394, 0.15999, 0.28164], + [0.34056, 0.16094, 0.28636], + [0.33731, 0.16207, 0.29131], + [0.3342, 0.16338, 0.29642], + [0.33121, 0.16486, 0.3017], + [0.32837, 0.16658, 0.30719], + [0.32565, 0.16847, 0.31284], + [0.3231, 0.17056, 0.31867], + [0.32066, 0.17283, 0.32465], + [0.31834, 0.1753, 0.33079], + [0.31616, 0.17797, 0.3371], + [0.3141, 0.18074, 0.34354], + [0.31216, 0.18373, 0.35011], + [0.31038, 0.1869, 0.35682], + [0.3087, 0.19021, 0.36363], + [0.30712, 0.1937, 0.37056], + [0.3057, 0.19732, 0.3776], + [0.30435, 0.20106, 0.38473], + [0.30314, 0.205, 0.39195], + [0.30204, 0.20905, 0.39924], + [0.30106, 0.21323, 0.40661], + [0.30019, 0.21756, 0.41404], + [0.29944, 0.22198, 0.42151], + [0.29878, 0.22656, 0.42904], + [0.29822, 0.23122, 0.4366], + [0.29778, 0.23599, 0.44419], + [0.29745, 0.24085, 0.45179], + [0.29721, 0.24582, 0.45941], + [0.29708, 0.2509, 0.46703], + [0.29704, 0.25603, 0.47465], + [0.2971, 0.26127, 0.48225], + [0.29726, 0.26658, 0.48983], + [0.2975, 0.27194, 0.4974], + [0.29784, 0.27741, 0.50493], + [0.29828, 0.28292, 0.51242], + [0.29881, 0.28847, 0.51987], + [0.29943, 0.29408, 0.52728], + [0.30012, 0.29976, 0.53463], + [0.3009, 0.30548, 0.54191], + [0.30176, 0.31122, 0.54915], + [0.30271, 0.317, 0.5563], + [0.30373, 0.32283, 0.56339], + [0.30483, 0.32866, 0.5704], + [0.30601, 0.33454, 0.57733], + [0.30722, 0.34042, 0.58418], + [0.30853, 0.34631, 0.59095], + [0.30989, 0.35224, 0.59763], + [0.3113, 0.35817, 0.60423], + [0.31277, 0.3641, 0.61073], + [0.31431, 0.37005, 0.61715], + [0.3159, 0.376, 0.62347], + [0.31752, 0.38195, 0.62969], + [0.3192, 0.3879, 0.63583], + [0.32092, 0.39385, 0.64188], + [0.32268, 0.39979, 0.64783], + [0.32446, 0.40575, 0.6537], + [0.3263, 0.41168, 0.65948], + [0.32817, 0.41763, 0.66517], + [0.33008, 0.42355, 0.67079], + [0.33201, 0.4295, 0.67632], + [0.33398, 0.43544, 0.68176], + [0.33596, 0.44137, 0.68715], + [0.33798, 0.44731, 0.69246], + [0.34003, 0.45327, 0.69769], + [0.3421, 0.45923, 0.70288], + [0.34419, 0.4652, 0.70799], + [0.34631, 0.4712, 0.71306], + [0.34847, 0.4772, 0.71808], + [0.35064, 0.48323, 0.72305], + [0.35283, 0.48928, 0.72798], + [0.35506, 0.49537, 0.73288], + [0.3573, 0.50149, 0.73773], + [0.35955, 0.50763, 0.74256], + [0.36185, 0.51381, 0.74736], + [0.36414, 0.52001, 0.75213], + [0.36649, 0.52627, 0.75689], + [0.36884, 0.53256, 0.76162], + [0.37119, 0.53889, 0.76633], + [0.37359, 0.54525, 0.77103], + [0.376, 0.55166, 0.77571], + [0.37842, 0.55809, 0.78037], + [0.38087, 0.56458, 0.78503], + [0.38333, 0.5711, 0.78966], + [0.38579, 0.57766, 0.79429], + [0.38828, 0.58426, 0.7989], + [0.39078, 0.59088, 0.8035], + [0.39329, 0.59755, 0.8081], + [0.39582, 0.60426, 0.81268], + [0.39835, 0.61099, 0.81725], + [0.4009, 0.61774, 0.82182], + [0.40344, 0.62454, 0.82637], + [0.406, 0.63137, 0.83092], + [0.40856, 0.63822, 0.83546], + [0.41114, 0.6451, 0.83999], + [0.41372, 0.65202, 0.84451], + [0.41631, 0.65896, 0.84903], + [0.4189, 0.66593, 0.85354], + [0.42149, 0.67294, 0.85805], + [0.4241, 0.67996, 0.86256], + [0.42671, 0.68702, 0.86705], + [0.42932, 0.69411, 0.87156], + [0.43195, 0.70123, 0.87606], + [0.43457, 0.70839, 0.88056], + [0.4372, 0.71557, 0.88506], + [0.43983, 0.72278, 0.88956], + [0.44248, 0.73004, 0.89407], + [0.44512, 0.73732, 0.89858], + [0.44776, 0.74464, 0.9031], + [0.45042, 0.752, 0.90763], + [0.45308, 0.75939, 0.91216], + [0.45574, 0.76682, 0.9167], + [0.45841, 0.77429, 0.92124], + [0.46109, 0.78181, 0.9258], + [0.46377, 0.78936, 0.93036], + [0.46645, 0.79694, 0.93494], + [0.46914, 0.80458, 0.93952], + [0.47183, 0.81224, 0.94412], + [0.47453, 0.81995, 0.94872], + [0.47721, 0.8277, 0.95334], + [0.47992, 0.83549, 0.95796], + [0.48261, 0.84331, 0.96259], + [0.4853, 0.85117, 0.96722], + [0.48801, 0.85906, 0.97186], + [0.49071, 0.86699, 0.97651], + [0.49339, 0.87495, 0.98116], + [0.49607, 0.88294, 0.98581], + [0.49877, 0.89096, 0.99047], + [0.50144, 0.89901, 0.99512], + [0.50411, 0.90708, 0.99978], +] diff --git a/src/cmap/data/crameri/navia.py b/src/cmap/data/crameri/navia.py new file mode 100644 index 000000000..42717f2d6 --- /dev/null +++ b/src/cmap/data/crameri/navia.py @@ -0,0 +1,261 @@ +__license__ = "MIT" +__source__ = "https://zenodo.org/records/8409685" + +navia = [ + [0.01342, 0.075817, 0.15299], + [0.015121, 0.080634, 0.15996], + [0.016255, 0.085228, 0.16707], + [0.016803, 0.089716, 0.1742], + [0.016961, 0.09399, 0.18141], + [0.017336, 0.098133, 0.18874], + [0.017703, 0.10226, 0.19612], + [0.018058, 0.10651, 0.20355], + [0.018404, 0.11074, 0.21104], + [0.018742, 0.11497, 0.2186], + [0.019071, 0.11933, 0.22623], + [0.019395, 0.12367, 0.23387], + [0.019714, 0.12811, 0.24161], + [0.020031, 0.13255, 0.24936], + [0.020346, 0.13702, 0.25718], + [0.020663, 0.14154, 0.265], + [0.020984, 0.14608, 0.27288], + [0.02131, 0.15064, 0.28077], + [0.021644, 0.15525, 0.28871], + [0.02199, 0.15986, 0.29665], + [0.022349, 0.16455, 0.30459], + [0.022726, 0.16925, 0.31254], + [0.023123, 0.17393, 0.32051], + [0.023543, 0.17868, 0.32845], + [0.023992, 0.18341, 0.33638], + [0.024471, 0.18821, 0.3443], + [0.024987, 0.19298, 0.3522], + [0.025542, 0.19778, 0.36008], + [0.026143, 0.20261, 0.36791], + [0.026794, 0.20746, 0.3757], + [0.027501, 0.21232, 0.38346], + [0.02827, 0.21719, 0.39115], + [0.029108, 0.22206, 0.39876], + [0.03002, 0.22697, 0.40633], + [0.031016, 0.23189, 0.4138], + [0.032099, 0.23681, 0.42119], + [0.033282, 0.24173, 0.4285], + [0.034665, 0.24666, 0.4357], + [0.036177, 0.25162, 0.44279], + [0.037711, 0.25656, 0.44976], + [0.039376, 0.26152, 0.45659], + [0.04119, 0.26649, 0.46329], + [0.042961, 0.27145, 0.46987], + [0.045066, 0.27645, 0.47627], + [0.047153, 0.28141, 0.48251], + [0.049396, 0.28637, 0.48859], + [0.051602, 0.29137, 0.49448], + [0.053996, 0.29633, 0.50017], + [0.05657, 0.30129, 0.50568], + [0.059155, 0.30627, 0.51098], + [0.061738, 0.31121, 0.51607], + [0.064526, 0.31615, 0.52095], + [0.067354, 0.32106, 0.52559], + [0.070218, 0.32594, 0.53001], + [0.073219, 0.33081, 0.53418], + [0.076127, 0.33567, 0.53813], + [0.079162, 0.34048, 0.54181], + [0.08231, 0.34525, 0.54527], + [0.085333, 0.34998, 0.54847], + [0.08849, 0.35466, 0.55142], + [0.091644, 0.35927, 0.55412], + [0.094766, 0.36383, 0.55657], + [0.097864, 0.36834, 0.55878], + [0.10092, 0.37275, 0.56075], + [0.10401, 0.37711, 0.5625], + [0.10708, 0.38137, 0.564], + [0.1101, 0.38554, 0.56527], + [0.11306, 0.38963, 0.56635], + [0.11597, 0.39362, 0.56722], + [0.11885, 0.39751, 0.56788], + [0.12161, 0.40131, 0.56836], + [0.1244, 0.40499, 0.56867], + [0.12712, 0.40859, 0.56882], + [0.12984, 0.41208, 0.56881], + [0.13244, 0.41547, 0.56866], + [0.13502, 0.41877, 0.56838], + [0.13755, 0.42197, 0.56798], + [0.13999, 0.4251, 0.56747], + [0.14245, 0.42813, 0.56687], + [0.14487, 0.43109, 0.56616], + [0.14722, 0.43396, 0.56537], + [0.14958, 0.43678, 0.56452], + [0.15185, 0.43952, 0.5636], + [0.15414, 0.44222, 0.56261], + [0.15643, 0.44485, 0.56157], + [0.15867, 0.44742, 0.56048], + [0.16089, 0.44996, 0.55935], + [0.16311, 0.45246, 0.55817], + [0.16527, 0.45491, 0.55698], + [0.1675, 0.45731, 0.55574], + [0.16969, 0.4597, 0.55449], + [0.17184, 0.46205, 0.55321], + [0.17402, 0.46439, 0.55192], + [0.17616, 0.46668, 0.5506], + [0.17837, 0.46896, 0.54928], + [0.18049, 0.47122, 0.54794], + [0.18264, 0.47344, 0.5466], + [0.18482, 0.47567, 0.54524], + [0.18697, 0.47787, 0.54387], + [0.18913, 0.48006, 0.54251], + [0.19127, 0.48224, 0.54113], + [0.19344, 0.48439, 0.53975], + [0.19559, 0.48655, 0.53839], + [0.19775, 0.4887, 0.53701], + [0.1999, 0.49084, 0.53562], + [0.20208, 0.49296, 0.53424], + [0.20429, 0.49509, 0.53286], + [0.20647, 0.49721, 0.53147], + [0.20864, 0.49933, 0.53008], + [0.21084, 0.50145, 0.5287], + [0.21303, 0.50356, 0.5273], + [0.21525, 0.50568, 0.52591], + [0.21749, 0.50781, 0.52451], + [0.21973, 0.50993, 0.52311], + [0.22197, 0.51206, 0.5217], + [0.22422, 0.5142, 0.52029], + [0.22653, 0.51633, 0.51889], + [0.22883, 0.51849, 0.51747], + [0.23113, 0.52064, 0.51603], + [0.23343, 0.52281, 0.51461], + [0.23581, 0.52499, 0.51316], + [0.23816, 0.52719, 0.51171], + [0.24053, 0.5294, 0.51026], + [0.24294, 0.53161, 0.5088], + [0.24536, 0.53384, 0.50732], + [0.24784, 0.5361, 0.50583], + [0.25028, 0.53838, 0.50435], + [0.2528, 0.54066, 0.50283], + [0.25532, 0.54297, 0.50132], + [0.25785, 0.5453, 0.49978], + [0.26044, 0.54765, 0.49825], + [0.26304, 0.55003, 0.49667], + [0.26567, 0.55243, 0.49511], + [0.26833, 0.55484, 0.49351], + [0.27103, 0.5573, 0.49191], + [0.27375, 0.55977, 0.49029], + [0.2765, 0.56227, 0.48865], + [0.27929, 0.56479, 0.487], + [0.28211, 0.56736, 0.48532], + [0.28494, 0.56994, 0.48363], + [0.28783, 0.57257, 0.48193], + [0.29076, 0.57521, 0.48021], + [0.29371, 0.57789, 0.47846], + [0.29672, 0.58061, 0.47669], + [0.29975, 0.58335, 0.47492], + [0.30281, 0.58614, 0.4731], + [0.30595, 0.58895, 0.47129], + [0.3091, 0.59181, 0.46945], + [0.31227, 0.5947, 0.46758], + [0.31552, 0.59762, 0.46569], + [0.3188, 0.60058, 0.4638], + [0.32212, 0.60359, 0.46189], + [0.32547, 0.60663, 0.45995], + [0.3289, 0.6097, 0.45799], + [0.33237, 0.61282, 0.45602], + [0.33587, 0.61598, 0.45404], + [0.33944, 0.61919, 0.45205], + [0.34305, 0.62242, 0.45003], + [0.34671, 0.6257, 0.448], + [0.35044, 0.62903, 0.44596], + [0.35422, 0.6324, 0.44393], + [0.35807, 0.63581, 0.44188], + [0.36199, 0.63927, 0.43983], + [0.36597, 0.64278, 0.43779], + [0.37002, 0.64633, 0.43574], + [0.37416, 0.64993, 0.43369], + [0.37838, 0.65357, 0.43168], + [0.38268, 0.65728, 0.42967], + [0.38708, 0.66102, 0.42769], + [0.39159, 0.66482, 0.42574], + [0.39619, 0.66867, 0.42382], + [0.40092, 0.67258, 0.42195], + [0.40575, 0.67653, 0.42014], + [0.41071, 0.68054, 0.41838], + [0.4158, 0.68461, 0.41672], + [0.42104, 0.68874, 0.41512], + [0.42643, 0.69292, 0.41362], + [0.432, 0.69715, 0.41224], + [0.43771, 0.70144, 0.41097], + [0.4436, 0.70579, 0.40984], + [0.44968, 0.7102, 0.40886], + [0.45594, 0.71465, 0.40805], + [0.46241, 0.71917, 0.40743], + [0.46909, 0.72372, 0.407], + [0.47597, 0.72833, 0.4068], + [0.48307, 0.73299, 0.40683], + [0.49039, 0.73768, 0.40712], + [0.49793, 0.74242, 0.40768], + [0.50568, 0.74719, 0.40853], + [0.51367, 0.75198, 0.40969], + [0.52185, 0.7568, 0.41116], + [0.53027, 0.76163, 0.41297], + [0.53889, 0.76647, 0.41512], + [0.54769, 0.77132, 0.41763], + [0.55669, 0.77615, 0.4205], + [0.56585, 0.78097, 0.42374], + [0.57518, 0.78578, 0.42738], + [0.58465, 0.79055, 0.43138], + [0.59425, 0.79528, 0.43574], + [0.60395, 0.79997, 0.44047], + [0.61372, 0.8046, 0.44557], + [0.62357, 0.80917, 0.45103], + [0.63345, 0.81366, 0.45682], + [0.64335, 0.81808, 0.46293], + [0.65325, 0.82243, 0.46937], + [0.66313, 0.82669, 0.47608], + [0.67296, 0.83086, 0.48305], + [0.68272, 0.83494, 0.49029], + [0.69241, 0.83892, 0.49775], + [0.70199, 0.84282, 0.5054], + [0.71147, 0.84661, 0.51325], + [0.72081, 0.85031, 0.52125], + [0.73002, 0.85392, 0.5294], + [0.73908, 0.85743, 0.53767], + [0.74798, 0.86087, 0.54604], + [0.75672, 0.86421, 0.55448], + [0.76529, 0.86747, 0.56299], + [0.77369, 0.87066, 0.57155], + [0.78193, 0.87377, 0.58015], + [0.78998, 0.87681, 0.58875], + [0.79787, 0.87979, 0.59738], + [0.80559, 0.8827, 0.60598], + [0.81314, 0.88556, 0.61458], + [0.82052, 0.88837, 0.62315], + [0.82774, 0.89112, 0.63168], + [0.8348, 0.89382, 0.64017], + [0.8417, 0.89648, 0.64861], + [0.84844, 0.8991, 0.65699], + [0.85504, 0.90168, 0.66529], + [0.86148, 0.90422, 0.67353], + [0.86779, 0.90672, 0.68167], + [0.87394, 0.90918, 0.68975], + [0.87996, 0.91162, 0.69772], + [0.88585, 0.91402, 0.70561], + [0.89161, 0.91637, 0.71339], + [0.89723, 0.9187, 0.72106], + [0.90272, 0.921, 0.72863], + [0.90809, 0.92326, 0.73608], + [0.91334, 0.92549, 0.74343], + [0.91846, 0.92768, 0.75065], + [0.92347, 0.92984, 0.75774], + [0.92835, 0.93196, 0.76472], + [0.93313, 0.93405, 0.77158], + [0.9378, 0.93611, 0.77831], + [0.94237, 0.93813, 0.78492], + [0.94682, 0.94011, 0.79141], + [0.95118, 0.94206, 0.79777], + [0.95544, 0.94398, 0.80403], + [0.95961, 0.94586, 0.81016], + [0.96369, 0.94772, 0.8162], + [0.96769, 0.94954, 0.82213], + [0.97161, 0.95134, 0.82795], + [0.97546, 0.95311, 0.8337], + [0.97926, 0.95485, 0.83936], + [0.983, 0.95657, 0.84495], + [0.98669, 0.95828, 0.85048], +] diff --git a/src/cmap/data/crameri/naviaW.py b/src/cmap/data/crameri/naviaW.py new file mode 100644 index 000000000..292a5783c --- /dev/null +++ b/src/cmap/data/crameri/naviaW.py @@ -0,0 +1,261 @@ +__license__ = "MIT" +__source__ = "https://zenodo.org/records/8409685" + +naviaW = [ + [0.014333, 0.077207, 0.15431], + [0.016066, 0.082375, 0.16174], + [0.017163, 0.087266, 0.16921], + [0.017605, 0.091958, 0.17673], + [0.018031, 0.096343, 0.18438], + [0.018549, 0.10082, 0.19208], + [0.01906, 0.1053, 0.19983], + [0.019566, 0.10989, 0.20769], + [0.020068, 0.11439, 0.21558], + [0.020568, 0.11905, 0.22352], + [0.021065, 0.12367, 0.23152], + [0.021563, 0.1284, 0.23954], + [0.022064, 0.13315, 0.24762], + [0.02257, 0.13794, 0.25571], + [0.023084, 0.14274, 0.26386], + [0.023609, 0.1476, 0.27198], + [0.024149, 0.15245, 0.28015], + [0.024707, 0.15737, 0.28832], + [0.025289, 0.16235, 0.2965], + [0.025898, 0.16732, 0.30466], + [0.026541, 0.1723, 0.31281], + [0.027221, 0.17736, 0.32095], + [0.027946, 0.18238, 0.32905], + [0.028722, 0.1875, 0.33711], + [0.029555, 0.19258, 0.34513], + [0.030452, 0.1977, 0.3531], + [0.03142, 0.20283, 0.36101], + [0.032472, 0.208, 0.36887], + [0.033584, 0.21316, 0.37665], + [0.034998, 0.21837, 0.38434], + [0.036362, 0.22357, 0.39196], + [0.037818, 0.2288, 0.39947], + [0.039389, 0.23401, 0.4069], + [0.041091, 0.23925, 0.41421], + [0.042777, 0.24448, 0.4214], + [0.044747, 0.24974, 0.42847], + [0.046692, 0.25503, 0.43542], + [0.04881, 0.26028, 0.44223], + [0.050899, 0.26554, 0.44889], + [0.053131, 0.27082, 0.45539], + [0.055521, 0.27609, 0.46174], + [0.057908, 0.28134, 0.46793], + [0.060514, 0.28659, 0.47395], + [0.063159, 0.29186, 0.4798], + [0.065796, 0.29711, 0.48545], + [0.068614, 0.30233, 0.49093], + [0.071439, 0.30755, 0.4962], + [0.074303, 0.31275, 0.50129], + [0.077195, 0.31794, 0.50616], + [0.080231, 0.32311, 0.51084], + [0.083283, 0.32823, 0.51531], + [0.086365, 0.33334, 0.51956], + [0.089515, 0.33839, 0.5236], + [0.092626, 0.34342, 0.52742], + [0.095807, 0.3484, 0.53102], + [0.098986, 0.35333, 0.5344], + [0.10217, 0.35821, 0.53757], + [0.10533, 0.36302, 0.54051], + [0.1085, 0.36777, 0.54324], + [0.11171, 0.37245, 0.54575], + [0.11479, 0.37708, 0.54805], + [0.11796, 0.38161, 0.55013], + [0.12101, 0.38605, 0.55201], + [0.12407, 0.39042, 0.55369], + [0.12709, 0.3947, 0.55517], + [0.13014, 0.39889, 0.55647], + [0.13305, 0.40299, 0.55759], + [0.13591, 0.40699, 0.55852], + [0.1388, 0.41091, 0.5593], + [0.14163, 0.41473, 0.55992], + [0.1444, 0.41845, 0.56039], + [0.14712, 0.42209, 0.56071], + [0.14984, 0.42565, 0.5609], + [0.15245, 0.42911, 0.56096], + [0.15508, 0.43251, 0.5609], + [0.15766, 0.43581, 0.56074], + [0.16019, 0.43903, 0.56047], + [0.16275, 0.44221, 0.56011], + [0.1652, 0.4453, 0.55965], + [0.1677, 0.44833, 0.55911], + [0.17015, 0.4513, 0.55849], + [0.17256, 0.45422, 0.55782], + [0.17498, 0.45708, 0.55708], + [0.17738, 0.45989, 0.55626], + [0.17973, 0.46265, 0.5554], + [0.18207, 0.46537, 0.55449], + [0.18444, 0.46806, 0.55353], + [0.18677, 0.47071, 0.55254], + [0.18911, 0.47331, 0.55151], + [0.19142, 0.47589, 0.55044], + [0.19375, 0.47843, 0.54935], + [0.19606, 0.48094, 0.54823], + [0.19835, 0.48344, 0.54708], + [0.20064, 0.4859, 0.54591], + [0.20296, 0.48836, 0.54472], + [0.20527, 0.49079, 0.54351], + [0.20758, 0.49318, 0.54229], + [0.20988, 0.49558, 0.54104], + [0.21221, 0.49797, 0.53979], + [0.21452, 0.50032, 0.53854], + [0.21686, 0.50268, 0.53726], + [0.21919, 0.50503, 0.53597], + [0.22153, 0.50738, 0.53468], + [0.22388, 0.50972, 0.53337], + [0.22627, 0.51206, 0.53206], + [0.22865, 0.51441, 0.53074], + [0.23103, 0.51675, 0.52941], + [0.23342, 0.51909, 0.52807], + [0.23588, 0.52144, 0.52673], + [0.23831, 0.5238, 0.52537], + [0.24077, 0.52616, 0.524], + [0.24326, 0.52854, 0.52262], + [0.24577, 0.53092, 0.52124], + [0.24833, 0.53331, 0.51984], + [0.25087, 0.53572, 0.51845], + [0.25345, 0.53816, 0.51704], + [0.25604, 0.5406, 0.5156], + [0.25869, 0.54306, 0.51418], + [0.26135, 0.54554, 0.51273], + [0.26405, 0.54805, 0.51127], + [0.26676, 0.55057, 0.5098], + [0.26953, 0.55311, 0.50833], + [0.27229, 0.55568, 0.50682], + [0.27513, 0.55828, 0.50531], + [0.27799, 0.56091, 0.50379], + [0.28086, 0.56358, 0.50226], + [0.2838, 0.56626, 0.50071], + [0.28676, 0.56897, 0.49914], + [0.28978, 0.57172, 0.49757], + [0.29282, 0.57449, 0.49597], + [0.29592, 0.57731, 0.49437], + [0.29906, 0.58017, 0.49274], + [0.30223, 0.58305, 0.49112], + [0.30548, 0.58598, 0.48945], + [0.30875, 0.58893, 0.4878], + [0.31205, 0.59195, 0.48612], + [0.31545, 0.59499, 0.48443], + [0.31887, 0.59807, 0.48273], + [0.32236, 0.6012, 0.48102], + [0.32588, 0.60438, 0.4793], + [0.32951, 0.6076, 0.47757], + [0.33316, 0.61087, 0.47584], + [0.33688, 0.61417, 0.4741], + [0.34067, 0.61754, 0.47236], + [0.34451, 0.62095, 0.47062], + [0.34845, 0.62441, 0.46888], + [0.35245, 0.62792, 0.46715], + [0.35654, 0.63149, 0.46541], + [0.36068, 0.6351, 0.46371], + [0.36493, 0.63878, 0.46201], + [0.36927, 0.64251, 0.46033], + [0.3737, 0.64629, 0.45869], + [0.37823, 0.65014, 0.45707], + [0.38286, 0.65404, 0.45549], + [0.38759, 0.65801, 0.45395], + [0.39244, 0.66204, 0.45247], + [0.39741, 0.66612, 0.45103], + [0.4025, 0.67028, 0.44967], + [0.40773, 0.67449, 0.44838], + [0.4131, 0.67877, 0.44717], + [0.41859, 0.68313, 0.44605], + [0.42425, 0.68754, 0.44505], + [0.43006, 0.69203, 0.44416], + [0.43603, 0.69658, 0.44339], + [0.44216, 0.7012, 0.44276], + [0.44846, 0.70589, 0.44229], + [0.45495, 0.71065, 0.44198], + [0.46162, 0.71548, 0.44184], + [0.46847, 0.72036, 0.44191], + [0.47553, 0.72532, 0.44218], + [0.48276, 0.73034, 0.44267], + [0.49021, 0.73542, 0.4434], + [0.49786, 0.74056, 0.44438], + [0.50569, 0.74575, 0.44562], + [0.51375, 0.75101, 0.44716], + [0.52199, 0.7563, 0.449], + [0.53045, 0.76164, 0.45113], + [0.53909, 0.76702, 0.45359], + [0.54792, 0.77244, 0.45638], + [0.55694, 0.77788, 0.45952], + [0.56612, 0.78334, 0.463], + [0.57548, 0.78883, 0.46686], + [0.58498, 0.79431, 0.47107], + [0.59462, 0.7998, 0.47565], + [0.6044, 0.80527, 0.48059], + [0.61427, 0.81073, 0.4859], + [0.62426, 0.81618, 0.4916], + [0.63431, 0.82158, 0.49763], + [0.6444, 0.82694, 0.50402], + [0.65454, 0.83224, 0.51074], + [0.66468, 0.83749, 0.5178], + [0.67483, 0.84267, 0.52517], + [0.68494, 0.84777, 0.53284], + [0.69499, 0.85279, 0.54078], + [0.70498, 0.85772, 0.54898], + [0.71487, 0.86255, 0.55742], + [0.72464, 0.86727, 0.56606], + [0.73428, 0.8719, 0.5749], + [0.74377, 0.8764, 0.58391], + [0.75309, 0.88079, 0.59307], + [0.76223, 0.88506, 0.60234], + [0.77117, 0.88922, 0.61171], + [0.7799, 0.89324, 0.62115], + [0.78842, 0.89715, 0.63064], + [0.79671, 0.90094, 0.64016], + [0.80478, 0.9046, 0.64969], + [0.8126, 0.90815, 0.65921], + [0.82018, 0.91158, 0.6687], + [0.82753, 0.91489, 0.67815], + [0.83464, 0.91809, 0.68754], + [0.8415, 0.92118, 0.69686], + [0.84813, 0.92417, 0.70609], + [0.85453, 0.92706, 0.71523], + [0.86069, 0.92985, 0.72425], + [0.86663, 0.93254, 0.73317], + [0.87236, 0.93514, 0.74196], + [0.87787, 0.93766, 0.75063], + [0.88317, 0.9401, 0.75916], + [0.88829, 0.94245, 0.76755], + [0.8932, 0.94473, 0.77581], + [0.89794, 0.94694, 0.78394], + [0.9025, 0.94908, 0.79191], + [0.90689, 0.95116, 0.79974], + [0.91113, 0.95318, 0.80743], + [0.91521, 0.95514, 0.81498], + [0.91915, 0.95704, 0.82239], + [0.92296, 0.9589, 0.82967], + [0.92663, 0.9607, 0.8368], + [0.93018, 0.96245, 0.8438], + [0.93361, 0.96417, 0.85068], + [0.93695, 0.96584, 0.85742], + [0.94017, 0.96748, 0.86405], + [0.94329, 0.96907, 0.87054], + [0.94632, 0.97062, 0.87692], + [0.94926, 0.97215, 0.88318], + [0.95212, 0.97364, 0.88932], + [0.9549, 0.97509, 0.89535], + [0.9576, 0.97652, 0.90127], + [0.96023, 0.97792, 0.90707], + [0.96279, 0.97929, 0.91277], + [0.96528, 0.98063, 0.91836], + [0.96771, 0.98194, 0.92385], + [0.97008, 0.98323, 0.92924], + [0.97239, 0.98449, 0.93452], + [0.97464, 0.98573, 0.93972], + [0.97684, 0.98694, 0.94481], + [0.97899, 0.98812, 0.94981], + [0.9811, 0.98929, 0.95472], + [0.98315, 0.99044, 0.95954], + [0.98517, 0.99156, 0.96427], + [0.98714, 0.99267, 0.96893], + [0.98907, 0.99375, 0.97352], + [0.99097, 0.99482, 0.97803], + [0.99283, 0.99587, 0.9825], + [0.99467, 0.99691, 0.9869], + [0.99648, 0.99795, 0.99125], +] diff --git a/src/cmap/data/crameri/record.json b/src/cmap/data/crameri/record.json index a8604365a..3068bcc42 100644 --- a/src/cmap/data/crameri/record.json +++ b/src/cmap/data/crameri/record.json @@ -1,6 +1,6 @@ { "authors": [ - "" + "Fabio Crameri" ], "colormaps": { "acton": { @@ -75,6 +75,10 @@ "category": "miscellaneous", "data": "cmap.data.crameri.fes:fes" }, + "glasgow": { + "category": "sequential", + "data": "cmap.data.crameri.glasgow:glasgow" + }, "grayC": { "category": "sequential", "data": "cmap.data.crameri.grayC:grayC" @@ -95,10 +99,26 @@ "category": "sequential", "data": "cmap.data.crameri.lapaz:lapaz" }, + "lipari": { + "category": "sequential", + "data": "cmap.data.crameri.lipari:lipari" + }, "lisbon": { "category": "diverging", "data": "cmap.data.crameri.lisbon:lisbon" }, + "managua": { + "category": "diverging", + "data": "cmap.data.crameri.managua:managua" + }, + "navia": { + "category": "sequential", + "data": "cmap.data.crameri.navia:navia" + }, + "naviaW": { + "category": "sequential", + "data": "cmap.data.crameri.naviaW:naviaW" + }, "nuuk": { "category": "sequential", "data": "cmap.data.crameri.nuuk:nuuk"