Datasets:

Modalities:
Image
Text
Formats:
text
Size:
< 1K
Libraries:
Datasets
License:
ZijunCui commited on
Commit
33d1d58
·
verified ·
1 Parent(s): 5850584

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. MANIFEST.runtime.sha256 +0 -0
  2. README.md +20 -0
  3. envs/kitoverlay/lazy_loader/__init__.py +342 -0
  4. envs/kitoverlay/lazy_loader/__pycache__/__init__.cpython-311.pyc +0 -0
  5. envs/kitoverlay/scikit_image-0.26.0.dist-info/INSTALLER +1 -0
  6. envs/kitoverlay/scikit_image-0.26.0.dist-info/LICENSE.txt +152 -0
  7. envs/kitoverlay/scikit_image-0.26.0.dist-info/METADATA +286 -0
  8. envs/kitoverlay/scikit_image-0.26.0.dist-info/RECORD +501 -0
  9. envs/kitoverlay/scikit_image-0.26.0.dist-info/REQUESTED +0 -0
  10. envs/kitoverlay/scikit_image-0.26.0.dist-info/WHEEL +6 -0
  11. envs/kitoverlay/skimage/__init__.py +148 -0
  12. envs/kitoverlay/skimage/__init__.pyi +55 -0
  13. envs/kitoverlay/skimage/_shared/__init__.py +0 -0
  14. envs/kitoverlay/skimage/_shared/_geometry.py +54 -0
  15. envs/kitoverlay/skimage/_shared/_tempfile.py +28 -0
  16. envs/kitoverlay/skimage/_shared/coord.py +124 -0
  17. envs/kitoverlay/skimage/_shared/fast_exp.cpython-311-x86_64-linux-gnu.so +0 -0
  18. envs/kitoverlay/skimage/_shared/interpolation.cpython-311-x86_64-linux-gnu.so +0 -0
  19. envs/kitoverlay/skimage/_shared/tester.py +131 -0
  20. envs/kitoverlay/skimage/_shared/version_requirements.py +138 -0
  21. envs/kitoverlay/skimage/conftest.py +17 -0
  22. envs/kitoverlay/skimage/future/__init__.py +13 -0
  23. envs/kitoverlay/skimage/future/__init__.pyi +14 -0
  24. envs/kitoverlay/skimage/future/__pycache__/__init__.cpython-311.pyc +0 -0
  25. envs/kitoverlay/skimage/future/__pycache__/manual_segmentation.cpython-311.pyc +0 -0
  26. envs/kitoverlay/skimage/future/__pycache__/trainable_segmentation.cpython-311.pyc +0 -0
  27. envs/kitoverlay/skimage/future/manual_segmentation.py +235 -0
  28. envs/kitoverlay/skimage/future/trainable_segmentation.py +164 -0
  29. envs/kitoverlay/skimage/py.typed +0 -0
  30. envs/kitoverlay/tifffile/__init__.py +9 -0
  31. envs/kitoverlay/tifffile/__main__.py +12 -0
  32. envs/kitoverlay/tifffile/__pycache__/__init__.cpython-311.pyc +0 -0
  33. envs/kitoverlay/tifffile/__pycache__/__main__.cpython-311.pyc +0 -0
  34. envs/kitoverlay/tifffile/__pycache__/_imagecodecs.cpython-311.pyc +0 -0
  35. envs/kitoverlay/tifffile/__pycache__/geodb.cpython-311.pyc +0 -0
  36. envs/kitoverlay/tifffile/__pycache__/lsm2bin.cpython-311.pyc +0 -0
  37. envs/kitoverlay/tifffile/__pycache__/numcodecs.cpython-311.pyc +0 -0
  38. envs/kitoverlay/tifffile/__pycache__/tiff2fsspec.cpython-311.pyc +0 -0
  39. envs/kitoverlay/tifffile/__pycache__/tiffcomment.cpython-311.pyc +0 -0
  40. envs/kitoverlay/tifffile/__pycache__/zarr.cpython-311.pyc +0 -0
  41. envs/kitoverlay/tifffile/_imagecodecs.py +587 -0
  42. envs/kitoverlay/tifffile/geodb.py +2080 -0
  43. envs/kitoverlay/tifffile/lsm2bin.py +67 -0
  44. envs/kitoverlay/tifffile/numcodecs.py +166 -0
  45. envs/kitoverlay/tifffile/py.typed +0 -0
  46. envs/kitoverlay/tifffile/tiff2fsspec.py +111 -0
  47. envs/kitoverlay/tifffile/tiffcomment.py +113 -0
  48. envs/kitoverlay/tifffile/tifffile.py +0 -0
  49. envs/kitoverlay/tifffile/zarr.py +1617 -0
  50. envs/simpy.freeze.txt +15 -0
MANIFEST.runtime.sha256 ADDED
The diff for this file is too large to render. See raw diff
 
README.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: nvidia-proprietary-software-license
4
+ license_link: https://docs.nvidia.com/cuda/eula/index.html
5
+ pretty_name: Simulation runtime (the third-party half of the AVSim data generation package)
6
+ ---
7
+
8
+ # Simulation runtime: the third-party half of the AVSim data generation package
9
+
10
+ This repository holds the third-party runtime of the Simulation data generation package, version 3: the pieces the pipeline needs that were not written by the authors. It contains no code and no data of the authors. It is not usable on its own: the private half of the package, AVSim/simulation, downloads this repository into the same directory at a pinned revision with its `fetch_runtime.sh` script and verifies it against `MANIFEST.runtime.sha256`.
11
+
12
+ Contents:
13
+ - `sifs/isaac.sif`: the render container, NVIDIA Isaac Sim 5.1 with its Omniverse Kit runtime and the python packages of the kit process.
14
+ - `toolchain/`: the NVIDIA CUDA 12.6.3 toolkit installer, a rootless Apptainer installation, a standalone CPython 3.11, CMake 3.27.9.
15
+ - `omniverse_mirror/` and `materials/`: mirrors of NVIDIA Omniverse content (Isaac Sim environments and SimReady props) and the MDL materials they reference; every mirror carries its `mirror_manifest.json` with the upstream source.
16
+ - `code/third_party/omniverse_assets/` and `code/third_party/vMaterials_2/`: NVIDIA Omniverse assets and the NVIDIA vMaterials 2 library, at the paths the code tree expects.
17
+ - `code/src/simulation/assets/sources/<id>/source/` and `store_v2/<id>/source/`: the object source meshes extracted from the mirrored NVIDIA assets and from the YCB object set.
18
+ - `envs/`: the python packages injected into the kit process, static builds of ffmpeg and ffprobe, a cmake wrapper, the pip freeze of the host-side environment; `wheels/`: the host-side python packages; `vendor/`: Eigen and libigl for the offline solver build.
19
+
20
+ License: the components keep the licenses of their upstreams (NVIDIA Software License Agreement and NVIDIA CUDA End User License Agreement for the container, the toolkit and the vMaterials library; the NVIDIA Omniverse asset terms for the mirrored content; CC BY 4.0 for the YCB objects; BSD, MIT, PSF, MPL 2.0, LGPL and GPL for the open-source tools and packages). The most restrictive of them, the NVIDIA proprietary software license, governs this repository as a whole.
envs/kitoverlay/lazy_loader/__init__.py ADDED
@@ -0,0 +1,342 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ lazy_loader
3
+ ===========
4
+
5
+ Makes it easy to load subpackages and functions on demand.
6
+ """
7
+
8
+ import ast
9
+ import importlib
10
+ import importlib.util
11
+ import os
12
+ import sys
13
+ import threading
14
+ import types
15
+ import warnings
16
+
17
+ __version__ = "0.5"
18
+ __all__ = ["attach", "attach_stub", "load"]
19
+
20
+
21
+ threadlock = threading.Lock()
22
+
23
+
24
+ def attach(package_name, submodules=None, submod_attrs=None):
25
+ """Attach lazily loaded submodules, functions, or other attributes.
26
+
27
+ Typically, modules import submodules and attributes as follows::
28
+
29
+ import mysubmodule
30
+ import anothersubmodule
31
+
32
+ from .foo import someattr
33
+
34
+ The idea is to replace a package's `__getattr__`, `__dir__`, and
35
+ `__all__`, such that all imports work exactly the way they would
36
+ with normal imports, except that the import occurs upon first use.
37
+
38
+ The typical way to call this function, replacing the above imports, is::
39
+
40
+ __getattr__, __dir__, __all__ = lazy.attach(
41
+ __name__, ["mysubmodule", "anothersubmodule"], {"foo": ["someattr"]}
42
+ )
43
+
44
+ Parameters
45
+ ----------
46
+ package_name : str
47
+ Typically use ``__name__``.
48
+ submodules : set
49
+ List of submodules to attach.
50
+ submod_attrs : dict
51
+ Dictionary of submodule -> list of attributes / functions.
52
+ These attributes are imported as they are used.
53
+
54
+ Returns
55
+ -------
56
+ __getattr__, __dir__, __all__
57
+
58
+ """
59
+ if submod_attrs is None:
60
+ submod_attrs = {}
61
+
62
+ if submodules is None:
63
+ submodules = set()
64
+ else:
65
+ submodules = set(submodules)
66
+
67
+ attr_to_modules = {
68
+ attr: mod for mod, attrs in submod_attrs.items() for attr in attrs
69
+ }
70
+
71
+ __all__ = sorted(submodules | attr_to_modules.keys())
72
+
73
+ def __getattr__(name):
74
+ if name in submodules:
75
+ return importlib.import_module(f"{package_name}.{name}")
76
+ elif name in attr_to_modules:
77
+ submod_path = f"{package_name}.{attr_to_modules[name]}"
78
+ submod = importlib.import_module(submod_path)
79
+ attr = getattr(submod, name)
80
+
81
+ # If the attribute lives in a file (module) with the same
82
+ # name as the attribute, ensure that the attribute and *not*
83
+ # the module is accessible on the package.
84
+ if name == attr_to_modules[name]:
85
+ pkg = sys.modules[package_name]
86
+ pkg.__dict__[name] = attr
87
+
88
+ return attr
89
+ else:
90
+ raise AttributeError(f"No {package_name} attribute {name}")
91
+
92
+ def __dir__():
93
+ return __all__.copy()
94
+
95
+ eager_import = os.environ.get("EAGER_IMPORT", "") not in ("0", "")
96
+ if eager_import:
97
+ for attr in set(attr_to_modules.keys()) | submodules:
98
+ __getattr__(attr)
99
+
100
+ return __getattr__, __dir__, __all__.copy()
101
+
102
+
103
+ class DelayedImportErrorModule(types.ModuleType):
104
+ def __init__(self, frame_data, *args, message, **kwargs):
105
+ self.__frame_data = frame_data
106
+ self.__message = message
107
+ super().__init__(*args, **kwargs)
108
+
109
+ def __getattr__(self, x):
110
+ fd = self.__frame_data
111
+ raise ModuleNotFoundError(
112
+ f"{self.__message}\n\n"
113
+ "This error is lazily reported, having originally occurred in\n"
114
+ f" File {fd['filename']}, line {fd['lineno']}, in {fd['function']}\n\n"
115
+ f"----> {''.join(fd['code_context'] or '').strip()}"
116
+ )
117
+
118
+
119
+ def load(fullname, *, require=None, error_on_import=False, suppress_warning=False):
120
+ """Return a lazily imported proxy for a module.
121
+
122
+ We often see the following pattern::
123
+
124
+ def myfunc():
125
+ import numpy as np
126
+ np.norm(...)
127
+ ....
128
+
129
+ Putting the import inside the function prevents, in this case,
130
+ `numpy`, from being imported at function definition time.
131
+ That saves time if `myfunc` ends up not being called.
132
+
133
+ This `load` function returns a proxy module that, upon access, imports
134
+ the actual module. So the idiom equivalent to the above example is::
135
+
136
+ np = lazy.load("numpy")
137
+
138
+ def myfunc():
139
+ np.norm(...)
140
+ ....
141
+
142
+ The initial import time is fast because the actual import is delayed
143
+ until the first attribute is requested. The overall import time may
144
+ decrease as well for users that don't make use of large portions
145
+ of your library.
146
+
147
+ Warning
148
+ -------
149
+ While lazily loading *sub*packages technically works, it causes the
150
+ package (that contains the subpackage) to be eagerly loaded even
151
+ if the package is already lazily loaded.
152
+ So, you probably shouldn't use subpackages with this `load` feature.
153
+ Instead you should encourage the package maintainers to use the
154
+ `lazy_loader.attach` to make their subpackages load lazily.
155
+
156
+ Parameters
157
+ ----------
158
+ fullname : str
159
+ The full name of the module or submodule to import. For example::
160
+
161
+ sp = lazy.load("scipy") # import scipy as sp
162
+
163
+ require : str
164
+ A dependency requirement as defined in PEP-508. For example::
165
+
166
+ "numpy >=1.24"
167
+
168
+ If defined, the proxy module will raise an error if the installed
169
+ version does not satisfy the requirement.
170
+
171
+ error_on_import : bool
172
+ Whether to postpone raising import errors until the module is accessed.
173
+ If set to `True`, import errors are raised as soon as `load` is called.
174
+
175
+ suppress_warning : bool
176
+ Whether to prevent emitting a warning when loading subpackages.
177
+ If set to `True`, no warning will occur.
178
+
179
+ Returns
180
+ -------
181
+ pm : importlib.util._LazyModule
182
+ Proxy module. Can be used like any regularly imported module.
183
+ Actual loading of the module occurs upon first attribute request.
184
+
185
+ """
186
+ with threadlock:
187
+ module = sys.modules.get(fullname)
188
+ have_module = module is not None
189
+
190
+ # Most common, short-circuit
191
+ if have_module and require is None:
192
+ return module
193
+
194
+ if not suppress_warning and "." in fullname:
195
+ msg = (
196
+ "subpackages can technically be lazily loaded, but it causes the "
197
+ "package to be eagerly loaded even if it is already lazily loaded. "
198
+ "So, you probably shouldn't use subpackages with this lazy feature."
199
+ )
200
+ warnings.warn(msg, RuntimeWarning)
201
+
202
+ spec = None
203
+
204
+ if not have_module:
205
+ spec = importlib.util.find_spec(fullname)
206
+ have_module = spec is not None
207
+
208
+ if not have_module:
209
+ not_found_message = f"No module named '{fullname}'"
210
+ elif require is not None:
211
+ try:
212
+ have_module = _check_requirement(require)
213
+ except ModuleNotFoundError as e:
214
+ raise ValueError(
215
+ f"Found module '{fullname}' but cannot test "
216
+ "requirement '{require}'. "
217
+ "Requirements must match distribution name, not module name."
218
+ ) from e
219
+
220
+ not_found_message = f"No distribution can be found matching '{require}'"
221
+
222
+ if not have_module:
223
+ if error_on_import:
224
+ raise ModuleNotFoundError(not_found_message)
225
+ import inspect
226
+
227
+ parent = inspect.stack()[1]
228
+ frame_data = {
229
+ "filename": parent.filename,
230
+ "lineno": parent.lineno,
231
+ "function": parent.function,
232
+ "code_context": parent.code_context,
233
+ }
234
+ del parent
235
+ return DelayedImportErrorModule(
236
+ frame_data,
237
+ "DelayedImportErrorModule",
238
+ message=not_found_message,
239
+ )
240
+
241
+ if spec is not None:
242
+ module = importlib.util.module_from_spec(spec)
243
+ sys.modules[fullname] = module
244
+
245
+ loader = importlib.util.LazyLoader(spec.loader)
246
+ loader.exec_module(module)
247
+
248
+ return module
249
+
250
+
251
+ def _check_requirement(require: str) -> bool:
252
+ """Verify that a package requirement is satisfied
253
+
254
+ If the package is required, a ``ModuleNotFoundError`` is raised
255
+ by ``importlib.metadata``.
256
+
257
+ Parameters
258
+ ----------
259
+ require : str
260
+ A dependency requirement as defined in PEP-508
261
+
262
+ Returns
263
+ -------
264
+ satisfied : bool
265
+ True if the installed version of the dependency matches
266
+ the specified version, False otherwise.
267
+ """
268
+ import importlib.metadata
269
+
270
+ import packaging.requirements
271
+
272
+ req = packaging.requirements.Requirement(require)
273
+ return req.specifier.contains(
274
+ importlib.metadata.version(req.name),
275
+ prereleases=True,
276
+ )
277
+
278
+
279
+ class _StubVisitor(ast.NodeVisitor):
280
+ """AST visitor to parse a stub file for submodules and submod_attrs."""
281
+
282
+ def __init__(self):
283
+ self._submodules = set()
284
+ self._submod_attrs = {}
285
+
286
+ def visit_ImportFrom(self, node: ast.ImportFrom):
287
+ if node.level != 1:
288
+ raise ValueError(
289
+ "Only within-module imports are supported (`from .* import`)"
290
+ )
291
+ if node.module:
292
+ attrs: list = self._submod_attrs.setdefault(node.module, [])
293
+ aliases = [alias.name for alias in node.names]
294
+ if "*" in aliases:
295
+ raise ValueError(
296
+ "lazy stub loader does not support star import "
297
+ f"`from {node.module} import *`"
298
+ )
299
+ attrs.extend(aliases)
300
+ else:
301
+ self._submodules.update(alias.name for alias in node.names)
302
+
303
+
304
+ def attach_stub(package_name: str, filename: str):
305
+ """Attach lazily loaded submodules, functions from a type stub.
306
+
307
+ This is a variant on ``attach`` that will parse a `.pyi` stub file to
308
+ infer ``submodules`` and ``submod_attrs``. This allows static type checkers
309
+ to find imports, while still providing lazy loading at runtime.
310
+
311
+ Parameters
312
+ ----------
313
+ package_name : str
314
+ Typically use ``__name__``.
315
+ filename : str
316
+ Path to `.py` file which has an adjacent `.pyi` file.
317
+ Typically use ``__file__``.
318
+
319
+ Returns
320
+ -------
321
+ __getattr__, __dir__, __all__
322
+ The same output as ``attach``.
323
+
324
+ Raises
325
+ ------
326
+ ValueError
327
+ If a stub file is not found for `filename`, or if the stubfile is formmated
328
+ incorrectly (e.g. if it contains an relative import from outside of the module)
329
+ """
330
+ stubfile = (
331
+ filename if filename.endswith("i") else f"{os.path.splitext(filename)[0]}.pyi"
332
+ )
333
+
334
+ if not os.path.exists(stubfile):
335
+ raise ValueError(f"Cannot load imports from non-existent stub {stubfile!r}")
336
+
337
+ with open(stubfile) as f:
338
+ stub_node = ast.parse(f.read())
339
+
340
+ visitor = _StubVisitor()
341
+ visitor.visit(stub_node)
342
+ return attach(package_name, visitor._submodules, visitor._submod_attrs)
envs/kitoverlay/lazy_loader/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (15 kB). View file
 
envs/kitoverlay/scikit_image-0.26.0.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
envs/kitoverlay/scikit_image-0.26.0.dist-info/LICENSE.txt ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Files: *
2
+ Copyright: 2009-2022 the scikit-image team
3
+ License: BSD-3-Clause
4
+
5
+ Files: doc/source/themes/scikit-image/layout.html
6
+ Copyright: 2007-2010 the Sphinx team
7
+ License: BSD-3-Clause
8
+
9
+ Files: skimage/feature/_canny.py
10
+ skimage/filters/edges.py
11
+ skimage/filters/_rank_order.py
12
+ skimage/morphology/_skeletonize.py
13
+ skimage/morphology/tests/test_watershed.py
14
+ skimage/morphology/watershed.py
15
+ skimage/segmentation/heap_general.pxi
16
+ skimage/segmentation/heap_watershed.pxi
17
+ skimage/segmentation/_watershed.py
18
+ skimage/segmentation/_watershed_cy.pyx
19
+ Copyright: 2003-2009 Massachusetts Institute of Technology
20
+ 2009-2011 Broad Institute
21
+ 2003 Lee Kamentsky
22
+ 2003-2005 Peter J. Verveer
23
+ License: BSD-3-Clause
24
+
25
+ Files: skimage/filters/thresholding.py
26
+ skimage/graph/_mcp.pyx
27
+ skimage/graph/heap.pyx
28
+ Copyright: 2009-2015 Board of Regents of the University of
29
+ Wisconsin-Madison, Broad Institute of MIT and Harvard,
30
+ and Max Planck Institute of Molecular Cell Biology and
31
+ Genetics
32
+ 2009 Zachary Pincus
33
+ 2009 Almar Klein
34
+ License: BSD-2-Clause
35
+
36
+ File: skimage/morphology/grayreconstruct.py
37
+ skimage/morphology/tests/test_reconstruction.py
38
+ Copyright: 2003-2009 Massachusetts Institute of Technology
39
+ 2009-2011 Broad Institute
40
+ 2003 Lee Kamentsky
41
+ License: BSD-3-Clause
42
+
43
+ File: skimage/morphology/_grayreconstruct.pyx
44
+ Copyright: 2003-2009 Massachusetts Institute of Technology
45
+ 2009-2011 Broad Institute
46
+ 2003 Lee Kamentsky
47
+ 2022 Gregory Lee (added a 64-bit integer variant for large images)
48
+ License: BSD-3-Clause
49
+
50
+ File: skimage/segmentation/_expand_labels.py
51
+ Copyright: 2020 Broad Institute
52
+ 2020 CellProfiler team
53
+ License: BSD-3-Clause
54
+
55
+ File: skimage/exposure/_adapthist.py
56
+ Copyright: 1994 Karel Zuiderveld
57
+ License: BSD-3-Clause
58
+
59
+ Function: skimage/morphology/_skeletonize_various_cy.pyx:_skeletonize_loop
60
+ Copyright: 2003-2009 Massachusetts Institute of Technology
61
+ 2009-2011 Broad Institute
62
+ 2003 Lee Kamentsky
63
+ License: BSD-3-Clause
64
+
65
+ Function: skimage/_shared/version_requirements.py:_check_version
66
+ Copyright: 2013 The IPython Development Team
67
+ License: BSD-3-Clause
68
+
69
+ Function: skimage/_shared/version_requirements.py:is_installed
70
+ Copyright: 2009-2011 Pierre Raybaut
71
+ License: MIT
72
+
73
+ File: skimage/feature/_fisher_vector.py
74
+ Copyright: 2014 2014 Dan Oneata
75
+ License: MIT
76
+
77
+ File: skimage/_vendored/numpy_lookfor.py
78
+ Copyright: 2005-2023, NumPy Developers
79
+ License: BSD-3-Clause
80
+
81
+ File: skimage/transform/_thin_plate_splines.py
82
+ Copyright: 2007 Zachary Pincus
83
+ License: BSD-3-Clause
84
+
85
+ License: BSD-2-Clause
86
+
87
+ Redistribution and use in source and binary forms, with or without
88
+ modification, are permitted provided that the following conditions
89
+ are met:
90
+ 1. Redistributions of source code must retain the above copyright
91
+ notice, this list of conditions and the following disclaimer.
92
+ 2. Redistributions in binary form must reproduce the above copyright
93
+ notice, this list of conditions and the following disclaimer in the
94
+ documentation and/or other materials provided with the distribution.
95
+ .
96
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
97
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
98
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
99
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR
100
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
101
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
102
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
103
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
104
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
105
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
106
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
107
+
108
+ License: BSD-3-Clause
109
+
110
+ Redistribution and use in source and binary forms, with or without
111
+ modification, are permitted provided that the following conditions
112
+ are met:
113
+ 1. Redistributions of source code must retain the above copyright
114
+ notice, this list of conditions and the following disclaimer.
115
+ 2. Redistributions in binary form must reproduce the above copyright
116
+ notice, this list of conditions and the following disclaimer in the
117
+ documentation and/or other materials provided with the distribution.
118
+ 3. Neither the name of the University nor the names of its contributors
119
+ may be used to endorse or promote products derived from this software
120
+ without specific prior written permission.
121
+ .
122
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
123
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
124
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
125
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR
126
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
127
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
128
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
129
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
130
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
131
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
132
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
133
+
134
+ License: MIT
135
+
136
+ Permission is hereby granted, free of charge, to any person obtaining a copy
137
+ of this software and associated documentation files (the "Software"), to deal
138
+ in the Software without restriction, including without limitation the rights
139
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
140
+ copies of the Software, and to permit persons to whom the Software is
141
+ furnished to do so, subject to the following conditions:
142
+
143
+ The above copyright notice and this permission notice shall be included in all
144
+ copies or substantial portions of the Software.
145
+
146
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
147
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
148
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
149
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
150
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
151
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
152
+ SOFTWARE.
envs/kitoverlay/scikit_image-0.26.0.dist-info/METADATA ADDED
@@ -0,0 +1,286 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.1
2
+ Name: scikit-image
3
+ Version: 0.26.0
4
+ Summary: Image processing in Python
5
+ Maintainer-Email: scikit-image developers <skimage-core@discuss.scientific-python.org>
6
+ License: Files: *
7
+ Copyright: 2009-2022 the scikit-image team
8
+ License: BSD-3-Clause
9
+
10
+ Files: doc/source/themes/scikit-image/layout.html
11
+ Copyright: 2007-2010 the Sphinx team
12
+ License: BSD-3-Clause
13
+
14
+ Files: skimage/feature/_canny.py
15
+ skimage/filters/edges.py
16
+ skimage/filters/_rank_order.py
17
+ skimage/morphology/_skeletonize.py
18
+ skimage/morphology/tests/test_watershed.py
19
+ skimage/morphology/watershed.py
20
+ skimage/segmentation/heap_general.pxi
21
+ skimage/segmentation/heap_watershed.pxi
22
+ skimage/segmentation/_watershed.py
23
+ skimage/segmentation/_watershed_cy.pyx
24
+ Copyright: 2003-2009 Massachusetts Institute of Technology
25
+ 2009-2011 Broad Institute
26
+ 2003 Lee Kamentsky
27
+ 2003-2005 Peter J. Verveer
28
+ License: BSD-3-Clause
29
+
30
+ Files: skimage/filters/thresholding.py
31
+ skimage/graph/_mcp.pyx
32
+ skimage/graph/heap.pyx
33
+ Copyright: 2009-2015 Board of Regents of the University of
34
+ Wisconsin-Madison, Broad Institute of MIT and Harvard,
35
+ and Max Planck Institute of Molecular Cell Biology and
36
+ Genetics
37
+ 2009 Zachary Pincus
38
+ 2009 Almar Klein
39
+ License: BSD-2-Clause
40
+
41
+ File: skimage/morphology/grayreconstruct.py
42
+ skimage/morphology/tests/test_reconstruction.py
43
+ Copyright: 2003-2009 Massachusetts Institute of Technology
44
+ 2009-2011 Broad Institute
45
+ 2003 Lee Kamentsky
46
+ License: BSD-3-Clause
47
+
48
+ File: skimage/morphology/_grayreconstruct.pyx
49
+ Copyright: 2003-2009 Massachusetts Institute of Technology
50
+ 2009-2011 Broad Institute
51
+ 2003 Lee Kamentsky
52
+ 2022 Gregory Lee (added a 64-bit integer variant for large images)
53
+ License: BSD-3-Clause
54
+
55
+ File: skimage/segmentation/_expand_labels.py
56
+ Copyright: 2020 Broad Institute
57
+ 2020 CellProfiler team
58
+ License: BSD-3-Clause
59
+
60
+ File: skimage/exposure/_adapthist.py
61
+ Copyright: 1994 Karel Zuiderveld
62
+ License: BSD-3-Clause
63
+
64
+ Function: skimage/morphology/_skeletonize_various_cy.pyx:_skeletonize_loop
65
+ Copyright: 2003-2009 Massachusetts Institute of Technology
66
+ 2009-2011 Broad Institute
67
+ 2003 Lee Kamentsky
68
+ License: BSD-3-Clause
69
+
70
+ Function: skimage/_shared/version_requirements.py:_check_version
71
+ Copyright: 2013 The IPython Development Team
72
+ License: BSD-3-Clause
73
+
74
+ Function: skimage/_shared/version_requirements.py:is_installed
75
+ Copyright: 2009-2011 Pierre Raybaut
76
+ License: MIT
77
+
78
+ File: skimage/feature/_fisher_vector.py
79
+ Copyright: 2014 2014 Dan Oneata
80
+ License: MIT
81
+
82
+ File: skimage/_vendored/numpy_lookfor.py
83
+ Copyright: 2005-2023, NumPy Developers
84
+ License: BSD-3-Clause
85
+
86
+ File: skimage/transform/_thin_plate_splines.py
87
+ Copyright: 2007 Zachary Pincus
88
+ License: BSD-3-Clause
89
+
90
+ License: BSD-2-Clause
91
+
92
+ Redistribution and use in source and binary forms, with or without
93
+ modification, are permitted provided that the following conditions
94
+ are met:
95
+ 1. Redistributions of source code must retain the above copyright
96
+ notice, this list of conditions and the following disclaimer.
97
+ 2. Redistributions in binary form must reproduce the above copyright
98
+ notice, this list of conditions and the following disclaimer in the
99
+ documentation and/or other materials provided with the distribution.
100
+ .
101
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
102
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
103
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
104
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR
105
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
106
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
107
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
108
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
109
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
110
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
111
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
112
+
113
+ License: BSD-3-Clause
114
+
115
+ Redistribution and use in source and binary forms, with or without
116
+ modification, are permitted provided that the following conditions
117
+ are met:
118
+ 1. Redistributions of source code must retain the above copyright
119
+ notice, this list of conditions and the following disclaimer.
120
+ 2. Redistributions in binary form must reproduce the above copyright
121
+ notice, this list of conditions and the following disclaimer in the
122
+ documentation and/or other materials provided with the distribution.
123
+ 3. Neither the name of the University nor the names of its contributors
124
+ may be used to endorse or promote products derived from this software
125
+ without specific prior written permission.
126
+ .
127
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
128
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
129
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
130
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR
131
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
132
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
133
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
134
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
135
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
136
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
137
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
138
+
139
+ License: MIT
140
+
141
+ Permission is hereby granted, free of charge, to any person obtaining a copy
142
+ of this software and associated documentation files (the "Software"), to deal
143
+ in the Software without restriction, including without limitation the rights
144
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
145
+ copies of the Software, and to permit persons to whom the Software is
146
+ furnished to do so, subject to the following conditions:
147
+
148
+ The above copyright notice and this permission notice shall be included in all
149
+ copies or substantial portions of the Software.
150
+
151
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
152
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
153
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
154
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
155
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
156
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
157
+ SOFTWARE.
158
+
159
+ Classifier: Development Status :: 4 - Beta
160
+ Classifier: Environment :: Console
161
+ Classifier: Intended Audience :: Developers
162
+ Classifier: Intended Audience :: Science/Research
163
+ Classifier: License :: OSI Approved :: BSD License
164
+ Classifier: Programming Language :: C
165
+ Classifier: Programming Language :: Python
166
+ Classifier: Programming Language :: Python :: 3
167
+ Classifier: Programming Language :: Python :: 3.11
168
+ Classifier: Programming Language :: Python :: 3.12
169
+ Classifier: Programming Language :: Python :: 3.13
170
+ Classifier: Programming Language :: Python :: 3.14
171
+ Classifier: Programming Language :: Python :: 3 :: Only
172
+ Classifier: Topic :: Software Development :: Libraries
173
+ Classifier: Topic :: Scientific/Engineering
174
+ Classifier: Operating System :: Microsoft :: Windows
175
+ Classifier: Operating System :: POSIX
176
+ Classifier: Operating System :: Unix
177
+ Classifier: Operating System :: MacOS
178
+ Project-URL: homepage, https://scikit-image.org
179
+ Project-URL: documentation, https://scikit-image.org/docs/stable
180
+ Project-URL: source, https://github.com/scikit-image/scikit-image
181
+ Project-URL: download, https://pypi.org/project/scikit-image/#files
182
+ Project-URL: tracker, https://github.com/scikit-image/scikit-image/issues
183
+ Requires-Python: >=3.11
184
+ Requires-Dist: numpy>=1.24
185
+ Requires-Dist: scipy>=1.11.4
186
+ Requires-Dist: networkx>=3.0
187
+ Requires-Dist: pillow>=10.1
188
+ Requires-Dist: imageio!=2.35.0,>=2.33
189
+ Requires-Dist: tifffile>=2022.8.12
190
+ Requires-Dist: packaging>=21
191
+ Requires-Dist: lazy-loader>=0.4
192
+ Provides-Extra: build
193
+ Requires-Dist: meson-python>=0.16; extra == "build"
194
+ Requires-Dist: ninja>=1.11.1.1; extra == "build"
195
+ Requires-Dist: Cython!=3.2.0b1,>=3.0.8; extra == "build"
196
+ Requires-Dist: pythran>=0.16; extra == "build"
197
+ Requires-Dist: numpy>=2.0; extra == "build"
198
+ Requires-Dist: spin==0.13; extra == "build"
199
+ Requires-Dist: build>=1.2.1; extra == "build"
200
+ Provides-Extra: data
201
+ Requires-Dist: pooch>=1.6.0; extra == "data"
202
+ Provides-Extra: developer
203
+ Requires-Dist: pre-commit; extra == "developer"
204
+ Requires-Dist: ipython; extra == "developer"
205
+ Requires-Dist: docstub==0.3.0.post0; extra == "developer"
206
+ Requires-Dist: scikit-image[asv]; extra == "developer"
207
+ Provides-Extra: asv
208
+ Requires-Dist: asv; sys_platform != "emscripten" and extra == "asv"
209
+ Provides-Extra: docs
210
+ Requires-Dist: sphinx>=8.0; extra == "docs"
211
+ Requires-Dist: sphinx-gallery[parallel]>=0.18; extra == "docs"
212
+ Requires-Dist: numpydoc>=1.7; extra == "docs"
213
+ Requires-Dist: sphinx-copybutton; extra == "docs"
214
+ Requires-Dist: matplotlib>=3.7; extra == "docs"
215
+ Requires-Dist: dask[array]>=2023.2.0; extra == "docs"
216
+ Requires-Dist: pandas>=2.0; extra == "docs"
217
+ Requires-Dist: seaborn>=0.11; extra == "docs"
218
+ Requires-Dist: pooch>=1.6; extra == "docs"
219
+ Requires-Dist: tifffile>=2022.8.12; extra == "docs"
220
+ Requires-Dist: myst-parser; extra == "docs"
221
+ Requires-Dist: intersphinx-registry>=0.2411.14; extra == "docs"
222
+ Requires-Dist: ipywidgets; extra == "docs"
223
+ Requires-Dist: ipykernel; extra == "docs"
224
+ Requires-Dist: plotly>=5.20; extra == "docs"
225
+ Requires-Dist: kaleido==0.2.1; extra == "docs"
226
+ Requires-Dist: scikit-learn>=1.2; extra == "docs"
227
+ Requires-Dist: sphinx_design>=0.5; extra == "docs"
228
+ Requires-Dist: pydata-sphinx-theme>=0.16; extra == "docs"
229
+ Requires-Dist: PyWavelets>=1.6; extra == "docs"
230
+ Requires-Dist: pytest-doctestplus>=1.6.0; extra == "docs"
231
+ Provides-Extra: optional
232
+ Requires-Dist: SimpleITK; sys_platform != "emscripten" and extra == "optional"
233
+ Requires-Dist: scikit-learn>=1.2; extra == "optional"
234
+ Requires-Dist: pyamg>=5.2; sys_platform != "emscripten" and python_version < "3.14" and extra == "optional"
235
+ Requires-Dist: scikit-image[optional_free_threaded]; extra == "optional"
236
+ Provides-Extra: optional-free-threaded
237
+ Requires-Dist: astropy>=6.0; extra == "optional-free-threaded"
238
+ Requires-Dist: dask[array]>=2023.2.0; extra == "optional-free-threaded"
239
+ Requires-Dist: matplotlib>=3.7; extra == "optional-free-threaded"
240
+ Requires-Dist: pooch>=1.6.0; sys_platform != "emscripten" and extra == "optional-free-threaded"
241
+ Requires-Dist: PyWavelets>=1.6; extra == "optional-free-threaded"
242
+ Provides-Extra: test
243
+ Requires-Dist: numpydoc>=1.7; extra == "test"
244
+ Requires-Dist: pooch>=1.6.0; sys_platform != "emscripten" and extra == "test"
245
+ Requires-Dist: pytest>=8.3; extra == "test"
246
+ Requires-Dist: pytest-cov>=2.11.0; extra == "test"
247
+ Requires-Dist: pytest-pretty; extra == "test"
248
+ Requires-Dist: pytest-localserver; extra == "test"
249
+ Requires-Dist: pytest-faulthandler; extra == "test"
250
+ Requires-Dist: pytest-doctestplus>=1.6.0; extra == "test"
251
+ Description-Content-Type: text/markdown
252
+
253
+ # scikit-image: Image processing in Python
254
+
255
+ [![Image.sc forum](https://img.shields.io/badge/dynamic/json.svg?label=forum&url=https%3A%2F%2Fforum.image.sc%2Ftags%2Fscikit-image.json&query=%24.topic_list.tags.0.topic_count&colorB=brightgreen&suffix=%20topics&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABPklEQVR42m3SyyqFURTA8Y2BER0TDyExZ+aSPIKUlPIITFzKeQWXwhBlQrmFgUzMMFLKZeguBu5y+//17dP3nc5vuPdee6299gohUYYaDGOyyACq4JmQVoFujOMR77hNfOAGM+hBOQqB9TjHD36xhAa04RCuuXeKOvwHVWIKL9jCK2bRiV284QgL8MwEjAneeo9VNOEaBhzALGtoRy02cIcWhE34jj5YxgW+E5Z4iTPkMYpPLCNY3hdOYEfNbKYdmNngZ1jyEzw7h7AIb3fRTQ95OAZ6yQpGYHMMtOTgouktYwxuXsHgWLLl+4x++Kx1FJrjLTagA77bTPvYgw1rRqY56e+w7GNYsqX6JfPwi7aR+Y5SA+BXtKIRfkfJAYgj14tpOF6+I46c4/cAM3UhM3JxyKsxiOIhH0IO6SH/A1Kb1WBeUjbkAAAAAElFTkSuQmCC)](https://forum.image.sc/tags/scikit-image)
256
+ [![Stackoverflow](https://img.shields.io/badge/stackoverflow-Ask%20questions-blue.svg)](https://stackoverflow.com/questions/tagged/scikit-image)
257
+ [![project chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://skimage.zulipchat.com)
258
+ [![Scientific Python Ecosystem Coordination](https://img.shields.io/badge/SPEC-0,1,4,6,7,8-green?labelColor=%23004811&color=%235CA038)](https://scientific-python.org/specs/)
259
+ [![LFX Health Score](https://insights.linuxfoundation.org/api/badge/health-score?project=scikit-image-scikit-image)](https://insights.linuxfoundation.org/project/scikit-image-scikit-image)
260
+
261
+ - **Website (including documentation):** [https://scikit-image.org/](https://scikit-image.org)
262
+ - **Documentation:** [https://scikit-image.org/docs/stable/](https://scikit-image.org/docs/stable/)
263
+ - **User forum:** [https://forum.image.sc/tag/scikit-image](https://forum.image.sc/tag/scikit-image)
264
+ - **Developer forum:** [https://discuss.scientific-python.org/c/contributor/skimage](https://discuss.scientific-python.org/c/contributor/skimage)
265
+ - **Source:** [https://github.com/scikit-image/scikit-image](https://github.com/scikit-image/scikit-image)
266
+
267
+ ## Installation
268
+
269
+ - **pip:** `pip install scikit-image`
270
+ - **conda:** `conda install -c conda-forge scikit-image`
271
+
272
+ Also see [installing `scikit-image`](https://github.com/scikit-image/scikit-image/blob/main/INSTALL.rst).
273
+
274
+ ## License
275
+
276
+ See [LICENSE.txt](https://github.com/scikit-image/scikit-image/blob/main/LICENSE.txt).
277
+
278
+ ## Citation
279
+
280
+ If you find this project useful, please cite:
281
+
282
+ > Stéfan van der Walt, Johannes L. Schönberger, Juan Nunez-Iglesias,
283
+ > François Boulogne, Joshua D. Warner, Neil Yager, Emmanuelle
284
+ > Gouillart, Tony Yu, and the scikit-image contributors.
285
+ > _scikit-image: Image processing in Python_. PeerJ 2:e453 (2014)
286
+ > https://doi.org/10.7717/peerj.453
envs/kitoverlay/scikit_image-0.26.0.dist-info/RECORD ADDED
@@ -0,0 +1,501 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ scikit_image-0.26.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
+ scikit_image-0.26.0.dist-info/LICENSE.txt,sha256=YR0yB1BNy0qAjfIJ0ufJtPLon-aQ-Ec1wNVIFglmtSc,6435
3
+ scikit_image-0.26.0.dist-info/METADATA,sha256=z13LPluagVtDJ8AiJa_Nhe3Va5D7vd3lvpRDUqWYZXE,15171
4
+ scikit_image-0.26.0.dist-info/RECORD,,
5
+ scikit_image-0.26.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ scikit_image-0.26.0.dist-info/WHEEL,sha256=-PRFuKV2Mmc9_5cjuD-UNN7YLg4OyntAAjaeo6DTU3w,138
7
+ skimage/__init__.py,sha256=5iDb9BuSunCc-mM8YBtjFtXwIlX-gO6QCgZjbquJ0HE,4107
8
+ skimage/__init__.pyi,sha256=-q2FUJzv9v_H7mN2vSJuwDSZedVPCpVDUQQb4-sz5i0,848
9
+ skimage/__pycache__/__init__.cpython-311.pyc,,
10
+ skimage/__pycache__/conftest.cpython-311.pyc,,
11
+ skimage/_shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
+ skimage/_shared/__pycache__/__init__.cpython-311.pyc,,
13
+ skimage/_shared/__pycache__/_dependency_checks.cpython-311.pyc,,
14
+ skimage/_shared/__pycache__/_geometry.cpython-311.pyc,,
15
+ skimage/_shared/__pycache__/_tempfile.cpython-311.pyc,,
16
+ skimage/_shared/__pycache__/_warnings.cpython-311.pyc,,
17
+ skimage/_shared/__pycache__/compat.cpython-311.pyc,,
18
+ skimage/_shared/__pycache__/coord.cpython-311.pyc,,
19
+ skimage/_shared/__pycache__/dtype.cpython-311.pyc,,
20
+ skimage/_shared/__pycache__/filters.cpython-311.pyc,,
21
+ skimage/_shared/__pycache__/tester.cpython-311.pyc,,
22
+ skimage/_shared/__pycache__/testing.cpython-311.pyc,,
23
+ skimage/_shared/__pycache__/utils.cpython-311.pyc,,
24
+ skimage/_shared/__pycache__/version_requirements.cpython-311.pyc,,
25
+ skimage/_shared/_dependency_checks.py,sha256=6ZaHZf0d65U5cGMtSEegDUYQ_gJL1wSkC-w9zZkcA18,211
26
+ skimage/_shared/_geometry.py,sha256=vagNwhLEcKvM0k19agDXvhnZDjwjTL9au5O-CSuDCQY,1343
27
+ skimage/_shared/_tempfile.py,sha256=Fw7g_KlpsXakwa9qDFBgf5dcuyyhqAdEMW8L-8rnqsI,760
28
+ skimage/_shared/_warnings.py,sha256=ELNhragQM-se-tmyUvcdKVcm-s4cpRiHkNTTMbZCJnM,5222
29
+ skimage/_shared/compat.py,sha256=rBKgLOm2OS3MQ1gafvbF6GsfvYnE82Y4cyjfTQq__MI,1046
30
+ skimage/_shared/coord.py,sha256=KGgOj1qps451UMaMVy2SlgO7rXFSi91WSbegQjqBOs0,4330
31
+ skimage/_shared/dtype.py,sha256=-6l3DaRdHqFRB9EnvMU5xqHxwN7c519Svv47qy1R-Sk,2397
32
+ skimage/_shared/fast_exp.cpython-311-x86_64-linux-gnu.so,sha256=0UTaBvIz7AcpaGpbGuEm56eBRVYWDQS3lSpHHcRFpYU,69880
33
+ skimage/_shared/fast_exp.h,sha256=HtIZ7X68IvcNN47SM5E1SxBgvVYziJKvzvawzO94vi8,1246
34
+ skimage/_shared/filters.py,sha256=yQZFHt97P8XyQuZ5qEkVxBT1KRSXoWBbBQf2NimST0I,4877
35
+ skimage/_shared/geometry.cpython-311-x86_64-linux-gnu.so,sha256=HjydEFIc_JQYQbsDp345O13waRa3AFIHp6KKUGv_cng,180400
36
+ skimage/_shared/interpolation.cpython-311-x86_64-linux-gnu.so,sha256=JCxzD5xIcirUL51NqlhOi-eM_UbNqmNqoymR9nYKvHs,53784
37
+ skimage/_shared/tester.py,sha256=bA-Foz30kjF7LLpnUsOcllI5HS38f7e7hogP0uxG0vo,3589
38
+ skimage/_shared/testing.py,sha256=0yYZ8j4DCYSp34cNdY4_yiiityI3TtEMw2-biNO3q7I,9923
39
+ skimage/_shared/transform.cpython-311-x86_64-linux-gnu.so,sha256=5o6JLSztgcVmDykvcSXX2GDvcbAcuSWDAvxg_jsvuls,180544
40
+ skimage/_shared/utils.py,sha256=sKIyVwyOmQq3bNb-b1SmcWGmkSFNv2xSllbhOnmesfE,36621
41
+ skimage/_shared/version_requirements.py,sha256=ogsM5Qn6Zb6AAU_f6M4N7r3Vo2-NLUxT1RG0VSqZK2w,4347
42
+ skimage/_vendored/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
+ skimage/_vendored/__pycache__/__init__.cpython-311.pyc,,
44
+ skimage/_vendored/__pycache__/numpy_lookfor.cpython-311.pyc,,
45
+ skimage/_vendored/numpy_lookfor.py,sha256=KxljgNIZ2mDoyEwFndef7imiFFblxC8FWs3gRn3xUio,9776
46
+ skimage/color/__init__.py,sha256=QDtz_aFnz27WW9iaRg8rXNS9_8EQpNKFLB8Zzi7m-qw,130
47
+ skimage/color/__init__.pyi,sha256=03z6CYNjJon-6DHGJF1xHPRr0ZhCcXOzkn1owqORxXY,2382
48
+ skimage/color/__pycache__/__init__.cpython-311.pyc,,
49
+ skimage/color/__pycache__/adapt_rgb.cpython-311.pyc,,
50
+ skimage/color/__pycache__/colorconv.cpython-311.pyc,,
51
+ skimage/color/__pycache__/colorlabel.cpython-311.pyc,,
52
+ skimage/color/__pycache__/delta_e.cpython-311.pyc,,
53
+ skimage/color/__pycache__/rgb_colors.cpython-311.pyc,,
54
+ skimage/color/adapt_rgb.py,sha256=eWZhGvWQ3nucRZkrDP6sgnF6Ka0rL6BB7jxeXL4pcp8,2489
55
+ skimage/color/colorconv.py,sha256=_F9JrBlMIpMl8h3b5MSfffQwe5Yn37tfzSglEzFE_f4,67508
56
+ skimage/color/colorlabel.py,sha256=v0VVZjMBf5_Dzq38w9txqJSzwjAQfA84ZL1_fnVE8JA,10506
57
+ skimage/color/delta_e.py,sha256=2oXAdGwfScy2Db_XZVaxzHnYVQJjgs8eLgSIt_Nit7Y,12715
58
+ skimage/color/rgb_colors.py,sha256=Nj-fsrXpuCtLFIjKMgzpvb6HkrpZiuvgDc5imTMGs9w,4493
59
+ skimage/conftest.py,sha256=JwlJva5dtmu5OUIgF8I-Lif3oXF4A3taoZOS8D2h114,321
60
+ skimage/data/README.txt,sha256=Wra5WN0KyiF-Pp3FNWCMJDKkdIKRCdEGTwPSSUYACyc,280
61
+ skimage/data/__init__.py,sha256=8Y4bk3tEAfBWnB-xKf7pXopkkP-AczTaXFxAQewZxS0,388
62
+ skimage/data/__init__.pyi,sha256=varbukgcATJEhBB6ICnSPDI7SgNyIu1d8WQYZgXHJIE,1411
63
+ skimage/data/__pycache__/__init__.cpython-311.pyc,,
64
+ skimage/data/__pycache__/_binary_blobs.cpython-311.pyc,,
65
+ skimage/data/__pycache__/_fetchers.cpython-311.pyc,,
66
+ skimage/data/__pycache__/_registry.cpython-311.pyc,,
67
+ skimage/data/_binary_blobs.py,sha256=AH2C58vUwwi-wPof4CUQ2PxoXIdKcQlhUqHhlI_cFs4,4121
68
+ skimage/data/_fetchers.py,sha256=UOYjT6IXCCDq-ND49CtRkFgir8NoCk8JET-hHUNff7Q,39503
69
+ skimage/data/_registry.py,sha256=KcHtNPa6OuHg_nSPO404IxU4opJG9TgmaG9ZNBXHmH8,20990
70
+ skimage/data/astronaut.png,sha256=iEMc2WU8zVOXQbVV-wpGthVYswHUEQQStbwotePqbLU,791555
71
+ skimage/data/brick.png,sha256=eWbK8yT2uoQxGNmPegd0bSL2o0NDCt0CM-yl9uqqj88,106634
72
+ skimage/data/camera.png,sha256=sHk9Kt2g-mromcA5iUgr_5pC09VpD8fjZI8nldcwwjo,139512
73
+ skimage/data/cell.png,sha256=jSOn-4H3zId80J8zA1f8f1lWUTBuhOFyUvbgobP2FRU,74183
74
+ skimage/data/chelsea.png,sha256=WWqh58uHXrefQ34xA4HSazOKgcLaI0OXBKc8RlHoxLs,240512
75
+ skimage/data/chessboard_GRAY.png,sha256=PlGHB3RRWvTQfYIL2IJzZMcIOb-bVzx0bkhQleiT35A,418
76
+ skimage/data/chessboard_RGB.png,sha256=GsAe_y1OUPTtpVot3s3CimV2YjpY16fvhFE8XMGaAzE,1127
77
+ skimage/data/clock_motion.png,sha256=8Ckiayi2QugBE9hmIumyFe4Geglm_q9eYGBKHgVzOVU,58784
78
+ skimage/data/coffee.png,sha256=zAL4yhiLFnx3WnEBtddn0ecXks92LDPW-hWkWZtajec,466706
79
+ skimage/data/coins.png,sha256=-Ndz_Jz6b02OWULcNNCgeI_K7SpP77vtCu9TmNfvTLo,75825
80
+ skimage/data/color.png,sha256=fS35k94rT6KnjgTl34BQ9JqcURqnXlmrO9VqycmK734,85584
81
+ skimage/data/grass.png,sha256=trYCJCaziTbEOkrAljXNeK8HTpD0L_qCJ6yLdFLTn4k,217893
82
+ skimage/data/gravel.png,sha256=xIYVtFG_HmBvvXLAqp-MwPBoq3ER732Tu5sPJYZEDBI,194247
83
+ skimage/data/horse.png,sha256=x_tgeJ_jlMSF-EIpHqOyHlDRQPOdbctfuZF8wXgiVFU,16633
84
+ skimage/data/hubble_deep_field.jpg,sha256=OhnF3YqSepM0uxIpptY3EbHAx2f7J-IobnyEo-LC9fQ,527940
85
+ skimage/data/ihc.png,sha256=-N0ao4fd0fSditE7UJIbI3346bJiYG0lh3Boew75PO8,477916
86
+ skimage/data/lbpcascade_frontalface_opencv.xml,sha256=Awl3iaPcuw5A0gue-CU328O2cLan8iaNc1Rw8i4AOpE,51858
87
+ skimage/data/lfw_subset.npy,sha256=lWDsL17frAGXP2OoqZ0ABT_s0R4hh34YA4--UA-Ohyw,1000080
88
+ skimage/data/logo.png,sha256=8sV_6K8Inwi1ulI9lVc8JuYpBKxZZ_TIhRsn0DNpAWg,179723
89
+ skimage/data/microaneurysms.png,sha256=oeG-WapEf4zggvf6gJmXqzaaKxN8tsQgKrxkfHzPZFY,4950
90
+ skimage/data/moon.png,sha256=eHOWGdEffrnBZbtdLv1Hcs7lV4EuyEdTLbsdku9x9Xc,50177
91
+ skimage/data/motorcycle_disp.npz,sha256=LknIzr_z-iA1mgzGiAyC4cA7uxBtqBoXchgoG8LxE9c,1146173
92
+ skimage/data/motorcycle_left.png,sha256=2xjpxBV2F0A8NTemujVd_q_pp-q7a5uUyzP2Ul3UkXk,644701
93
+ skimage/data/motorcycle_right.png,sha256=X8kTrocOQqS2YjFLyQTReGvK2OLwubZ9uloilAY1d5c,640373
94
+ skimage/data/multipage.tif,sha256=TaCtDT30gHqYRyR9G15WW1DUZIH2Q6-1w3wUgCx4Ew8,940
95
+ skimage/data/multipage_rgb.tif,sha256=HSO4RP043ODi0G8wQygXzbheUgcNj1RgorpYrr80oN4,5278
96
+ skimage/data/no_time_for_that_tiny.gif,sha256=IKvpS6nkXxjeQWxfvvjR9XpJlgC-QPmiAPriRgEO784,4438
97
+ skimage/data/page.png,sha256=NBpvCmFVdmKwJzSptuVuwzqRWyxBiGuXUJ3t8qQ7R6M,47679
98
+ skimage/data/phantom.png,sha256=VS_2mBZ6pALM6xeYETBgeiKKCgqnxRkpnqpNXzAbo2w,3386
99
+ skimage/data/retina.jpg,sha256=OKB_NvJ_CV6Biup7ltNCAsBRdtMCU8ZnM_LgA3np4OY,269564
100
+ skimage/data/rocket.jpg,sha256=wt0N58U4340RHkeWGbEpRk0CadCuX9GMqR0zp_3-qVw,112525
101
+ skimage/data/text.png,sha256=vYSqOm48mIeFDUXWBslrLllDP771AzhXC2PDGeZo5tE,42704
102
+ skimage/draw/__init__.py,sha256=TjMI6gosMA2CafWXFmuObiMxykg9yCGlUAkc_j-A0UA,161
103
+ skimage/draw/__init__.pyi,sha256=dzGdH8dVkLPbpDxkcA9v7wQdAEbxHyhq1MqnWPWYLcM,963
104
+ skimage/draw/__pycache__/__init__.cpython-311.pyc,,
105
+ skimage/draw/__pycache__/_polygon2mask.cpython-311.pyc,,
106
+ skimage/draw/__pycache__/_random_shapes.cpython-311.pyc,,
107
+ skimage/draw/__pycache__/draw.cpython-311.pyc,,
108
+ skimage/draw/__pycache__/draw3d.cpython-311.pyc,,
109
+ skimage/draw/__pycache__/draw_nd.cpython-311.pyc,,
110
+ skimage/draw/_draw.cpython-311-x86_64-linux-gnu.so,sha256=Mmc_7JeSNuL4NUOtKJqBKAWbluZWKp6jARTE5zwXE5s,372280
111
+ skimage/draw/_polygon2mask.py,sha256=Y1dShd48WRbxpRqvPEvURPPxwFKaR0g-RY11_epKoyU,2472
112
+ skimage/draw/_random_shapes.py,sha256=tkB2pDoNYxoW_9VP2qUtnKeplNewLSpS6_x9J1kuBdI,16010
113
+ skimage/draw/draw.py,sha256=_C5fPVF0dwpmdAXww7r2_fX_30fv7IVobTr4vRrmj0k,33590
114
+ skimage/draw/draw3d.py,sha256=eMmpG3VNigylno7M11-pRY3BKlKSMPVChY1O5q5sV8o,3287
115
+ skimage/draw/draw_nd.py,sha256=RKG1GHjsTyXN8J2nWJGVDeoqG3srqPuqmTReZsJst_4,3692
116
+ skimage/exposure/__init__.py,sha256=8MMNgHdza2XatOj7Zf9h5xpl3O2gHeMn8N1gpIHKMJo,169
117
+ skimage/exposure/__init__.pyi,sha256=HKwoewNTdeXl1yHaCJqErXZbxT4tLpBtfjYz53PnPQk,682
118
+ skimage/exposure/__pycache__/__init__.cpython-311.pyc,,
119
+ skimage/exposure/__pycache__/_adapthist.cpython-311.pyc,,
120
+ skimage/exposure/__pycache__/exposure.cpython-311.pyc,,
121
+ skimage/exposure/__pycache__/histogram_matching.cpython-311.pyc,,
122
+ skimage/exposure/_adapthist.py,sha256=uxRzK1pMT0Gbp1dFS2W-22I8en155yqHDXwE8NodWsQ,10971
123
+ skimage/exposure/exposure.py,sha256=7GgJd3evD0xP73kD7r4PT5b44kcHBX-XJSWEMAj2ehE,27919
124
+ skimage/exposure/histogram_matching.py,sha256=Q7_OwedrtvDcPO4KTRfqq-gxD6SQXqm2NfhPmUZhZA0,3194
125
+ skimage/feature/__init__.py,sha256=paLASf66MmyJ8A1Ha8HE0WOn1GDnSioXhHIvA49gJ4g,178
126
+ skimage/feature/__init__.pyi,sha256=weDA8amsNEfeKiXUnHbRiuDCOKXt-saPei6aTkdhIw8,2148
127
+ skimage/feature/__pycache__/__init__.cpython-311.pyc,,
128
+ skimage/feature/__pycache__/_basic_features.cpython-311.pyc,,
129
+ skimage/feature/__pycache__/_canny.cpython-311.pyc,,
130
+ skimage/feature/__pycache__/_daisy.cpython-311.pyc,,
131
+ skimage/feature/__pycache__/_fisher_vector.cpython-311.pyc,,
132
+ skimage/feature/__pycache__/_hog.cpython-311.pyc,,
133
+ skimage/feature/__pycache__/_orb_descriptor_positions.cpython-311.pyc,,
134
+ skimage/feature/__pycache__/blob.cpython-311.pyc,,
135
+ skimage/feature/__pycache__/brief.cpython-311.pyc,,
136
+ skimage/feature/__pycache__/censure.cpython-311.pyc,,
137
+ skimage/feature/__pycache__/corner.cpython-311.pyc,,
138
+ skimage/feature/__pycache__/haar.cpython-311.pyc,,
139
+ skimage/feature/__pycache__/match.cpython-311.pyc,,
140
+ skimage/feature/__pycache__/orb.cpython-311.pyc,,
141
+ skimage/feature/__pycache__/peak.cpython-311.pyc,,
142
+ skimage/feature/__pycache__/sift.cpython-311.pyc,,
143
+ skimage/feature/__pycache__/template.cpython-311.pyc,,
144
+ skimage/feature/__pycache__/texture.cpython-311.pyc,,
145
+ skimage/feature/__pycache__/util.cpython-311.pyc,,
146
+ skimage/feature/_basic_features.py,sha256=_SnrTNvqqO8gSyeddlLsdLZQqJEslItmLP-3XoKVwbk,6750
147
+ skimage/feature/_canny.py,sha256=g4aAemdO553jRF04M7oSXWQDvaE9b_29eewQWbIX9GM,9466
148
+ skimage/feature/_canny_cy.cpython-311-x86_64-linux-gnu.so,sha256=pTjQvAltrhhT_89G_dtJ35Ybdrnft6MfnA7pQB7aR5w,250472
149
+ skimage/feature/_cascade.cpython-311-x86_64-linux-gnu.so,sha256=bbdlDzjAcCYiD3TRxdI9ybN0nbaPgjkD2QSYsqEuywg,330832
150
+ skimage/feature/_daisy.py,sha256=BC42Hao8q2P5MHE0syRThFRfmBa5JeGNzDG1g3Ee9MA,10064
151
+ skimage/feature/_fisher_vector.py,sha256=mNkiNAn_Dufd4p4RK4H6gBZVkTyQOg7nQsjedgE_O1E,10418
152
+ skimage/feature/_haar.cpython-311-x86_64-linux-gnu.so,sha256=2G7nd27Q5Xcp-JjOKNR6JD19pSj6rGs19JVE0Je1FsI,530984
153
+ skimage/feature/_hessian_det_appx.cpython-311-x86_64-linux-gnu.so,sha256=A0tqGMmDUCak7GZKf5qCbJDkxYn6PnQ-WUX2-4VpWjI,65424
154
+ skimage/feature/_hog.py,sha256=APuWjYzXNJId9FKAz3PXpn-g4pJfw2KDOO-rp99fqBI,13208
155
+ skimage/feature/_hoghistogram.cpython-311-x86_64-linux-gnu.so,sha256=lkogqlCAuHQhRC1BxX4RTLk6iPwvOSzArl4tAjFdaAA,258640
156
+ skimage/feature/_orb_descriptor_positions.py,sha256=zM1l5vjzmuH9QhABX2ZkgS19VoIb_7k08OzYL467anM,450
157
+ skimage/feature/_sift.cpython-311-x86_64-linux-gnu.so,sha256=48SNj_k4NSCBdXPkjB_CXVsnafJ3c9s3OW2FEFnPRk8,298600
158
+ skimage/feature/_texture.cpython-311-x86_64-linux-gnu.so,sha256=m6pDf_4RyCA-CDD1MnoLJoSbYUfEhV8s_OAzumYi_Rk,352240
159
+ skimage/feature/blob.py,sha256=mC-l17fqRJwppHkrJw8cGGEIi5pjMb5IBWrtamjsdbY,28370
160
+ skimage/feature/brief.py,sha256=sOAu-qx44Np32s0lzzAzkIt6CRpFf8h4RKdvivLYG1Y,8115
161
+ skimage/feature/brief_cy.cpython-311-x86_64-linux-gnu.so,sha256=D8W_2Cg3p7lGn4IrZ-bJJTyJLpwKQG3gIWJUR4hg5oI,223600
162
+ skimage/feature/censure.py,sha256=MVa0xj53iyr3JWPEjfDYrXaAy2ILUHV6QQm08igXrc0,12097
163
+ skimage/feature/censure_cy.cpython-311-x86_64-linux-gnu.so,sha256=RZ2CecdW5-wNpXMoU9Aa67CrTeL0lZO9vfktEAYT4yg,217736
164
+ skimage/feature/corner.py,sha256=Gnld0Kc6tuKPXSGQ-jJpRyyDkQJeiyI-d6ZVj9EEnVM,45566
165
+ skimage/feature/corner_cy.cpython-311-x86_64-linux-gnu.so,sha256=2LmtY6IzFaJ1-ULEXasflIUVpSOPmQQX8MRCin4HAhE,311592
166
+ skimage/feature/haar.py,sha256=sGtUnmD8-KGGvsK-6risY-lTH-CYL4tBrbFTGFjhPRA,12921
167
+ skimage/feature/match.py,sha256=WayyFreFmSp02NEayvsjQt4HYwUoJPftHvTj9jVZBDs,4023
168
+ skimage/feature/orb.py,sha256=Bi41N8GYP6DtYlu5vjagmD0HTy_GqdEy5mdCwj2fCq8,13148
169
+ skimage/feature/orb_cy.cpython-311-x86_64-linux-gnu.so,sha256=KKp8WgAzfJ9ojNcXTRcA00BXrL9K7dOcCGjYnZYxdWo,246712
170
+ skimage/feature/orb_descriptor_positions.txt,sha256=5lNSwCXegQMV0huO4FszyWGoPy1291cKt7Vpvddg8BE,2840
171
+ skimage/feature/peak.py,sha256=hb-0LUKtcVDz7saNV3je11VqNtOGz3lT4yaw0JdnzcM,14478
172
+ skimage/feature/sift.py,sha256=Rh7oRFE0XaA6w1emFjAxcal1Kd49AVkaXYvOi9Ktwkw,29407
173
+ skimage/feature/template.py,sha256=P8w0Wxx4voJQxMMbWGPIhled4NO9VSulT3Mf5qxEvfQ,6571
174
+ skimage/feature/texture.py,sha256=pOt1rEzszGSlvXbA4L30NgEl7r-Paw86ZjTVV9aZmWo,20544
175
+ skimage/feature/util.py,sha256=v-9dcDXtQWLO6fuH_jhr-QBdIzCk7TJbBJUI2iAdYbA,7049
176
+ skimage/filters/__init__.py,sha256=1ehkljJM7R29gbYqXS75AZ6fNba7FMttFo67IFJSpD4,165
177
+ skimage/filters/__init__.pyi,sha256=KonQ6JGwzrRlNcoG5wOUmU7ujdNQkW2G5A7Ub52DGq8,2158
178
+ skimage/filters/__pycache__/__init__.cpython-311.pyc,,
179
+ skimage/filters/__pycache__/_fft_based.cpython-311.pyc,,
180
+ skimage/filters/__pycache__/_gabor.cpython-311.pyc,,
181
+ skimage/filters/__pycache__/_gaussian.cpython-311.pyc,,
182
+ skimage/filters/__pycache__/_median.cpython-311.pyc,,
183
+ skimage/filters/__pycache__/_rank_order.cpython-311.pyc,,
184
+ skimage/filters/__pycache__/_sparse.cpython-311.pyc,,
185
+ skimage/filters/__pycache__/_unsharp_mask.cpython-311.pyc,,
186
+ skimage/filters/__pycache__/_window.cpython-311.pyc,,
187
+ skimage/filters/__pycache__/edges.cpython-311.pyc,,
188
+ skimage/filters/__pycache__/lpi_filter.cpython-311.pyc,,
189
+ skimage/filters/__pycache__/ridges.cpython-311.pyc,,
190
+ skimage/filters/__pycache__/thresholding.cpython-311.pyc,,
191
+ skimage/filters/_fft_based.py,sha256=LUwb9JlvarVhLlSP5nPacsI6C5doVlJWufTh95QqOOg,6709
192
+ skimage/filters/_gabor.py,sha256=Ag--tND24VcErppMMsTMUsIRhyCxLDUv79lT8Jyg-As,7720
193
+ skimage/filters/_gaussian.py,sha256=fyHfkvJuEptkhm9USYrZMZ6dytWK39V2HqXYi7lxDvU,6037
194
+ skimage/filters/_median.py,sha256=JdC35YKPcJxgq2k-LqYD1ghka3jh1mCD11WS5FyLYtY,2965
195
+ skimage/filters/_multiotsu.cpython-311-x86_64-linux-gnu.so,sha256=OnnaEhOPimyrU8RilZpjUlKQuPSX0uFze8Z0Ccelf_w,261840
196
+ skimage/filters/_rank_order.py,sha256=NUbi5sPtKTW-Xm6VZcwn0F5pV45yfaYDeHMEJtGy4nk,2057
197
+ skimage/filters/_sparse.py,sha256=KpvOH4LGITQdj-obrM-t-Ax0Z4LbJXNxEdCHG27XBmM,4709
198
+ skimage/filters/_unsharp_mask.py,sha256=EoJ5JHrndcgrliDsef_WcQM6O3HGnswRUUW3tLBlUYs,5511
199
+ skimage/filters/_window.py,sha256=xO_yx7DSEXTBIWwPhXlsKNirmfH6Koc7k5Us_6A1wfY,4351
200
+ skimage/filters/edges.py,sha256=MVKDqHMhfa2-mIb844A56Z1T3BCYI8GDzvEvbyS4QJE,25635
201
+ skimage/filters/lpi_filter.py,sha256=Z6SWW7EAM2Hj3sVOzQtUs9R_d7ZHwqIYAqNAdqpSOY8,7937
202
+ skimage/filters/rank/__init__.py,sha256=SFt54WGOb_evjktH87sKTcKk3i-4C2mqNN3c6nv46fw,1548
203
+ skimage/filters/rank/__pycache__/__init__.cpython-311.pyc,,
204
+ skimage/filters/rank/__pycache__/_percentile.cpython-311.pyc,,
205
+ skimage/filters/rank/__pycache__/bilateral.cpython-311.pyc,,
206
+ skimage/filters/rank/__pycache__/generic.cpython-311.pyc,,
207
+ skimage/filters/rank/_percentile.py,sha256=acsKcQl7JqFGoKwScUL_kefYiTkcAD-6s-jbU2hPuDY,14102
208
+ skimage/filters/rank/bilateral.py,sha256=Db8jn8hQEAiBH7Jlgq4NzjcpMDivLAdn7iy2NErsxUE,7846
209
+ skimage/filters/rank/bilateral_cy.cpython-311-x86_64-linux-gnu.so,sha256=aqs2fUCJgXPMFl8iuPPeKr4NCaW7WneqFKWXrmTlL9U,456248
210
+ skimage/filters/rank/core_cy.cpython-311-x86_64-linux-gnu.so,sha256=-kSeUojzcQCGn-jlqhNCsIBjCU2DmS5PNzPNBIshQDA,573416
211
+ skimage/filters/rank/core_cy_3d.cpython-311-x86_64-linux-gnu.so,sha256=WrlyMUBqb-06YAgAGgAm8AHbWB5OElzcuLmT007PNVM,348504
212
+ skimage/filters/rank/generic.py,sha256=6vZ33Gvl8JmUzms13nzeuvCdD7Q26bbNt3UE4uJ191A,55905
213
+ skimage/filters/rank/generic_cy.cpython-311-x86_64-linux-gnu.so,sha256=2_6C7hTsQDrwhQKw1M_1kJ52FoG_PCTQXc00FUBGlEs,3381624
214
+ skimage/filters/rank/percentile_cy.cpython-311-x86_64-linux-gnu.so,sha256=PdsyIDplMBoV9HwUr05SoTwtPmL9r4114zXBKaeRNig,935912
215
+ skimage/filters/ridges.py,sha256=ogeXfIZzRDVVGgqZuLn4xnveKUO5RBqzrzLVI7TPpqw,14609
216
+ skimage/filters/thresholding.py,sha256=KDaH3EDtutx9SzfZhfxOlIfoXkcsqjwOAgPCnk-2GbQ,47885
217
+ skimage/future/__init__.py,sha256=YX1ggMLn08L_Cy-UzcKlEJd1JbFjGAtWGGht705VXZE,506
218
+ skimage/future/__init__.pyi,sha256=q-RbSvWEFevrbvLiFJ44XiFL6jPKvSV-NqwVQ0FZMAk,493
219
+ skimage/future/__pycache__/__init__.cpython-311.pyc,,
220
+ skimage/future/__pycache__/manual_segmentation.cpython-311.pyc,,
221
+ skimage/future/__pycache__/trainable_segmentation.cpython-311.pyc,,
222
+ skimage/future/manual_segmentation.py,sha256=EQ-atSKTONFrnVjuGAia5XZdoKQ-Z_PtoHRGsDJY4r4,7610
223
+ skimage/future/trainable_segmentation.py,sha256=ziB_HovaKyLENPGUaCPABXoIxBh7wkOW0894qTWWFIQ,5604
224
+ skimage/graph/__init__.py,sha256=fXO5xY04KgnleV0BeITsL522zKGo4LaC7Bi6V4rh-c4,338
225
+ skimage/graph/__init__.pyi,sha256=-fh5gug7Wi0FFVl0BDxTla37aXRDOsNfmHtHC_r7HJk,782
226
+ skimage/graph/__pycache__/__init__.cpython-311.pyc,,
227
+ skimage/graph/__pycache__/_graph.cpython-311.pyc,,
228
+ skimage/graph/__pycache__/_graph_cut.cpython-311.pyc,,
229
+ skimage/graph/__pycache__/_graph_merge.cpython-311.pyc,,
230
+ skimage/graph/__pycache__/_ncut.cpython-311.pyc,,
231
+ skimage/graph/__pycache__/_rag.cpython-311.pyc,,
232
+ skimage/graph/__pycache__/mcp.cpython-311.pyc,,
233
+ skimage/graph/__pycache__/spath.cpython-311.pyc,,
234
+ skimage/graph/_graph.py,sha256=cyfQ1zvBVb2_5zW_c00yiYY4rOEzkwFBVWjor0a0uCA,9223
235
+ skimage/graph/_graph_cut.py,sha256=Y7eVSa26SKHU2hd-qcDhj7r1MPaGFuGbqzt3LAZ8vZE,10397
236
+ skimage/graph/_graph_merge.py,sha256=lrgunWZGrplz42xIDIz3IJoR4AfhzNLc_MdD5O-3tkQ,4304
237
+ skimage/graph/_mcp.cpython-311-x86_64-linux-gnu.so,sha256=Rt_elxqTZ5d4aKcLtaMhY6aImxAO9O-6mpumFQRevAo,496704
238
+ skimage/graph/_ncut.py,sha256=EmchgBgVFKaveAKMElDIcOGFOVGlrQWqb_bt-2lcy8M,1825
239
+ skimage/graph/_ncut_cy.cpython-311-x86_64-linux-gnu.so,sha256=h0zArE5Ips3JHOHZWaE6nz1R5m22eqR0K_44lPbyEnk,271888
240
+ skimage/graph/_rag.py,sha256=94INQw2RCMyhhhmkN7o2na0MEOFlbzfGx4xvqmrlgcg,20598
241
+ skimage/graph/_spath.cpython-311-x86_64-linux-gnu.so,sha256=nw6efkZxnnVbHpObI40QoZ-iGPu3PSU4C1QPT2PnJhM,242208
242
+ skimage/graph/heap.cpython-311-x86_64-linux-gnu.so,sha256=nD0ki1O-b_gyW0ffr2eBtuH7DW1J-NCwpurFJn8Edq4,122960
243
+ skimage/graph/mcp.py,sha256=1gRa1f2QhCiup4WFaaCr9YcnNHZVc8H1DoIA0oS-vVM,3182
244
+ skimage/graph/spath.py,sha256=uav6ZRcaw3O93NyLiq-EVQouZUtxK16VIYUYoWGuJNM,3399
245
+ skimage/io/__init__.py,sha256=wHwMf7uBa0rcB4BcF76XIWhbCeLYW-CyCz6_4UnDUeE,1009
246
+ skimage/io/__pycache__/__init__.cpython-311.pyc,,
247
+ skimage/io/__pycache__/_image_stack.cpython-311.pyc,,
248
+ skimage/io/__pycache__/_io.cpython-311.pyc,,
249
+ skimage/io/__pycache__/collection.cpython-311.pyc,,
250
+ skimage/io/__pycache__/manage_plugins.cpython-311.pyc,,
251
+ skimage/io/__pycache__/sift.cpython-311.pyc,,
252
+ skimage/io/__pycache__/util.cpython-311.pyc,,
253
+ skimage/io/_image_stack.py,sha256=A75v07PK6yd-5Qi60JfoaKG2esjJI5bMtlou8dNjUSc,570
254
+ skimage/io/_io.py,sha256=Lej6xNB9SmpH9bbw0P5-gFt0n3upeQ0yEGqaoM6qXqQ,8901
255
+ skimage/io/_plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
256
+ skimage/io/_plugins/__pycache__/__init__.cpython-311.pyc,,
257
+ skimage/io/_plugins/__pycache__/fits_plugin.cpython-311.pyc,,
258
+ skimage/io/_plugins/__pycache__/gdal_plugin.cpython-311.pyc,,
259
+ skimage/io/_plugins/__pycache__/imageio_plugin.cpython-311.pyc,,
260
+ skimage/io/_plugins/__pycache__/imread_plugin.cpython-311.pyc,,
261
+ skimage/io/_plugins/__pycache__/matplotlib_plugin.cpython-311.pyc,,
262
+ skimage/io/_plugins/__pycache__/pil_plugin.cpython-311.pyc,,
263
+ skimage/io/_plugins/__pycache__/simpleitk_plugin.cpython-311.pyc,,
264
+ skimage/io/_plugins/__pycache__/tifffile_plugin.cpython-311.pyc,,
265
+ skimage/io/_plugins/fits_plugin.ini,sha256=60y6Ey9etFQTf3oRxr4hAgptiBxkmNG_PpJaP5LdhR8,88
266
+ skimage/io/_plugins/fits_plugin.py,sha256=hE0QRLBX6AcTtodB9VVopw5O7U62ektN251opWSu6MQ,4407
267
+ skimage/io/_plugins/gdal_plugin.ini,sha256=Yx6iK4NqTllzpc726aXZXOlktuhm8IR28i4hfB7Qkn8,89
268
+ skimage/io/_plugins/gdal_plugin.py,sha256=oNQjajA4GUxb3swAQMf19X_XJhyY3pRdaFde145K4J4,349
269
+ skimage/io/_plugins/imageio_plugin.ini,sha256=Gi4D65yDOFzg7gRCwXYGxlJoHsvlFSEwyt1wJkedqWc,88
270
+ skimage/io/_plugins/imageio_plugin.py,sha256=d9MQzuDOWadJlfDhNptaNQJEI8sPsXWgzmwJuDxldLk,330
271
+ skimage/io/_plugins/imread_plugin.ini,sha256=yNvmnjjif85MJpwIfSheQ0IMQ86rPZuuTDjuaZZH6Pk,86
272
+ skimage/io/_plugins/imread_plugin.py,sha256=dM_Z_GsqUIbZQatLUPKJEiOC6nYQP7k3nscDyTLjJvs,956
273
+ skimage/io/_plugins/matplotlib_plugin.ini,sha256=re_KwCXXwedUEqJ749d7q6YqPDde5_RxH72M7y3PYY0,123
274
+ skimage/io/_plugins/matplotlib_plugin.py,sha256=podbloMpRsQOxGFSHzu_ySwJokRYzLkZMrG3HNjaWHQ,6463
275
+ skimage/io/_plugins/pil_plugin.ini,sha256=ZSFIMpRtr2-tUPvK_cG0xLOrPSWgw1ObRWVe8TMIJF0,91
276
+ skimage/io/_plugins/pil_plugin.py,sha256=ihMQ9IVPPTATOPATRm8L9-ro0bw-fNNlTdnIj2n48eY,7780
277
+ skimage/io/_plugins/simpleitk_plugin.ini,sha256=Zu1mh1RaPIu6vw2cSPev_T2or0DTMYZeLxyc1u7Hcig,92
278
+ skimage/io/_plugins/simpleitk_plugin.py,sha256=N2Ja-_0TpfrixNl0iEWJydrIrHgOYlzuxHkF10KrYOE,531
279
+ skimage/io/_plugins/tifffile_plugin.ini,sha256=vQpbXXPSQN242crgASKbsxqn1aDUfHwftslt9vvuSkQ,110
280
+ skimage/io/_plugins/tifffile_plugin.py,sha256=mAT73YEKXXefD2DtMqZyUioqljO4FmKRi7D5b-gHeps,2071
281
+ skimage/io/collection.py,sha256=GoXoj5LNTEIiFVA44ZIVmOug4M2eS_p2yF3q_RfoDNg,15956
282
+ skimage/io/manage_plugins.py,sha256=y7VgUqC7PHSrlnd8yeDTj_LSaNRB2mJzqlzJtPBHHz4,12327
283
+ skimage/io/sift.py,sha256=mfUV7SJhTqmxpwHXwyPMYhQT_1d6y5JloNfHgH40qnc,2561
284
+ skimage/io/util.py,sha256=7gQdn6BD2HX-R5yAI6A8GCjG3HMWzUFjzjPJD1Qa3HE,1283
285
+ skimage/measure/__init__.py,sha256=QV04vcq3E_ez4cLSw_3xjbS1ptDAzmVTeJrZ3IpdA4I,174
286
+ skimage/measure/__init__.pyi,sha256=fmXK7lqxd9G1-lCXgXKmKLO6LsmUNQ2Ydf46Zm19-FE,1906
287
+ skimage/measure/__pycache__/__init__.cpython-311.pyc,,
288
+ skimage/measure/__pycache__/_blur_effect.cpython-311.pyc,,
289
+ skimage/measure/__pycache__/_colocalization.cpython-311.pyc,,
290
+ skimage/measure/__pycache__/_find_contours.cpython-311.pyc,,
291
+ skimage/measure/__pycache__/_label.cpython-311.pyc,,
292
+ skimage/measure/__pycache__/_marching_cubes_lewiner.cpython-311.pyc,,
293
+ skimage/measure/__pycache__/_marching_cubes_lewiner_luts.cpython-311.pyc,,
294
+ skimage/measure/__pycache__/_moments.cpython-311.pyc,,
295
+ skimage/measure/__pycache__/_moments_analytical.cpython-311.pyc,,
296
+ skimage/measure/__pycache__/_polygon.cpython-311.pyc,,
297
+ skimage/measure/__pycache__/_regionprops.cpython-311.pyc,,
298
+ skimage/measure/__pycache__/_regionprops_utils.cpython-311.pyc,,
299
+ skimage/measure/__pycache__/block.cpython-311.pyc,,
300
+ skimage/measure/__pycache__/entropy.cpython-311.pyc,,
301
+ skimage/measure/__pycache__/fit.cpython-311.pyc,,
302
+ skimage/measure/__pycache__/pnpoly.cpython-311.pyc,,
303
+ skimage/measure/__pycache__/profile.cpython-311.pyc,,
304
+ skimage/measure/_blur_effect.py,sha256=mhgvLVugOfQo3iI_ZkU2_zcRVVmHEh28MxEhfVjc8oA,3324
305
+ skimage/measure/_ccomp.cpython-311-x86_64-linux-gnu.so,sha256=0QajeLAx_3yfwi_cDdzMaahJJfsdLieL6kSrGV-dSws,130304
306
+ skimage/measure/_colocalization.py,sha256=bP4bblGicAX_tH5Zd0TLmAuGXB8TnO30frBUPuUxaAU,12328
307
+ skimage/measure/_find_contours.py,sha256=9XR2aSiN9vl0WpaA0s19HzP0cbiKxd1zvg7Qaht-I6M,9585
308
+ skimage/measure/_find_contours_cy.cpython-311-x86_64-linux-gnu.so,sha256=Fbg17JFHPDnKA9QuZhvkEjbHmaJH_ctCDZF938dVWAI,226096
309
+ skimage/measure/_label.py,sha256=WoRzje_lZLblB0BSpGsb4rHifWg9ZO9u19Fudq_HmPU,3960
310
+ skimage/measure/_marching_cubes_lewiner.py,sha256=9ILNtcmZbBpGWh_IT_6p-I7sASIAthymforH6rlk9_o,12872
311
+ skimage/measure/_marching_cubes_lewiner_cy.cpython-311-x86_64-linux-gnu.so,sha256=OCAXUcXhAFADzkyHiTUhiCzQrE8cU0HeCEY1VAd_qmc,341384
312
+ skimage/measure/_marching_cubes_lewiner_luts.py,sha256=puYUThcl9gATqqmerwTqAdpqooOeMoR0oV6J_gvP5wE,27802
313
+ skimage/measure/_moments.py,sha256=XK_-ngSYMquH4cKKY3mGOfSBRvIZ0Tz5H0Oovqzp8lc,18470
314
+ skimage/measure/_moments_analytical.py,sha256=1OzL8mhKfqxfKT6Q4t4WwpFyM_1cgKlquMM7jr5LJ-Q,6563
315
+ skimage/measure/_moments_cy.cpython-311-x86_64-linux-gnu.so,sha256=4FMuoHku14wPS9y_3BycJC1rxOBiHwGVOSG5VgSW6tY,246176
316
+ skimage/measure/_pnpoly.cpython-311-x86_64-linux-gnu.so,sha256=ee2Il2KxEffDgaFPZs1Xj7SqGi_JLwraPWoixrBud8k,241240
317
+ skimage/measure/_polygon.py,sha256=JqJ9iVRdFY9rVChXKXmVY5slHtOvBCjIyGpWyEkoqr4,5268
318
+ skimage/measure/_regionprops.py,sha256=2_TpjeyR4xnay9OTc5V9QwAGoe5D88uyQh8gKDQ8MAc,54319
319
+ skimage/measure/_regionprops_utils.py,sha256=tln2t9hLjKXfdyQq0z-h2JPX4QPhgslXzXyzAWzRTyE,15999
320
+ skimage/measure/block.py,sha256=b4dhXeeaiBerPmFpNjtm52KvwRmIByPI1U-Y0S5gws4,3261
321
+ skimage/measure/entropy.py,sha256=aNypYauao_uvywjL1DewtbCDB01jrwX6BnUIAo_CbhM,1144
322
+ skimage/measure/fit.py,sha256=SEk-aMZhkfAjlUJHT8eTARKeRzSd1MUvJFeXHMMtJLk,51310
323
+ skimage/measure/pnpoly.py,sha256=jj_kpvxr3liphmBqh5GCstBW3qrfqbywxUHR_UnUgWI,2024
324
+ skimage/measure/profile.py,sha256=-r9sI9iSsu57zaFKtGc0rE5-x1W5ZgP_XleR_bAS0d0,6781
325
+ skimage/metrics/__init__.py,sha256=TWewBmmkeJ32pddMk6TfIIGK8-kWALIor7GMHx5gMJg,180
326
+ skimage/metrics/__init__.pyi,sha256=1t3MLs46xdqirO2XUiVV__auPvFJY0rAM-S1PDVoHKQ,886
327
+ skimage/metrics/__pycache__/__init__.cpython-311.pyc,,
328
+ skimage/metrics/__pycache__/_adapted_rand_error.cpython-311.pyc,,
329
+ skimage/metrics/__pycache__/_contingency_table.cpython-311.pyc,,
330
+ skimage/metrics/__pycache__/_structural_similarity.cpython-311.pyc,,
331
+ skimage/metrics/__pycache__/_variation_of_information.cpython-311.pyc,,
332
+ skimage/metrics/__pycache__/set_metrics.cpython-311.pyc,,
333
+ skimage/metrics/__pycache__/simple_metrics.cpython-311.pyc,,
334
+ skimage/metrics/_adapted_rand_error.py,sha256=zbCyRSiOGz3QCzYVLdnCDpHtvh2ZoHyCEKKQe-uHJkA,3571
335
+ skimage/metrics/_contingency_table.py,sha256=4zT07BasPCvZ-wxTPoykVAKckUyGSdUyK28Mxa29v2I,1734
336
+ skimage/metrics/_structural_similarity.py,sha256=l4HTTumNP0vDABKt06R0Dq-7ZpUtupxqWz64e9C0sKA,10422
337
+ skimage/metrics/_variation_of_information.py,sha256=Kf02JWuAOTT6N5Y9vksiUHFSuSezrHv7KwWpc8ZVLag,4254
338
+ skimage/metrics/set_metrics.py,sha256=VNcOP2w9oNrrOS0qjPkVuI8IKTG1yYliMWGlzqbVtEk,4896
339
+ skimage/metrics/simple_metrics.py,sha256=1cqqdxiOVJjhMM767wBo3AgXaIwop9p6Z4fwjuGrtJ4,8443
340
+ skimage/morphology/__init__.py,sha256=ucqm6ovsYE3vw3cLpZXHpDodnZaNtHvvtghD0p98WSI,2028
341
+ skimage/morphology/__pycache__/__init__.cpython-311.pyc,,
342
+ skimage/morphology/__pycache__/_flood_fill.cpython-311.pyc,,
343
+ skimage/morphology/__pycache__/_skeletonize.cpython-311.pyc,,
344
+ skimage/morphology/__pycache__/_util.cpython-311.pyc,,
345
+ skimage/morphology/__pycache__/binary.cpython-311.pyc,,
346
+ skimage/morphology/__pycache__/convex_hull.cpython-311.pyc,,
347
+ skimage/morphology/__pycache__/extrema.cpython-311.pyc,,
348
+ skimage/morphology/__pycache__/footprints.cpython-311.pyc,,
349
+ skimage/morphology/__pycache__/gray.cpython-311.pyc,,
350
+ skimage/morphology/__pycache__/grayreconstruct.cpython-311.pyc,,
351
+ skimage/morphology/__pycache__/isotropic.cpython-311.pyc,,
352
+ skimage/morphology/__pycache__/max_tree.cpython-311.pyc,,
353
+ skimage/morphology/__pycache__/misc.cpython-311.pyc,,
354
+ skimage/morphology/_convex_hull.cpython-311-x86_64-linux-gnu.so,sha256=Kt0SNG_AxjhD9ROSotllfwX_FTc3zK_YPNNUKzxqkZY,218208
355
+ skimage/morphology/_extrema_cy.cpython-311-x86_64-linux-gnu.so,sha256=o1LC8COP3lPSKpfnc68T9jbVRcp7AWVYMYgjeHsXkTo,314544
356
+ skimage/morphology/_flood_fill.py,sha256=349jaVevFjmsQHM6ZRRR3Z-Oi0-gelWj6WP5MILXqwk,10733
357
+ skimage/morphology/_flood_fill_cy.cpython-311-x86_64-linux-gnu.so,sha256=cZYlAXIteglJr7IHUCa966aRaRbUrsGN4FWlTfXoFy4,343736
358
+ skimage/morphology/_grayreconstruct.cpython-311-x86_64-linux-gnu.so,sha256=KhxUenvOFjGMaTcAxIMljPZkTC2Rj9Z4ezAfWHjjuZA,263136
359
+ skimage/morphology/_max_tree.cpython-311-x86_64-linux-gnu.so,sha256=eoodwj_N_BN2fsakYLhkuIhSexy8THyreySIoehAfxQ,794352
360
+ skimage/morphology/_misc_cy.cpython-311-x86_64-linux-gnu.so,sha256=rRea68HOToFml1CgFAVoPbn_H5rCk6tIrP5JFpkqXFY,313568
361
+ skimage/morphology/_skeletonize.py,sha256=nDm0COssRlhL8tlV3Z7mZWz1koRycB4-8G9kOT6fYqc,23432
362
+ skimage/morphology/_skeletonize_lee_cy.cpython-311-x86_64-linux-gnu.so,sha256=7J-6FrW6fBj0UbUleX_IoQkuo4_AUFrZjNNwavtCD2g,243512
363
+ skimage/morphology/_skeletonize_various_cy.cpython-311-x86_64-linux-gnu.so,sha256=TPCMIXWol1uo526kHGAjVOOUwgYBahL1N9CFQg2l2FU,240640
364
+ skimage/morphology/_util.py,sha256=TBba9j3tF3srL-q54cNYTRaYy3_8rPuD73v1r1i63vc,12019
365
+ skimage/morphology/ball_decompositions.npy,sha256=T561HzYf19fSLTQt7Hu5gXiiGqnJRFB_JYmLjKIT5U0,431
366
+ skimage/morphology/binary.py,sha256=UEIGKxQcX1JobLXN0cj3_SerUBSEY037QNOIpGSMSxM,13525
367
+ skimage/morphology/convex_hull.py,sha256=KiZHUk4S3NEsQQQSYaY-AKP_gcWmEW4AQzVIAEjw6R4,8420
368
+ skimage/morphology/disk_decompositions.npy,sha256=dpc557PYxwYZk2gs30WgwEiUCVL7eOMbFy2DD3545-4,881
369
+ skimage/morphology/extrema.py,sha256=9LS6UvpGSmGW2gzxPpVtEU00beb_mh8C4Y1_ua47mlE,20816
370
+ skimage/morphology/footprints.py,sha256=flz3lvtq1RJ2z_IxHDCudEriaSbiatTN6du6Z9RLB9M,42729
371
+ skimage/morphology/gray.py,sha256=GagiZCdtoH6P94D66LCSVDlltciPNNtNFlNqjR8eMC4,23604
372
+ skimage/morphology/grayreconstruct.py,sha256=-HwSfTlqe29Yp-IQmxhNQdfbJtgCHMoixj3fynFXEU0,9350
373
+ skimage/morphology/isotropic.py,sha256=IOBNfIVPWFOuVVZf2ucVk1ar5GiC4ZcYMM3e2u-LVxc,10552
374
+ skimage/morphology/max_tree.py,sha256=7ZhC3CU-L4_GTq4yd_mwLPWC1xw7-uT_lGi5wS86hnQ,26983
375
+ skimage/morphology/misc.py,sha256=rrhuKDUyURlM1_AFEA4Lodib7lcF1le8TwDUIXmQMyo,18671
376
+ skimage/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
377
+ skimage/registration/__init__.py,sha256=WGYVol8x2WxB28mx35mdliJgJ_c0JHE7baSQ4Kxqtqo,184
378
+ skimage/registration/__init__.pyi,sha256=FDJiD5iCOBzWws3vx3ON2PhpoujSvUhtcCjdArGrM74,366
379
+ skimage/registration/__pycache__/__init__.cpython-311.pyc,,
380
+ skimage/registration/__pycache__/_masked_phase_cross_correlation.cpython-311.pyc,,
381
+ skimage/registration/__pycache__/_optical_flow.cpython-311.pyc,,
382
+ skimage/registration/__pycache__/_optical_flow_utils.cpython-311.pyc,,
383
+ skimage/registration/__pycache__/_phase_cross_correlation.cpython-311.pyc,,
384
+ skimage/registration/_masked_phase_cross_correlation.py,sha256=BigH4m9EEQL0p-ZrZ9YTirNuJ9u0jbYi5YmOZKGH_30,12412
385
+ skimage/registration/_optical_flow.py,sha256=dVDHwS5GHlT_ir1_OjGieNz56RCpvC6v1pJxzLgG9U4,14547
386
+ skimage/registration/_optical_flow_utils.py,sha256=aWgyZhaeXedlmzgr614oShB_ITs__sgAdnMHpVlL4P8,3680
387
+ skimage/registration/_phase_cross_correlation.py,sha256=w36mgNtAVl4GtHp8xt4v7JPRIwyrMrpd3SgNI-69ZRI,17871
388
+ skimage/restoration/__init__.py,sha256=DgJTx8pODATVzrTsgIy0RpwL4ojH-dl6ym7w312JF-4,178
389
+ skimage/restoration/__init__.pyi,sha256=mw9Cug3REvQ1R0NveVQXbSkT-JRo6uqSp0gx4eyEG8Y,1067
390
+ skimage/restoration/__pycache__/__init__.cpython-311.pyc,,
391
+ skimage/restoration/__pycache__/_cycle_spin.cpython-311.pyc,,
392
+ skimage/restoration/__pycache__/_denoise.cpython-311.pyc,,
393
+ skimage/restoration/__pycache__/_rolling_ball.cpython-311.pyc,,
394
+ skimage/restoration/__pycache__/deconvolution.cpython-311.pyc,,
395
+ skimage/restoration/__pycache__/inpaint.cpython-311.pyc,,
396
+ skimage/restoration/__pycache__/j_invariant.cpython-311.pyc,,
397
+ skimage/restoration/__pycache__/non_local_means.cpython-311.pyc,,
398
+ skimage/restoration/__pycache__/uft.cpython-311.pyc,,
399
+ skimage/restoration/__pycache__/unwrap.cpython-311.pyc,,
400
+ skimage/restoration/_cycle_spin.py,sha256=Y_msmOTUF7eRmrew9-wheML82lJdNMAJcyJo5_zeKBE,6071
401
+ skimage/restoration/_denoise.py,sha256=iEgeCTcvKY6MCPgpft_34X9L1vFoMHB2Q59p9HFXfH8,41314
402
+ skimage/restoration/_denoise_cy.cpython-311-x86_64-linux-gnu.so,sha256=1mLMjdixPvb7aA2Mpx1hJ3qH_KOpD4mUUHyTVpnfzZA,305488
403
+ skimage/restoration/_inpaint.cpython-311-x86_64-linux-gnu.so,sha256=QisRsfD_tSlfvFF0qjBU9dbl-MH1cOCw2k_c09OjGBk,269984
404
+ skimage/restoration/_nl_means_denoising.cpython-311-x86_64-linux-gnu.so,sha256=xmOl5Vo8Szu3PYEk-D589saptOQqAYn17JT7HE6SxiU,590040
405
+ skimage/restoration/_rolling_ball.py,sha256=VXLGVq0qbkhRjucYjEzqlueBdAWpQfv3aTImjd2FQPY,7086
406
+ skimage/restoration/_rolling_ball_cy.cpython-311-x86_64-linux-gnu.so,sha256=L8pF8ljIkK3YxgNAu71l4l_pikLgDWrXWnPl7SAVThI,276168
407
+ skimage/restoration/_unwrap_1d.cpython-311-x86_64-linux-gnu.so,sha256=ePbKr_y8XVQuPxladEK63Z4C4RJMwYyZwmyOP2tdfro,213696
408
+ skimage/restoration/_unwrap_2d.cpython-311-x86_64-linux-gnu.so,sha256=deN4rl24QBkyvKrU8_GftKrWTwGsIeZWzc-flf4agQk,226624
409
+ skimage/restoration/_unwrap_3d.cpython-311-x86_64-linux-gnu.so,sha256=_Wdo3QnNt1EguNvXLjr2r7f18YfZOqGzeGC2gQPJhOc,239000
410
+ skimage/restoration/deconvolution.py,sha256=NxCcZX0xBigV6vH9Gok2v2sWY20hCVArwwo6BLQjHWw,16321
411
+ skimage/restoration/inpaint.py,sha256=pP46yWaUwb0WoSzMIC035vIXMzkRxfRjAVzE0t-vP5A,12654
412
+ skimage/restoration/j_invariant.py,sha256=AJf8m98Ywyy4-XTOtPIISa9-Dd83gFbZVYCMJgzIZ2E,12421
413
+ skimage/restoration/non_local_means.py,sha256=ftcQMALybovCQn-aJCMCsdmUtZh0BYx5dT9wAVIZFLI,7718
414
+ skimage/restoration/uft.py,sha256=MTWrdzr9x5043YYHfTB-R1LOMIdh2V_AlhavCAYMaKY,12607
415
+ skimage/restoration/unwrap.py,sha256=BxeM0cWdKpQSMCEUR2uzlI5kbTryFtk8tkLBV0zXDn0,4830
416
+ skimage/segmentation/__init__.py,sha256=Y1vmf4_ElM52P0S1frKwKTjhJjlfJ4vSKrtT0lMkwRk,174
417
+ skimage/segmentation/__init__.pyi,sha256=kpbk1PyqKdFniP3lUhiF8opduJPzWZahnoI9TbHvOVY,1522
418
+ skimage/segmentation/__pycache__/__init__.cpython-311.pyc,,
419
+ skimage/segmentation/__pycache__/_chan_vese.cpython-311.pyc,,
420
+ skimage/segmentation/__pycache__/_clear_border.cpython-311.pyc,,
421
+ skimage/segmentation/__pycache__/_expand_labels.cpython-311.pyc,,
422
+ skimage/segmentation/__pycache__/_felzenszwalb.cpython-311.pyc,,
423
+ skimage/segmentation/__pycache__/_join.cpython-311.pyc,,
424
+ skimage/segmentation/__pycache__/_quickshift.cpython-311.pyc,,
425
+ skimage/segmentation/__pycache__/_watershed.cpython-311.pyc,,
426
+ skimage/segmentation/__pycache__/active_contour_model.cpython-311.pyc,,
427
+ skimage/segmentation/__pycache__/boundaries.cpython-311.pyc,,
428
+ skimage/segmentation/__pycache__/morphsnakes.cpython-311.pyc,,
429
+ skimage/segmentation/__pycache__/random_walker_segmentation.cpython-311.pyc,,
430
+ skimage/segmentation/__pycache__/slic_superpixels.cpython-311.pyc,,
431
+ skimage/segmentation/_chan_vese.py,sha256=HHgn7gjE8dOqdAt6QM8zyyYZt1SE_EQDtp73c9Gd09I,13774
432
+ skimage/segmentation/_clear_border.py,sha256=d9JzobF-EdVq6rQh3IhcSNPDW9FJCWDyNUHSOu9fIgE,3989
433
+ skimage/segmentation/_expand_labels.py,sha256=Q8NYU2LYQO5tQ2rXKhg0xpKu-RMwI6WwA_LxrskYlUg,4201
434
+ skimage/segmentation/_felzenszwalb.py,sha256=wl6nKzjrWW_fJw-sFeLDq5fhGVtJlZEBD3W4yu8DbFs,2486
435
+ skimage/segmentation/_felzenszwalb_cy.cpython-311-x86_64-linux-gnu.so,sha256=TeUJaWtXcYq_Wo1peKhg96A71XXRipwiBrfC2_s1et4,154656
436
+ skimage/segmentation/_join.py,sha256=jR2hcXvzWBj1cVb4ipTNhKlSf0iv8W1g4lC32ARc2L4,7134
437
+ skimage/segmentation/_quickshift.py,sha256=jPSH6-X45DTnxEA_17EMo0W2fzEoVpc3G2hY_nzlzzs,3469
438
+ skimage/segmentation/_quickshift_cy.cpython-311-x86_64-linux-gnu.so,sha256=V3jpOW6JveqZPFlkSdX_5q1kK0cWITxwy39fegf4dgM,289432
439
+ skimage/segmentation/_slic.cpython-311-x86_64-linux-gnu.so,sha256=Op3WWMbO9vBqXWk0TuImKe6cD2AeX4WywHtm9AfEmu0,310656
440
+ skimage/segmentation/_watershed.py,sha256=ijTkr539lqQM0_5YOjjxlPOklUcdxibLLfcjEfs1wNY,9870
441
+ skimage/segmentation/_watershed_cy.cpython-311-x86_64-linux-gnu.so,sha256=xMyqhclS-TNPLGxOsBwYjKzjVv6M_i2N-02WxJjqur8,305808
442
+ skimage/segmentation/active_contour_model.py,sha256=4q9Wov7zc_pQDQeotzXlVLC2D-3OmPY011Lw6l_Fru4,7836
443
+ skimage/segmentation/boundaries.py,sha256=-9u_NtiBPAnQBYPSNQY6ywkR2ELNlGKNSC1cVoWBgTE,10016
444
+ skimage/segmentation/morphsnakes.py,sha256=cc7Qm7qzkYUjw4q-2hI1p5yjTrdGfXaHXg71sT0gktY,14882
445
+ skimage/segmentation/random_walker_segmentation.py,sha256=eT1p12CM98AVr4HbvWyF9dvNUBI5nN74BdkpLZvi04g,21712
446
+ skimage/segmentation/slic_superpixels.py,sha256=FLukNVkXZIEaXepIzzFJjLoG0jv2xr1lZqHtaOfGXaU,16353
447
+ skimage/transform/__init__.py,sha256=SjgjAu0K4Tya74fEiJSd5yITbVoH7pe4DGmDcgk4Vrk,1493
448
+ skimage/transform/__init__.pyi,sha256=uDxd4AETK9S_MLmnSXoTTAVNUXCy2idNbiWtW4IavPE,1981
449
+ skimage/transform/__pycache__/__init__.cpython-311.pyc,,
450
+ skimage/transform/__pycache__/_geometric.cpython-311.pyc,,
451
+ skimage/transform/__pycache__/_thin_plate_splines.cpython-311.pyc,,
452
+ skimage/transform/__pycache__/_warps.cpython-311.pyc,,
453
+ skimage/transform/__pycache__/finite_radon_transform.cpython-311.pyc,,
454
+ skimage/transform/__pycache__/hough_transform.cpython-311.pyc,,
455
+ skimage/transform/__pycache__/integral.cpython-311.pyc,,
456
+ skimage/transform/__pycache__/pyramids.cpython-311.pyc,,
457
+ skimage/transform/__pycache__/radon_transform.cpython-311.pyc,,
458
+ skimage/transform/_geometric.py,sha256=TcPS8mxT4jWBIKnjj3ASz7SK9nf2Uia4_eBNG_nUOLo,92577
459
+ skimage/transform/_hough_transform.cpython-311-x86_64-linux-gnu.so,sha256=lwxyO6KZwEHpwz5od43bt-1WSPoK13QuERf4-0AaKlQ,326792
460
+ skimage/transform/_radon_transform.cpython-311-x86_64-linux-gnu.so,sha256=K2GbhmZaZ51fAs2ylR0FCBnT9cmw8IyIz8XR7vsn-oU,263296
461
+ skimage/transform/_thin_plate_splines.py,sha256=u4DJDaI4s2k1oTVMmpfw8H8baYDHzNJrYXQX1fESKGQ,8126
462
+ skimage/transform/_warps.py,sha256=N0mm2yYscJEoXa6kVcZVz8IoR43j63vXjE0ORWTi4J4,49125
463
+ skimage/transform/_warps_cy.cpython-311-x86_64-linux-gnu.so,sha256=1VAJaxneGTs2_JuPTs23JolUpsL2N2TiY_9TK7JrR6g,285480
464
+ skimage/transform/finite_radon_transform.py,sha256=Jln0B-406LJcnpSknQui7xD-igI0-SzO57hGmCkBccw,3179
465
+ skimage/transform/hough_transform.py,sha256=pHkPWtFXDhizWm1SgoozkBJP5_Bay5xr0qsFeXwMoZg,15861
466
+ skimage/transform/integral.py,sha256=FmwuLbJWSCr9B7ljlQ2jCgIom5UFGMiQ5WlcEHwqIZU,5307
467
+ skimage/transform/pyramids.py,sha256=s6eEuuaVfT7gm2U7oPY-IfKradesoVwTKcjFoDkEemU,13357
468
+ skimage/transform/radon_transform.py,sha256=eSv6-NWUa3YiWwtrBfufKBVJPz1aK-Exr2MMqgyPZdg,20732
469
+ skimage/util/__init__.py,sha256=UYvFAYSdpnzsL4sggkfFHFIZXV7thKTvW7-N2y_uKjI,1996
470
+ skimage/util/__pycache__/__init__.cpython-311.pyc,,
471
+ skimage/util/__pycache__/_backends.cpython-311.pyc,,
472
+ skimage/util/__pycache__/_invert.cpython-311.pyc,,
473
+ skimage/util/__pycache__/_label.cpython-311.pyc,,
474
+ skimage/util/__pycache__/_map_array.cpython-311.pyc,,
475
+ skimage/util/__pycache__/_montage.cpython-311.pyc,,
476
+ skimage/util/__pycache__/_regular_grid.cpython-311.pyc,,
477
+ skimage/util/__pycache__/_slice_along_axes.cpython-311.pyc,,
478
+ skimage/util/__pycache__/apply_parallel.cpython-311.pyc,,
479
+ skimage/util/__pycache__/arraycrop.cpython-311.pyc,,
480
+ skimage/util/__pycache__/compare.cpython-311.pyc,,
481
+ skimage/util/__pycache__/dtype.cpython-311.pyc,,
482
+ skimage/util/__pycache__/lookfor.cpython-311.pyc,,
483
+ skimage/util/__pycache__/noise.cpython-311.pyc,,
484
+ skimage/util/__pycache__/shape.cpython-311.pyc,,
485
+ skimage/util/__pycache__/unique.cpython-311.pyc,,
486
+ skimage/util/_backends.py,sha256=H96GV0vEcEP5cZ_kMmnw9SIH7hW5FiM6zFJeVuVz9mA,5195
487
+ skimage/util/_invert.py,sha256=Yb-ML5OWLDxkrZ1KezI0SUUToJoiWmMDNiQ2bhMGYbw,2560
488
+ skimage/util/_label.py,sha256=jECbqvNSezRmyNjpc-RIIYK98XLoSGwz2R60aUA3QrI,1570
489
+ skimage/util/_map_array.py,sha256=qso-jsdTq4TXk6OeeqcduZHV053UV8upbRG0q6Hyz-I,6696
490
+ skimage/util/_montage.py,sha256=w4ZWCYbNo7omK-7APR4IvPVe9yGSIwMWgiiedH1Sa2Y,4753
491
+ skimage/util/_regular_grid.py,sha256=ZPzONVbwy_jK_QWlTqNUW2Wxi9yrvuJblTohugaHVYE,3889
492
+ skimage/util/_remap.cpython-311-x86_64-linux-gnu.so,sha256=7ItLp9xrmPniSLKX7xlKriI5bZbRRflBfb4yhYsiiF4,870648
493
+ skimage/util/_slice_along_axes.py,sha256=GnVxeqAjbDULUc27edh4dBHXFRvsLc0zWkdII7K-G6w,2577
494
+ skimage/util/apply_parallel.py,sha256=RmxuSK7XzT3I09W7HNpmxTeFWB6mNNXl4wlMsvZwrM0,7649
495
+ skimage/util/arraycrop.py,sha256=VY355ZEFWG0LDjdKM4Nr1EeRnp5dkfIVhhJ7fK-r-6w,2486
496
+ skimage/util/compare.py,sha256=Cpv6po1pT29hQaci-8IxfARb8nm5DVSnuo1mgdTjBiI,3119
497
+ skimage/util/dtype.py,sha256=1PmfiJZuTQ276Ao8C4rLOJBkTMX7-3B7qbWpDpEZ5ic,17701
498
+ skimage/util/lookfor.py,sha256=tPU7rswTsW6SGsBlkHYTqUlX6ke2IwbTavWWmFOoIoE,845
499
+ skimage/util/noise.py,sha256=lkRr630o8WBoICibA0qVqtGFObkSMJ2Niij__ASnWuY,8663
500
+ skimage/util/shape.py,sha256=_JqxvcCfpGSCi27jzpbmENBGBrkME6PtWPgBOOZch2s,7828
501
+ skimage/util/unique.py,sha256=ctiKRbgA7Zra5-yA58gKup0fksPuPSHYcx_O_HU711E,1516
envs/kitoverlay/scikit_image-0.26.0.dist-info/REQUESTED ADDED
File without changes
envs/kitoverlay/scikit_image-0.26.0.dist-info/WHEEL ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: meson
3
+ Root-Is-Purelib: false
4
+ Tag: cp311-cp311-manylinux_2_24_x86_64
5
+ Tag: cp311-cp311-manylinux_2_28_x86_64
6
+
envs/kitoverlay/skimage/__init__.py ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Image Processing for Python
2
+
3
+ scikit-image (a.k.a. ``skimage``) is a collection of algorithms for image
4
+ processing and computer vision.
5
+
6
+ Attributes
7
+ ----------
8
+ __version__ : str
9
+ The scikit-image version string.
10
+
11
+ Subpackages
12
+ -----------
13
+ color
14
+ Color space conversion.
15
+ data
16
+ Example images and datasets.
17
+ draw
18
+ Drawing primitives, such as lines, circles, text, etc.
19
+ exposure
20
+ Image intensity adjustment, e.g., histogram equalization, etc.
21
+ feature
22
+ Feature detection and extraction, e.g., texture analysis, corners, etc.
23
+ filters
24
+ Sharpening, edge finding, rank filters, thresholding, etc.
25
+ future
26
+ Functionality with an experimental API.
27
+ graph
28
+ Graph-based operations, e.g., shortest paths.
29
+ io
30
+ Reading and saving of images and videos.
31
+ measure
32
+ Measurement of image properties, e.g., region properties, contours.
33
+ metrics
34
+ Metrics corresponding to images, e.g., distance metrics, similarity, etc.
35
+ morphology
36
+ Morphological algorithms, e.g., closing, opening, skeletonization.
37
+ registration
38
+ Image registration algorithms, e.g., optical flow or phase cross correlation.
39
+ restoration
40
+ Restoration algorithms, e.g., deconvolution algorithms, denoising, etc.
41
+ segmentation
42
+ Algorithms to partition images into meaningful regions or boundaries.
43
+ transform
44
+ Geometric and other transformations, e.g., rotations, Radon transform.
45
+ util
46
+ Generic utilities.
47
+ """
48
+
49
+ __version__ = '0.26.0'
50
+
51
+ import lazy_loader as _lazy
52
+
53
+ __getattr__, *_ = _lazy.attach_stub(__name__, __file__)
54
+
55
+
56
+ # Don't use the `__all__` and `__dir__` returned by `attach_stubs` since that
57
+ # one would expose utility functions we don't want to advertise in our
58
+ # top-level module anymore.
59
+ __all__ = [
60
+ "__version__",
61
+ "color",
62
+ "data",
63
+ "draw",
64
+ "exposure",
65
+ "feature",
66
+ "filters",
67
+ "future",
68
+ "graph",
69
+ "io",
70
+ "measure",
71
+ "metrics",
72
+ "morphology",
73
+ "registration",
74
+ "restoration",
75
+ "segmentation",
76
+ "transform",
77
+ "util",
78
+ ]
79
+
80
+
81
+ def __dir__():
82
+ return __all__.copy()
83
+
84
+
85
+ # Logic for checking for improper install and importing while in the source
86
+ # tree when package has not been installed inplace.
87
+ # Code adapted from scikit-learn's __check_build module.
88
+ _INPLACE_MSG = """
89
+ It appears that you are importing a local scikit-image source tree. For
90
+ this, you need to have an inplace install. Maybe you are in the source
91
+ directory and you need to try from another location."""
92
+
93
+ _STANDARD_MSG = """
94
+ Your install of scikit-image appears to be broken.
95
+ Try re-installing the package following the instructions at:
96
+ https://scikit-image.org/docs/stable/user_guide/install.html"""
97
+
98
+
99
+ def _raise_build_error(e):
100
+ # Raise a comprehensible error
101
+ import os.path as osp
102
+
103
+ local_dir = osp.split(__file__)[0]
104
+ msg = _STANDARD_MSG
105
+ if local_dir == "skimage":
106
+ # Picking up the local install: this will work only if the
107
+ # install is an 'inplace build'
108
+ msg = _INPLACE_MSG
109
+ raise ImportError(
110
+ f"{e}\nIt seems that scikit-image has not been built correctly.\n{msg}"
111
+ )
112
+
113
+
114
+ def _try_append_commit_info(version):
115
+ """Append last commit date and hash to `version`, if available."""
116
+ import subprocess
117
+ from pathlib import Path
118
+
119
+ try:
120
+ output = subprocess.check_output(
121
+ ['git', 'log', '-1', '--format="%h %aI"'],
122
+ cwd=Path(__file__).parent,
123
+ text=True,
124
+ )
125
+ if output:
126
+ git_hash, git_date = (
127
+ output.strip().replace('"', '').split('T')[0].replace('-', '').split()
128
+ )
129
+ version = '+'.join(
130
+ [tag for tag in version.split('+') if not tag.startswith('git')]
131
+ )
132
+ version += f'+git{git_date}.{git_hash}'
133
+
134
+ except (FileNotFoundError, subprocess.CalledProcessError):
135
+ pass
136
+ except OSError:
137
+ pass # If skimage is built with emscripten which does not support processes
138
+
139
+ return version
140
+
141
+
142
+ if 'dev' in __version__:
143
+ __version__ = _try_append_commit_info(__version__)
144
+
145
+
146
+ from skimage._shared.tester import PytestTester as _PytestTester
147
+
148
+ test = _PytestTester(__name__)
envs/kitoverlay/skimage/__init__.pyi ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _submodules = [
2
+ 'color',
3
+ 'data',
4
+ 'draw',
5
+ 'exposure',
6
+ 'feature',
7
+ 'filters',
8
+ 'future',
9
+ 'graph',
10
+ 'io',
11
+ 'measure',
12
+ 'metrics',
13
+ 'morphology',
14
+ 'registration',
15
+ 'restoration',
16
+ 'segmentation',
17
+ 'transform',
18
+ 'util',
19
+ ]
20
+
21
+ __all__ = _submodules + ['__version__'] # noqa: F822
22
+
23
+ from . import (
24
+ color,
25
+ data,
26
+ draw,
27
+ exposure,
28
+ feature,
29
+ filters,
30
+ future,
31
+ graph,
32
+ io,
33
+ measure,
34
+ metrics,
35
+ morphology,
36
+ registration,
37
+ restoration,
38
+ segmentation,
39
+ transform,
40
+ util,
41
+ )
42
+
43
+ # Legacy imports, not advertised in __all__
44
+ from .util.dtype import (
45
+ dtype_limits,
46
+ img_as_float32,
47
+ img_as_float64,
48
+ img_as_float,
49
+ img_as_int,
50
+ img_as_uint,
51
+ img_as_ubyte,
52
+ img_as_bool,
53
+ )
54
+ from .util.lookfor import lookfor
55
+ from .data import data_dir
envs/kitoverlay/skimage/_shared/__init__.py ADDED
File without changes
envs/kitoverlay/skimage/_shared/_geometry.py ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __all__ = ['polygon_clip', 'polygon_area']
2
+
3
+ import numpy as np
4
+
5
+ from .version_requirements import require
6
+
7
+
8
+ @require("matplotlib", ">=3.3")
9
+ def polygon_clip(rp, cp, r0, c0, r1, c1):
10
+ """Clip a polygon to the given bounding box.
11
+
12
+ Parameters
13
+ ----------
14
+ rp, cp : (K,) ndarray of double
15
+ Row and column coordinates of the polygon.
16
+ (r0, c0), (r1, c1) : double
17
+ Top-left and bottom-right coordinates of the bounding box.
18
+
19
+ Returns
20
+ -------
21
+ r_clipped, c_clipped : (L,) ndarray of double
22
+ Coordinates of clipped polygon.
23
+
24
+ Notes
25
+ -----
26
+ This makes use of Sutherland-Hodgman clipping as implemented in
27
+ AGG 2.4 and exposed in Matplotlib.
28
+
29
+ """
30
+ from matplotlib import path, transforms
31
+
32
+ poly = path.Path(np.vstack((rp, cp)).T, closed=True)
33
+ clip_rect = transforms.Bbox([[r0, c0], [r1, c1]])
34
+ poly_clipped = poly.clip_to_bbox(clip_rect).to_polygons()[0]
35
+
36
+ return poly_clipped[:, 0], poly_clipped[:, 1]
37
+
38
+
39
+ def polygon_area(pr, pc):
40
+ """Compute the area of a polygon.
41
+
42
+ Parameters
43
+ ----------
44
+ pr, pc : (K,) array of float
45
+ Polygon row and column coordinates.
46
+
47
+ Returns
48
+ -------
49
+ a : float
50
+ Area of the polygon.
51
+ """
52
+ pr = np.asarray(pr)
53
+ pc = np.asarray(pc)
54
+ return 0.5 * np.abs(np.sum((pc[:-1] * pr[1:]) - (pc[1:] * pr[:-1])))
envs/kitoverlay/skimage/_shared/_tempfile.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from tempfile import NamedTemporaryFile
2
+ from contextlib import contextmanager
3
+ import os
4
+
5
+
6
+ @contextmanager
7
+ def temporary_file(suffix=''):
8
+ """Yield a writeable temporary filename that is deleted on context exit.
9
+
10
+ Parameters
11
+ ----------
12
+ suffix : str, optional
13
+ The suffix for the file.
14
+
15
+ Examples
16
+ --------
17
+ >>> import numpy as np
18
+ >>> from skimage import io
19
+ >>> with temporary_file('.tif') as tempfile:
20
+ ... im = np.arange(25, dtype=np.uint8).reshape((5, 5))
21
+ ... io.imsave(tempfile, im)
22
+ ... assert np.all(io.imread(tempfile) == im)
23
+ """
24
+ with NamedTemporaryFile(suffix=suffix, delete=False) as tempfile_stream:
25
+ tempfile = tempfile_stream.name
26
+
27
+ yield tempfile
28
+ os.remove(tempfile)
envs/kitoverlay/skimage/_shared/coord.py ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ from scipy.spatial import cKDTree, distance
3
+
4
+
5
+ def _ensure_spacing(coord, spacing, p_norm, max_out):
6
+ """Returns a subset of coord where a minimum spacing is guaranteed.
7
+
8
+ Parameters
9
+ ----------
10
+ coord : ndarray
11
+ The coordinates of the considered points.
12
+ spacing : float
13
+ the maximum allowed spacing between the points.
14
+ p_norm : float
15
+ Which Minkowski p-norm to use. Should be in the range [1, inf].
16
+ A finite large p may cause a ValueError if overflow can occur.
17
+ ``inf`` corresponds to the Chebyshev distance and 2 to the
18
+ Euclidean distance.
19
+ max_out : int
20
+ If not None, at most the first ``max_out`` candidates are
21
+ returned.
22
+
23
+ Returns
24
+ -------
25
+ output : ndarray
26
+ A subset of coord where a minimum spacing is guaranteed.
27
+
28
+ """
29
+
30
+ # Use KDtree to find the peaks that are too close to each other
31
+ tree = cKDTree(coord)
32
+
33
+ indices = tree.query_ball_point(coord, r=spacing, p=p_norm)
34
+ rejected_peaks_indices = set()
35
+ naccepted = 0
36
+ for idx, candidates in enumerate(indices):
37
+ if idx not in rejected_peaks_indices:
38
+ # keep current point and the points at exactly spacing from it
39
+ candidates.remove(idx)
40
+ dist = distance.cdist(
41
+ [coord[idx]], coord[candidates], "minkowski", p=p_norm
42
+ ).reshape(-1)
43
+ candidates = [c for c, d in zip(candidates, dist) if d < spacing]
44
+
45
+ # candidates.remove(keep)
46
+ rejected_peaks_indices.update(candidates)
47
+ naccepted += 1
48
+ if max_out is not None and naccepted >= max_out:
49
+ break
50
+
51
+ # Remove the peaks that are too close to each other
52
+ output = np.delete(coord, tuple(rejected_peaks_indices), axis=0)
53
+ if max_out is not None:
54
+ output = output[:max_out]
55
+
56
+ return output
57
+
58
+
59
+ def ensure_spacing(
60
+ coords,
61
+ spacing=1,
62
+ p_norm=np.inf,
63
+ min_split_size=50,
64
+ max_out=None,
65
+ *,
66
+ max_split_size=2000,
67
+ ):
68
+ """Returns a subset of coord where a minimum spacing is guaranteed.
69
+
70
+ Parameters
71
+ ----------
72
+ coords : array_like
73
+ The coordinates of the considered points.
74
+ spacing : float
75
+ the maximum allowed spacing between the points.
76
+ p_norm : float
77
+ Which Minkowski p-norm to use. Should be in the range [1, inf].
78
+ A finite large p may cause a ValueError if overflow can occur.
79
+ ``inf`` corresponds to the Chebyshev distance and 2 to the
80
+ Euclidean distance.
81
+ min_split_size : int
82
+ Minimum split size used to process ``coords`` by batch to save
83
+ memory. If None, the memory saving strategy is not applied.
84
+ max_out : int
85
+ If not None, only the first ``max_out`` candidates are returned.
86
+ max_split_size : int
87
+ Maximum split size used to process ``coords`` by batch to save
88
+ memory. This number was decided by profiling with a large number
89
+ of points. Too small a number results in too much looping in
90
+ Python instead of C, slowing down the process, while too large
91
+ a number results in large memory allocations, slowdowns, and,
92
+ potentially, in the process being killed -- see gh-6010. See
93
+ benchmark results `here
94
+ <https://github.com/scikit-image/scikit-image/pull/6035#discussion_r751518691>`_.
95
+
96
+ Returns
97
+ -------
98
+ output : array_like
99
+ A subset of coord where a minimum spacing is guaranteed.
100
+
101
+ """
102
+ output = coords
103
+ if len(coords):
104
+ coords = np.atleast_2d(coords)
105
+ if min_split_size is None:
106
+ batch_list = [coords]
107
+ else:
108
+ coord_count = len(coords)
109
+ split_idx = [min_split_size]
110
+ split_size = min_split_size
111
+ while coord_count - split_idx[-1] > max_split_size:
112
+ split_size *= 2
113
+ split_idx.append(split_idx[-1] + min(split_size, max_split_size))
114
+ batch_list = np.array_split(coords, split_idx)
115
+
116
+ output = np.zeros((0, coords.shape[1]), dtype=coords.dtype)
117
+ for batch in batch_list:
118
+ output = _ensure_spacing(
119
+ np.vstack([output, batch]), spacing, p_norm, max_out
120
+ )
121
+ if max_out is not None and len(output) >= max_out:
122
+ break
123
+
124
+ return output
envs/kitoverlay/skimage/_shared/fast_exp.cpython-311-x86_64-linux-gnu.so ADDED
Binary file (69.9 kB). View file
 
envs/kitoverlay/skimage/_shared/interpolation.cpython-311-x86_64-linux-gnu.so ADDED
Binary file (53.8 kB). View file
 
envs/kitoverlay/skimage/_shared/tester.py ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+
4
+
5
+ def _show_skimage_info():
6
+ import skimage
7
+
8
+ print(f"skimage version {skimage.__version__}")
9
+
10
+
11
+ class PytestTester:
12
+ """
13
+ Pytest test runner.
14
+
15
+ This class is made available in ``skimage._shared.testing``, and a test
16
+ function is typically added to a package's __init__.py like so::
17
+
18
+ from skimage._shared.testing import PytestTester
19
+ test = PytestTester(__name__)
20
+ del PytestTester
21
+
22
+ Calling this test function finds and runs all tests associated with the
23
+ module and all its sub-modules.
24
+
25
+ Attributes
26
+ ----------
27
+ module_name : str
28
+ Full path to the package to test.
29
+
30
+ Parameters
31
+ ----------
32
+ module_name : module name
33
+ The name of the module to test.
34
+
35
+ """
36
+
37
+ def __init__(self, module_name):
38
+ self.module_name = module_name
39
+
40
+ def __call__(
41
+ self,
42
+ label='fast',
43
+ verbose=1,
44
+ extra_argv=None,
45
+ doctests=False,
46
+ coverage=False,
47
+ durations=-1,
48
+ tests=None,
49
+ ):
50
+ """
51
+ Run tests for module using pytest.
52
+
53
+ Parameters
54
+ ----------
55
+ label : {'fast', 'full'}, optional
56
+ Identifies the tests to run. When set to 'fast', tests decorated
57
+ with `pytest.mark.slow` are skipped, when 'full', the slow marker
58
+ is ignored.
59
+ verbose : int, optional
60
+ Verbosity value for test outputs, in the range 1-3. Default is 1.
61
+ extra_argv : list, optional
62
+ List with any extra arguments to pass to pytests.
63
+ doctests : bool, optional
64
+ .. note:: Not supported
65
+ coverage : bool, optional
66
+ If True, report coverage of scikit-image code. Default is False.
67
+ Requires installation of (pip) pytest-cov.
68
+ durations : int, optional
69
+ If < 0, do nothing, If 0, report time of all tests, if > 0,
70
+ report the time of the slowest `timer` tests. Default is -1.
71
+ tests : test or list of tests
72
+ Tests to be executed with pytest '--pyargs'
73
+
74
+ Returns
75
+ -------
76
+ result : bool
77
+ Return True on success, false otherwise.
78
+ """
79
+ import pytest
80
+
81
+ module = sys.modules[self.module_name]
82
+ module_path = os.path.abspath(module.__path__[0])
83
+
84
+ # setup the pytest arguments
85
+ pytest_args = ["-l"]
86
+
87
+ # offset verbosity. The "-q" cancels a "-v".
88
+ pytest_args += ["-q"]
89
+
90
+ # Filter out annoying import messages. Want these in both develop and
91
+ # release mode.
92
+ pytest_args += [
93
+ "-W ignore:Not importing directory",
94
+ "-W ignore:numpy.dtype size changed",
95
+ "-W ignore:numpy.ufunc size changed",
96
+ ]
97
+
98
+ if doctests:
99
+ raise ValueError("Doctests not supported")
100
+
101
+ if extra_argv:
102
+ pytest_args += list(extra_argv)
103
+
104
+ if verbose > 1:
105
+ pytest_args += ["-" + "v" * (verbose - 1)]
106
+
107
+ if coverage:
108
+ pytest_args += ["--cov=" + module_path]
109
+
110
+ if label == "fast":
111
+ pytest_args += ["-m", "not slow"]
112
+ elif label != "full":
113
+ pytest_args += ["-m", label]
114
+
115
+ if durations >= 0:
116
+ pytest_args += [f"--durations={durations}"]
117
+
118
+ if tests is None:
119
+ tests = [self.module_name]
120
+
121
+ pytest_args += ["--pyargs"] + list(tests)
122
+
123
+ # run tests.
124
+ _show_skimage_info()
125
+
126
+ try:
127
+ code = pytest.main(pytest_args)
128
+ except SystemExit as exc:
129
+ code = exc.code
130
+
131
+ return code == 0
envs/kitoverlay/skimage/_shared/version_requirements.py ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+
3
+ from packaging import version as _version
4
+
5
+
6
+ def _check_version(actver, version, cmp_op):
7
+ """
8
+ Check version string of an active module against a required version.
9
+
10
+ If dev/prerelease tags result in TypeError for string-number comparison,
11
+ it is assumed that the dependency is satisfied.
12
+ Users on dev branches are responsible for keeping their own packages up to
13
+ date.
14
+ """
15
+ try:
16
+ if cmp_op == '>':
17
+ return _version.parse(actver) > _version.parse(version)
18
+ elif cmp_op == '>=':
19
+ return _version.parse(actver) >= _version.parse(version)
20
+ elif cmp_op == '=':
21
+ return _version.parse(actver) == _version.parse(version)
22
+ elif cmp_op == '<':
23
+ return _version.parse(actver) < _version.parse(version)
24
+ else:
25
+ return False
26
+ except TypeError:
27
+ return True
28
+
29
+
30
+ def get_module_version(module_name):
31
+ """Return module version or None if version can't be retrieved."""
32
+ mod = __import__(module_name, fromlist=[module_name.rpartition('.')[-1]])
33
+ return getattr(mod, '__version__', getattr(mod, 'VERSION', None))
34
+
35
+
36
+ def is_installed(name, version=None):
37
+ """Test if *name* is installed.
38
+
39
+ Parameters
40
+ ----------
41
+ name : str
42
+ Name of module or "python"
43
+ version : str, optional
44
+ Version string to test against.
45
+ If version is not None, checking version
46
+ (must have an attribute named '__version__' or 'VERSION')
47
+ Version may start with =, >=, > or < to specify the exact requirement
48
+
49
+ Returns
50
+ -------
51
+ out : bool
52
+ True if `name` is installed matching the optional version.
53
+ """
54
+ if name.lower() == 'python':
55
+ actver = sys.version[:6]
56
+ else:
57
+ try:
58
+ actver = get_module_version(name)
59
+ except ImportError:
60
+ return False
61
+ if version is None:
62
+ return True
63
+ else:
64
+ # since version_requirements is in the critical import path,
65
+ # we lazy import re
66
+ import re
67
+
68
+ match = re.search('[0-9]', version)
69
+ assert match is not None, "Invalid version number"
70
+ symb = version[: match.start()]
71
+ if not symb:
72
+ symb = '='
73
+ assert symb in ('>=', '>', '=', '<'), f"Invalid version condition '{symb}'"
74
+ version = version[match.start() :]
75
+ return _check_version(actver, version, symb)
76
+
77
+
78
+ def require(name, version=None):
79
+ """Return decorator that forces a requirement for a function or class.
80
+
81
+ Parameters
82
+ ----------
83
+ name : str
84
+ Name of module or "python".
85
+ version : str, optional
86
+ Version string to test against.
87
+ If version is not None, checking version
88
+ (must have an attribute named '__version__' or 'VERSION')
89
+ Version may start with =, >=, > or < to specify the exact requirement
90
+
91
+ Returns
92
+ -------
93
+ func : function
94
+ A decorator that raises an ImportError if a function is run
95
+ in the absence of the input dependency.
96
+ """
97
+ # since version_requirements is in the critical import path, we lazy import
98
+ # functools
99
+ import functools
100
+
101
+ def decorator(obj):
102
+ @functools.wraps(obj)
103
+ def func_wrapped(*args, **kwargs):
104
+ if is_installed(name, version):
105
+ return obj(*args, **kwargs)
106
+ else:
107
+ msg = f'"{obj}" in "{obj.__module__}" requires "{name}'
108
+ if version is not None:
109
+ msg += f" {version}"
110
+ raise ImportError(msg + '"')
111
+
112
+ return func_wrapped
113
+
114
+ return decorator
115
+
116
+
117
+ def get_module(module_name, version=None):
118
+ """Return a module object of name *module_name* if installed.
119
+
120
+ Parameters
121
+ ----------
122
+ module_name : str
123
+ Name of module.
124
+ version : str, optional
125
+ Version string to test against.
126
+ If version is not None, checking version
127
+ (must have an attribute named '__version__' or 'VERSION')
128
+ Version may start with =, >=, > or < to specify the exact requirement
129
+
130
+ Returns
131
+ -------
132
+ mod : module or None
133
+ Module if *module_name* is installed matching the optional version
134
+ or None otherwise.
135
+ """
136
+ if not is_installed(module_name, version):
137
+ return None
138
+ return __import__(module_name, fromlist=[module_name.rpartition('.')[-1]])
envs/kitoverlay/skimage/conftest.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ This conftest is required to set the numpy print options
3
+ to legacy mode for doctests
4
+ """
5
+
6
+ import pytest
7
+
8
+
9
+ @pytest.fixture(autouse=True)
10
+ def handle_np2():
11
+ # TODO: remove when we require numpy >= 2
12
+ try:
13
+ import numpy as np
14
+
15
+ np.set_printoptions(legacy="1.21")
16
+ except ImportError:
17
+ pass
envs/kitoverlay/skimage/future/__init__.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Functionality with an experimental API.
2
+
3
+ .. warning::
4
+ Although you can count on the functions in this package being
5
+ around in the future, the API may change with any version update
6
+ **and will not follow the skimage two-version deprecation path**.
7
+ Therefore, use the functions herein with care, and do not use them
8
+ in production code that will depend on updated skimage versions.
9
+ """
10
+
11
+ import lazy_loader as _lazy
12
+
13
+ __getattr__, __dir__, __all__ = _lazy.attach_stub(__name__, __file__)
envs/kitoverlay/skimage/future/__init__.pyi ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Explicitly setting `__all__` is necessary for type inference engines
2
+ # to know which symbols are exported. See
3
+ # https://peps.python.org/pep-0484/#stub-files
4
+
5
+ __all__ = [
6
+ "manual_lasso_segmentation",
7
+ "manual_polygon_segmentation",
8
+ "fit_segmenter",
9
+ "predict_segmenter",
10
+ "TrainableSegmenter",
11
+ ]
12
+
13
+ from .manual_segmentation import manual_lasso_segmentation, manual_polygon_segmentation
14
+ from .trainable_segmentation import TrainableSegmenter, fit_segmenter, predict_segmenter
envs/kitoverlay/skimage/future/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (769 Bytes). View file
 
envs/kitoverlay/skimage/future/__pycache__/manual_segmentation.cpython-311.pyc ADDED
Binary file (11.4 kB). View file
 
envs/kitoverlay/skimage/future/__pycache__/trainable_segmentation.cpython-311.pyc ADDED
Binary file (7.24 kB). View file
 
envs/kitoverlay/skimage/future/manual_segmentation.py ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from functools import reduce
2
+ import numpy as np
3
+ from ..draw import polygon
4
+ from .._shared.version_requirements import require
5
+
6
+
7
+ LEFT_CLICK = 1
8
+ RIGHT_CLICK = 3
9
+
10
+
11
+ def _mask_from_vertices(vertices, shape, label):
12
+ mask = np.zeros(shape, dtype=int)
13
+ pr = [y for x, y in vertices]
14
+ pc = [x for x, y in vertices]
15
+ rr, cc = polygon(pr, pc, shape)
16
+ mask[rr, cc] = label
17
+ return mask
18
+
19
+
20
+ @require("matplotlib", ">=3.3")
21
+ def _draw_polygon(ax, vertices, alpha=0.4):
22
+ from matplotlib.patches import Polygon
23
+ from matplotlib.collections import PatchCollection
24
+ import matplotlib.pyplot as plt
25
+
26
+ polygon = Polygon(vertices, closed=True)
27
+ p = PatchCollection([polygon], match_original=True, alpha=alpha)
28
+ polygon_object = ax.add_collection(p)
29
+ plt.draw()
30
+ return polygon_object
31
+
32
+
33
+ @require("matplotlib", ">=3.3")
34
+ def manual_polygon_segmentation(image, alpha=0.4, return_all=False):
35
+ """Return a label image based on polygon selections made with the mouse.
36
+
37
+ Parameters
38
+ ----------
39
+ image : (M, N[, 3]) array
40
+ Grayscale or RGB image.
41
+
42
+ alpha : float, optional
43
+ Transparency value for polygons drawn over the image.
44
+
45
+ return_all : bool, optional
46
+ If True, an array containing each separate polygon drawn is returned.
47
+ (The polygons may overlap.) If False (default), latter polygons
48
+ "overwrite" earlier ones where they overlap.
49
+
50
+ Returns
51
+ -------
52
+ labels : array of int, shape ([Q, ]M, N)
53
+ The segmented regions. If mode is `'separate'`, the leading dimension
54
+ of the array corresponds to the number of regions that the user drew.
55
+
56
+ Notes
57
+ -----
58
+ Use left click to select the vertices of the polygon
59
+ and right click to confirm the selection once all vertices are selected.
60
+
61
+ Examples
62
+ --------
63
+ >>> from skimage import data, future
64
+ >>> import matplotlib.pyplot as plt # doctest: +SKIP
65
+ >>> camera = data.camera()
66
+ >>> mask = future.manual_polygon_segmentation(camera) # doctest: +SKIP
67
+ >>> fig, ax = plt.subplots() # doctest: +SKIP
68
+ >>> ax.imshow(mask) # doctest: +SKIP
69
+ >>> plt.show() # doctest: +SKIP
70
+ """
71
+ import matplotlib
72
+ import matplotlib.pyplot as plt
73
+
74
+ list_of_vertex_lists = []
75
+ polygons_drawn = []
76
+
77
+ temp_list = []
78
+ preview_polygon_drawn = []
79
+
80
+ if image.ndim not in (2, 3):
81
+ raise ValueError('Only 2D grayscale or RGB images are supported.')
82
+
83
+ fig, ax = plt.subplots()
84
+ fig.subplots_adjust(bottom=0.2)
85
+ ax.imshow(image, cmap="gray")
86
+ ax.set_axis_off()
87
+
88
+ def _undo(*args, **kwargs):
89
+ if list_of_vertex_lists:
90
+ list_of_vertex_lists.pop()
91
+ # Remove last polygon from list of polygons...
92
+ last_poly = polygons_drawn.pop()
93
+ # ... then from the plot
94
+ last_poly.remove()
95
+ fig.canvas.draw_idle()
96
+
97
+ undo_pos = fig.add_axes([0.85, 0.05, 0.075, 0.075])
98
+ undo_button = matplotlib.widgets.Button(undo_pos, '\u27f2')
99
+ undo_button.on_clicked(_undo)
100
+
101
+ def _extend_polygon(event):
102
+ # Do not record click events outside axis or in undo button
103
+ if event.inaxes is None or event.inaxes is undo_pos:
104
+ return
105
+ # Do not record click events when toolbar is active
106
+ if ax.get_navigate_mode():
107
+ return
108
+
109
+ if event.button == LEFT_CLICK: # Select vertex
110
+ temp_list.append([event.xdata, event.ydata])
111
+ # Remove previously drawn preview polygon if any.
112
+ if preview_polygon_drawn:
113
+ poly = preview_polygon_drawn.pop()
114
+ poly.remove()
115
+
116
+ # Preview polygon with selected vertices.
117
+ polygon = _draw_polygon(ax, temp_list, alpha=(alpha / 1.4))
118
+ preview_polygon_drawn.append(polygon)
119
+
120
+ elif event.button == RIGHT_CLICK: # Confirm the selection
121
+ if not temp_list:
122
+ return
123
+
124
+ # Store the vertices of the polygon as shown in preview.
125
+ # Redraw polygon and store it in polygons_drawn so that
126
+ # `_undo` works correctly.
127
+ list_of_vertex_lists.append(temp_list[:])
128
+ polygon_object = _draw_polygon(ax, temp_list, alpha=alpha)
129
+ polygons_drawn.append(polygon_object)
130
+
131
+ # Empty the temporary variables.
132
+ preview_poly = preview_polygon_drawn.pop()
133
+ preview_poly.remove()
134
+ del temp_list[:]
135
+
136
+ plt.draw()
137
+
138
+ fig.canvas.mpl_connect('button_press_event', _extend_polygon)
139
+
140
+ plt.show(block=True)
141
+
142
+ labels = (
143
+ _mask_from_vertices(vertices, image.shape[:2], i)
144
+ for i, vertices in enumerate(list_of_vertex_lists, start=1)
145
+ )
146
+ if return_all:
147
+ return np.stack(labels)
148
+ else:
149
+ return reduce(np.maximum, labels, np.broadcast_to(0, image.shape[:2]))
150
+
151
+
152
+ @require("matplotlib", ">=3.3")
153
+ def manual_lasso_segmentation(image, alpha=0.4, return_all=False):
154
+ """Return a label image based on freeform selections made with the mouse.
155
+
156
+ Parameters
157
+ ----------
158
+ image : (M, N[, 3]) array
159
+ Grayscale or RGB image.
160
+
161
+ alpha : float, optional
162
+ Transparency value for polygons drawn over the image.
163
+
164
+ return_all : bool, optional
165
+ If True, an array containing each separate polygon drawn is returned.
166
+ (The polygons may overlap.) If False (default), latter polygons
167
+ "overwrite" earlier ones where they overlap.
168
+
169
+ Returns
170
+ -------
171
+ labels : array of int, shape ([Q, ]M, N)
172
+ The segmented regions. If mode is `'separate'`, the leading dimension
173
+ of the array corresponds to the number of regions that the user drew.
174
+
175
+ Notes
176
+ -----
177
+ Press and hold the left mouse button to draw around each object.
178
+
179
+ Examples
180
+ --------
181
+ >>> from skimage import data, future
182
+ >>> import matplotlib.pyplot as plt # doctest: +SKIP
183
+ >>> camera = data.camera()
184
+ >>> mask = future.manual_lasso_segmentation(camera) # doctest: +SKIP
185
+ >>> fig, ax = plt.subplots() # doctest: +SKIP
186
+ >>> ax.imshow(mask) # doctest: +SKIP
187
+ >>> plt.show() # doctest: +SKIP
188
+ """
189
+ import matplotlib
190
+ import matplotlib.pyplot as plt
191
+
192
+ list_of_vertex_lists = []
193
+ polygons_drawn = []
194
+
195
+ if image.ndim not in (2, 3):
196
+ raise ValueError('Only 2D grayscale or RGB images are supported.')
197
+
198
+ fig, ax = plt.subplots()
199
+ fig.subplots_adjust(bottom=0.2)
200
+ ax.imshow(image, cmap="gray")
201
+ ax.set_axis_off()
202
+
203
+ def _undo(*args, **kwargs):
204
+ if list_of_vertex_lists:
205
+ list_of_vertex_lists.pop()
206
+ # Remove last polygon from list of polygons...
207
+ last_poly = polygons_drawn.pop()
208
+ # ... then from the plot
209
+ last_poly.remove()
210
+ fig.canvas.draw_idle()
211
+
212
+ undo_pos = fig.add_axes([0.85, 0.05, 0.075, 0.075])
213
+ undo_button = matplotlib.widgets.Button(undo_pos, '\u27f2')
214
+ undo_button.on_clicked(_undo)
215
+
216
+ def _on_lasso_selection(vertices):
217
+ if len(vertices) < 3:
218
+ return
219
+ list_of_vertex_lists.append(vertices)
220
+ polygon_object = _draw_polygon(ax, vertices, alpha=alpha)
221
+ polygons_drawn.append(polygon_object)
222
+ plt.draw()
223
+
224
+ matplotlib.widgets.LassoSelector(ax, _on_lasso_selection)
225
+
226
+ plt.show(block=True)
227
+
228
+ labels = (
229
+ _mask_from_vertices(vertices, image.shape[:2], i)
230
+ for i, vertices in enumerate(list_of_vertex_lists, start=1)
231
+ )
232
+ if return_all:
233
+ return np.stack(labels)
234
+ else:
235
+ return reduce(np.maximum, labels, np.broadcast_to(0, image.shape[:2]))
envs/kitoverlay/skimage/future/trainable_segmentation.py ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from skimage.feature import multiscale_basic_features
2
+
3
+ try:
4
+ from sklearn.exceptions import NotFittedError
5
+ from sklearn.ensemble import RandomForestClassifier
6
+
7
+ has_sklearn = True
8
+ except ImportError:
9
+ has_sklearn = False
10
+
11
+ class NotFittedError(Exception):
12
+ pass
13
+
14
+
15
+ class TrainableSegmenter:
16
+ """Estimator for classifying pixels.
17
+
18
+ Parameters
19
+ ----------
20
+ clf : classifier object, optional
21
+ classifier object, exposing a ``fit`` and a ``predict`` method as in
22
+ scikit-learn's API, for example an instance of
23
+ ``RandomForestClassifier`` or ``LogisticRegression`` classifier.
24
+ features_func : function, optional
25
+ function computing features on all pixels of the image, to be passed
26
+ to the classifier. The output should be of shape
27
+ ``(m_features, *labels.shape)``. If None,
28
+ :func:`skimage.feature.multiscale_basic_features` is used.
29
+
30
+ Methods
31
+ -------
32
+ compute_features
33
+ fit
34
+ predict
35
+ """
36
+
37
+ def __init__(self, clf=None, features_func=None):
38
+ if clf is None:
39
+ if has_sklearn:
40
+ self.clf = RandomForestClassifier(n_estimators=100, n_jobs=-1)
41
+ else:
42
+ raise ImportError(
43
+ "Please install scikit-learn or pass a classifier instance"
44
+ "to TrainableSegmenter."
45
+ )
46
+ else:
47
+ self.clf = clf
48
+ self.features_func = features_func
49
+
50
+ def compute_features(self, image):
51
+ if self.features_func is None:
52
+ self.features_func = multiscale_basic_features
53
+ self.features = self.features_func(image)
54
+
55
+ def fit(self, image, labels):
56
+ """Train classifier using partially labeled (annotated) image.
57
+
58
+ Parameters
59
+ ----------
60
+ image : ndarray
61
+ Input image, which can be grayscale or multichannel, and must have a
62
+ number of dimensions compatible with ``self.features_func``.
63
+ labels : ndarray of ints
64
+ Labeled array of shape compatible with ``image`` (same shape for a
65
+ single-channel image). Labels >= 1 correspond to the training set and
66
+ label 0 to unlabeled pixels to be segmented.
67
+ """
68
+ self.compute_features(image)
69
+ fit_segmenter(labels, self.features, self.clf)
70
+
71
+ def predict(self, image):
72
+ """Segment new image using trained internal classifier.
73
+
74
+ Parameters
75
+ ----------
76
+ image : ndarray
77
+ Input image, which can be grayscale or multichannel, and must have a
78
+ number of dimensions compatible with ``self.features_func``.
79
+
80
+ Raises
81
+ ------
82
+ NotFittedError if ``self.clf`` has not been fitted yet (use ``self.fit``).
83
+ """
84
+ if self.features_func is None:
85
+ self.features_func = multiscale_basic_features
86
+ features = self.features_func(image)
87
+ return predict_segmenter(features, self.clf)
88
+
89
+
90
+ def fit_segmenter(labels, features, clf):
91
+ """Segmentation using labeled parts of the image and a classifier.
92
+
93
+ Parameters
94
+ ----------
95
+ labels : ndarray of ints
96
+ Image of labels. Labels >= 1 correspond to the training set and
97
+ label 0 to unlabeled pixels to be segmented.
98
+ features : ndarray
99
+ Array of features, with the first dimension corresponding to the number
100
+ of features, and the other dimensions correspond to ``labels.shape``.
101
+ clf : classifier object
102
+ classifier object, exposing a ``fit`` and a ``predict`` method as in
103
+ scikit-learn's API, for example an instance of
104
+ ``RandomForestClassifier`` or ``LogisticRegression`` classifier.
105
+
106
+ Returns
107
+ -------
108
+ clf : classifier object
109
+ classifier trained on ``labels``
110
+
111
+ Raises
112
+ ------
113
+ NotFittedError if ``self.clf`` has not been fitted yet (use ``self.fit``).
114
+ """
115
+ mask = labels > 0
116
+ training_data = features[mask]
117
+ training_labels = labels[mask].ravel()
118
+ clf.fit(training_data, training_labels)
119
+ return clf
120
+
121
+
122
+ def predict_segmenter(features, clf):
123
+ """Segmentation of images using a pretrained classifier.
124
+
125
+ Parameters
126
+ ----------
127
+ features : ndarray
128
+ Array of features, with the last dimension corresponding to the number
129
+ of features, and the other dimensions are compatible with the shape of
130
+ the image to segment, or a flattened image.
131
+ clf : classifier object
132
+ trained classifier object, exposing a ``predict`` method as in
133
+ scikit-learn's API, for example an instance of
134
+ ``RandomForestClassifier`` or ``LogisticRegression`` classifier. The
135
+ classifier must be already trained, for example with
136
+ :func:`skimage.future.fit_segmenter`.
137
+
138
+ Returns
139
+ -------
140
+ output : ndarray
141
+ Labeled array, built from the prediction of the classifier.
142
+ """
143
+ sh = features.shape
144
+ if features.ndim > 2:
145
+ features = features.reshape((-1, sh[-1]))
146
+
147
+ try:
148
+ predicted_labels = clf.predict(features)
149
+ except NotFittedError:
150
+ raise NotFittedError(
151
+ "You must train the classifier `clf` first"
152
+ "for example with the `fit_segmenter` function."
153
+ )
154
+ except ValueError as err:
155
+ if err.args and 'x must consist of vectors of length' in err.args[0]:
156
+ raise ValueError(
157
+ err.args[0]
158
+ + '\n'
159
+ + "Maybe you did not use the same type of features for training the classifier."
160
+ )
161
+ else:
162
+ raise err
163
+ output = predicted_labels.reshape(sh[:-1])
164
+ return output
envs/kitoverlay/skimage/py.typed ADDED
File without changes
envs/kitoverlay/tifffile/__init__.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # tifffile/__init__.py
2
+
3
+ from .tifffile import *
4
+ from .tifffile import __all__, __doc__, __version__, main
5
+
6
+ # constants are repeated for documentation
7
+
8
+ __version__ = __version__
9
+ """Tifffile version string."""
envs/kitoverlay/tifffile/__main__.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ # tifffile/__main__.py
3
+
4
+ """Display image and metadata in TIFF file."""
5
+
6
+ from __future__ import annotations
7
+
8
+ import sys
9
+
10
+ from .tifffile import main
11
+
12
+ sys.exit(main())
envs/kitoverlay/tifffile/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (330 Bytes). View file
 
envs/kitoverlay/tifffile/__pycache__/__main__.cpython-311.pyc ADDED
Binary file (446 Bytes). View file
 
envs/kitoverlay/tifffile/__pycache__/_imagecodecs.cpython-311.pyc ADDED
Binary file (17.4 kB). View file
 
envs/kitoverlay/tifffile/__pycache__/geodb.cpython-311.pyc ADDED
Binary file (73 kB). View file
 
envs/kitoverlay/tifffile/__pycache__/lsm2bin.cpython-311.pyc ADDED
Binary file (3.06 kB). View file
 
envs/kitoverlay/tifffile/__pycache__/numcodecs.cpython-311.pyc ADDED
Binary file (5.83 kB). View file
 
envs/kitoverlay/tifffile/__pycache__/tiff2fsspec.cpython-311.pyc ADDED
Binary file (4.94 kB). View file
 
envs/kitoverlay/tifffile/__pycache__/tiffcomment.cpython-311.pyc ADDED
Binary file (4.59 kB). View file
 
envs/kitoverlay/tifffile/__pycache__/zarr.cpython-311.pyc ADDED
Binary file (62.6 kB). View file
 
envs/kitoverlay/tifffile/_imagecodecs.py ADDED
@@ -0,0 +1,587 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # tifffile/_imagecodecs.py
2
+
3
+ # Copyright (c) 2008-2026, Christoph Gohlke
4
+ # All rights reserved.
5
+ #
6
+ # Redistribution and use in source and binary forms, with or without
7
+ # modification, are permitted provided that the following conditions are met:
8
+ #
9
+ # 1. Redistributions of source code must retain the above copyright notice,
10
+ # this list of conditions and the following disclaimer.
11
+ #
12
+ # 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ # this list of conditions and the following disclaimer in the documentation
14
+ # and/or other materials provided with the distribution.
15
+ #
16
+ # 3. Neither the name of the copyright holder nor the names of its
17
+ # contributors may be used to endorse or promote products derived from
18
+ # this software without specific prior written permission.
19
+ #
20
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
+ # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
24
+ # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
+ # POSSIBILITY OF SUCH DAMAGE.
31
+
32
+ """Fallback imagecodecs codecs.
33
+
34
+ This module provides alternative, pure Python and NumPy implementations of
35
+ some functions of the `imagecodecs`_ package. The functions may raise
36
+ `NotImplementedError`.
37
+
38
+ .. _imagecodecs: https://github.com/cgohlke/imagecodecs
39
+
40
+ """
41
+
42
+ from __future__ import annotations
43
+
44
+ __all__ = [
45
+ 'bitorder_decode',
46
+ 'delta_decode',
47
+ 'delta_encode',
48
+ 'float24_decode',
49
+ 'lzma_decode',
50
+ 'lzma_encode',
51
+ 'packbits_decode',
52
+ 'packints_decode',
53
+ 'packints_encode',
54
+ 'zlib_decode',
55
+ 'zlib_encode',
56
+ 'zstd_decode',
57
+ 'zstd_encode',
58
+ ]
59
+
60
+ from typing import TYPE_CHECKING, overload
61
+
62
+ import numpy
63
+
64
+ if TYPE_CHECKING:
65
+ from typing import Any, Literal
66
+
67
+ from numpy.typing import ArrayLike, DTypeLike, NDArray
68
+
69
+ try:
70
+ import lzma
71
+
72
+ def lzma_encode(
73
+ data: bytes | NDArray[Any],
74
+ /,
75
+ level: int | None = None,
76
+ *,
77
+ out: Any = None,
78
+ ) -> bytes:
79
+ """Compress LZMA.
80
+
81
+ Parameters:
82
+ data: Data to compress.
83
+ level: Compression level (currently unused).
84
+ out: Output buffer (currently unused).
85
+
86
+ """
87
+ del level, out # unused
88
+ if isinstance(data, numpy.ndarray):
89
+ data = data.tobytes()
90
+ return lzma.compress(data)
91
+
92
+ def lzma_decode(data: bytes, /, *, out: Any = None) -> bytes:
93
+ """Decompress LZMA.
94
+
95
+ Parameters:
96
+ data: Compressed data.
97
+ out: Output buffer (currently unused).
98
+
99
+ """
100
+ del out # unused
101
+ return lzma.decompress(data)
102
+
103
+ except ImportError:
104
+ # Python was built without lzma
105
+ def lzma_encode(
106
+ data: bytes | NDArray[Any],
107
+ /,
108
+ level: int | None = None,
109
+ *,
110
+ out: Any = None,
111
+ ) -> bytes:
112
+ """Raise ImportError."""
113
+ del data, level, out # unused
114
+ import lzma # noqa: F401
115
+
116
+ return b''
117
+
118
+ def lzma_decode(data: bytes, /, *, out: Any = None) -> bytes:
119
+ """Raise ImportError."""
120
+ del data, out # unused
121
+ import lzma # noqa: F401
122
+
123
+ return b''
124
+
125
+
126
+ try:
127
+ import zlib
128
+
129
+ def zlib_encode(
130
+ data: bytes | NDArray[Any],
131
+ /,
132
+ level: int | None = None,
133
+ *,
134
+ out: Any = None,
135
+ ) -> bytes:
136
+ """Compress Zlib DEFLATE.
137
+
138
+ Parameters:
139
+ data: Data to compress.
140
+ level: Compression level (0-9, default 6).
141
+ out: Output buffer (currently unused).
142
+
143
+ """
144
+ del out # unused
145
+ if isinstance(data, numpy.ndarray):
146
+ data = data.tobytes()
147
+ return zlib.compress(data, 6 if level is None else level)
148
+
149
+ def zlib_decode(data: bytes, /, *, out: Any = None) -> bytes:
150
+ """Decompress Zlib DEFLATE.
151
+
152
+ Parameters:
153
+ data: Compressed data.
154
+ out: Output buffer (currently unused).
155
+
156
+ """
157
+ del out # unused
158
+ return zlib.decompress(data)
159
+
160
+ except ImportError:
161
+ # Python was built without zlib
162
+
163
+ def zlib_encode(
164
+ data: bytes | NDArray[Any],
165
+ /,
166
+ level: int | None = None,
167
+ *,
168
+ out: Any = None,
169
+ ) -> bytes:
170
+ """Raise ImportError."""
171
+ del data, level, out # unused
172
+ import zlib # noqa: F401
173
+
174
+ return b''
175
+
176
+ def zlib_decode(data: bytes, /, *, out: Any = None) -> bytes:
177
+ """Raise ImportError."""
178
+ del data, out # unused
179
+ import zlib # noqa: F401
180
+
181
+ return b''
182
+
183
+
184
+ try:
185
+ from compression import zstd
186
+
187
+ def zstd_encode(
188
+ data: bytes | NDArray[Any],
189
+ /,
190
+ level: int | None = None,
191
+ *,
192
+ out: Any = None,
193
+ ) -> bytes:
194
+ """Compress ZSTD.
195
+
196
+ Parameters:
197
+ data: Data to compress.
198
+ level: Compression level.
199
+ out: Output buffer (currently unused).
200
+
201
+ """
202
+ del out # unused
203
+ if isinstance(data, numpy.ndarray):
204
+ data = data.tobytes()
205
+ return zstd.compress(data, level=level)
206
+
207
+ def zstd_decode(data: bytes, /, *, out: Any = None) -> bytes:
208
+ """Decompress ZSTD.
209
+
210
+ Parameters:
211
+ data: Compressed data.
212
+ out: Output buffer (currently unused).
213
+
214
+ """
215
+ del out # unused
216
+ return zstd.decompress(data)
217
+
218
+ except ImportError:
219
+ # Python was built without zstd
220
+ def zstd_encode(
221
+ data: bytes | NDArray[Any],
222
+ /,
223
+ level: int | None = None,
224
+ *,
225
+ out: Any = None,
226
+ ) -> bytes:
227
+ """Raise ImportError."""
228
+ del data, level, out # unused
229
+ from compression import zstd # noqa: F401
230
+
231
+ return b''
232
+
233
+ def zstd_decode(data: bytes, /, *, out: Any = None) -> bytes:
234
+ """Raise ImportError."""
235
+ del data, out # unused
236
+ from compression import zstd # noqa: F401
237
+
238
+ return b''
239
+
240
+
241
+ def packbits_decode(encoded: bytes, /, *, out: Any = None) -> bytes:
242
+ r"""Decompress PackBits encoded byte string.
243
+
244
+ Parameters:
245
+ encoded: PackBits encoded byte string.
246
+ out: Output buffer (currently unused).
247
+
248
+ Returns:
249
+ Decompressed byte string.
250
+
251
+ Examples:
252
+ >>> packbits_decode(b'\x80\x80') # NOP
253
+ b''
254
+ >>> packbits_decode(b'\x02123')
255
+ b'123'
256
+ >>> packbits_decode(
257
+ ... b'\xfe\xaa\x02\x80\x00\x2a\xfd\xaa\x03\x80\x00\x2a\x22\xf7\xaa'
258
+ ... )[:-5]
259
+ b'\xaa\xaa\xaa\x80\x00*\xaa\xaa\xaa\xaa\x80\x00*"\xaa\xaa\xaa\xaa\xaa'
260
+
261
+ """
262
+ del out # unused
263
+ out = []
264
+ out_extend = out.extend
265
+ i = 0
266
+ try:
267
+ while True:
268
+ n = ord(encoded[i : i + 1]) + 1
269
+ i += 1
270
+ if n > 129:
271
+ # replicate
272
+ out_extend(encoded[i : i + 1] * (258 - n))
273
+ i += 1
274
+ elif n < 129:
275
+ # literal
276
+ out_extend(encoded[i : i + n])
277
+ i += n
278
+ except TypeError:
279
+ pass
280
+ return bytes(out)
281
+
282
+
283
+ @overload
284
+ def delta_encode(
285
+ data: bytes | bytearray,
286
+ /,
287
+ axis: int = -1,
288
+ dist: int = 1,
289
+ *,
290
+ out: Any = None,
291
+ ) -> bytes: ...
292
+
293
+
294
+ @overload
295
+ def delta_encode(
296
+ data: NDArray[Any], /, axis: int = -1, dist: int = 1, *, out: Any = None
297
+ ) -> NDArray[Any]: ...
298
+
299
+
300
+ def delta_encode(
301
+ data: bytes | bytearray | NDArray[Any],
302
+ /,
303
+ axis: int = -1,
304
+ dist: int = 1,
305
+ *,
306
+ out: Any = None,
307
+ ) -> bytes | NDArray[Any]:
308
+ """Encode Delta.
309
+
310
+ Encode differences between consecutive samples along axis.
311
+
312
+ Parameters:
313
+ data: Data to encode.
314
+ axis: Axis along which to compute differences (default -1).
315
+ dist: Distance between samples (only dist=1 is supported).
316
+ out: Output buffer (currently unused).
317
+
318
+ Returns:
319
+ Encoded data.
320
+ Returns bytes for bytes/bytearray input, numpy array otherwise.
321
+
322
+ """
323
+ del out # unused
324
+ if dist != 1:
325
+ msg = f"delta_encode with {dist=} requires the 'imagecodecs' package"
326
+ raise NotImplementedError(msg)
327
+ if isinstance(data, (bytes, bytearray)):
328
+ data = numpy.frombuffer(data, dtype=numpy.uint8)
329
+ diff = numpy.diff(data, axis=0)
330
+ return numpy.insert(diff, 0, data[0]).tobytes()
331
+
332
+ dtype = data.dtype
333
+ if dtype.kind == 'f':
334
+ data = data.view(f'{dtype.byteorder}u{dtype.itemsize}')
335
+ diff = numpy.diff(data, axis=axis)
336
+ key: list[int | slice] = [slice(None)] * data.ndim
337
+ key[axis] = 0
338
+ diff = numpy.insert(diff, 0, data[tuple(key)], axis=axis)
339
+ if not data.dtype.isnative:
340
+ diff = diff.byteswap(inplace=True)
341
+ diff = diff.view(diff.dtype.newbyteorder())
342
+ if dtype.kind == 'f':
343
+ return diff.view(dtype)
344
+ return diff
345
+
346
+
347
+ @overload
348
+ def delta_decode(
349
+ data: bytes | bytearray, /, axis: int, dist: int, *, out: Any
350
+ ) -> bytes: ...
351
+
352
+
353
+ @overload
354
+ def delta_decode(
355
+ data: NDArray[Any], /, axis: int, dist: int, *, out: Any
356
+ ) -> NDArray[Any]: ...
357
+
358
+
359
+ def delta_decode(
360
+ data: bytes | bytearray | NDArray[Any],
361
+ /,
362
+ axis: int = -1,
363
+ dist: int = 1,
364
+ *,
365
+ out: Any = None,
366
+ ) -> bytes | NDArray[Any]:
367
+ """Decode Delta.
368
+
369
+ Decode delta-encoded data by computing cumulative sum along axis.
370
+
371
+ Parameters:
372
+ data: Encoded data.
373
+ axis: Axis along which to compute cumulative sum (default -1).
374
+ dist: Distance between samples (only dist=1 is supported).
375
+ out: Output buffer for results.
376
+
377
+ Returns:
378
+ Decoded data.
379
+ Returns bytes for bytes/bytearray input, numpy array otherwise.
380
+
381
+ """
382
+ if dist != 1:
383
+ msg = f"delta_decode with {dist=} requires the 'imagecodecs' package"
384
+ raise NotImplementedError(msg)
385
+ if out is not None and not out.flags.writeable:
386
+ out = None
387
+ if isinstance(data, (bytes, bytearray)):
388
+ data = numpy.frombuffer(data, dtype=numpy.uint8)
389
+ return numpy.cumsum( # type: ignore[no-any-return]
390
+ data, axis=0, dtype=numpy.uint8, out=out
391
+ ).tobytes()
392
+ if data.dtype.kind == 'f':
393
+ if not data.dtype.isnative:
394
+ msg = (
395
+ f'delta_decode with {data.dtype!r} '
396
+ "requires the 'imagecodecs' package"
397
+ )
398
+ raise NotImplementedError(msg)
399
+ view = data.view(f'{data.dtype.byteorder}u{data.dtype.itemsize}')
400
+ view = numpy.cumsum(view, axis=axis, dtype=view.dtype)
401
+ return view.view(data.dtype)
402
+ return numpy.cumsum( # type: ignore[no-any-return]
403
+ data, axis=axis, dtype=data.dtype, out=out
404
+ )
405
+
406
+
407
+ @overload
408
+ def bitorder_decode(
409
+ data: bytearray,
410
+ /,
411
+ *,
412
+ out: Any = None,
413
+ _bitorder: list[Any] = [], # noqa: B006
414
+ ) -> bytearray: ...
415
+
416
+
417
+ @overload
418
+ def bitorder_decode(
419
+ data: bytes,
420
+ /,
421
+ *,
422
+ out: Any = None,
423
+ _bitorder: list[Any] = [], # noqa: B006
424
+ ) -> bytes: ...
425
+
426
+
427
+ @overload
428
+ def bitorder_decode(
429
+ data: NDArray[Any],
430
+ /,
431
+ *,
432
+ out: Any = None,
433
+ _bitorder: list[Any] = [], # noqa: B006
434
+ ) -> NDArray[Any]: ...
435
+
436
+
437
+ def bitorder_decode(
438
+ data: bytes | bytearray | NDArray[Any],
439
+ /,
440
+ *,
441
+ out: Any = None,
442
+ _bitorder: list[Any] = [], # noqa: B006
443
+ ) -> bytes | bytearray | NDArray[Any]:
444
+ r"""Reverse bits in each byte of bytes or numpy array.
445
+
446
+ Decode data where pixels with lower column values are stored in the
447
+ lower-order bits of the bytes (TIFF FillOrder is LSB2MSB).
448
+
449
+ Parameters:
450
+ data:
451
+ Data to be bit-reversed.
452
+ If bytes type, a new bit-reversed bytes is returned.
453
+ NumPy arrays are bit-reversed in-place.
454
+ out:
455
+ Output buffer (currently unused).
456
+ _bitorder:
457
+ Internal caching parameter (not for public use).
458
+
459
+ Examples:
460
+ >>> bitorder_decode(b'\x01\x64')
461
+ b'\x80&'
462
+ >>> data = numpy.array([1, 666], dtype='uint16')
463
+ >>> _ = bitorder_decode(data)
464
+ >>> data
465
+ array([ 128, 16473], dtype=uint16)
466
+
467
+ """
468
+ del out # unused
469
+ if not _bitorder:
470
+ _bitorder.append(
471
+ b'\x00\x80@\xc0 \xa0`\xe0\x10\x90P\xd00\xb0p\xf0\x08\x88H'
472
+ b'\xc8(\xa8h\xe8\x18\x98X\xd88\xb8x\xf8\x04\x84D\xc4$\xa4d'
473
+ b'\xe4\x14\x94T\xd44\xb4t\xf4\x0c\x8cL\xcc,\xacl\xec\x1c\x9c'
474
+ b'\\\xdc<\xbc|\xfc\x02\x82B\xc2"\xa2b\xe2\x12\x92R\xd22'
475
+ b'\xb2r\xf2\n\x8aJ\xca*\xaaj\xea\x1a\x9aZ\xda:\xbaz\xfa'
476
+ b'\x06\x86F\xc6&\xa6f\xe6\x16\x96V\xd66\xb6v\xf6\x0e\x8eN'
477
+ b'\xce.\xaen\xee\x1e\x9e^\xde>\xbe~\xfe\x01\x81A\xc1!\xa1a'
478
+ b'\xe1\x11\x91Q\xd11\xb1q\xf1\t\x89I\xc9)\xa9i\xe9\x19'
479
+ b'\x99Y\xd99\xb9y\xf9\x05\x85E\xc5%\xa5e\xe5\x15\x95U\xd55'
480
+ b'\xb5u\xf5\r\x8dM\xcd-\xadm\xed\x1d\x9d]\xdd=\xbd}\xfd'
481
+ b'\x03\x83C\xc3#\xa3c\xe3\x13\x93S\xd33\xb3s\xf3\x0b\x8bK'
482
+ b"\xcb+\xabk\xeb\x1b\x9b[\xdb;\xbb{\xfb\x07\x87G\xc7'\xa7g"
483
+ b'\xe7\x17\x97W\xd77\xb7w\xf7\x0f\x8fO\xcf/\xafo\xef\x1f\x9f_'
484
+ b'\xdf?\xbf\x7f\xff'
485
+ )
486
+ _bitorder.append(numpy.frombuffer(_bitorder[0], dtype=numpy.uint8))
487
+ if isinstance(data, (bytes, bytearray)):
488
+ return data.translate(_bitorder[0])
489
+ try:
490
+ view = data.view('uint8')
491
+ numpy.take(_bitorder[1], view, out=view)
492
+ except ValueError as exc:
493
+ msg = "bitorder_decode of slices requires the 'imagecodecs' package"
494
+ raise NotImplementedError(msg) from exc
495
+ return data
496
+
497
+
498
+ def packints_decode(
499
+ data: bytes,
500
+ /,
501
+ dtype: DTypeLike | None,
502
+ bitspersample: int,
503
+ runlen: int = 0,
504
+ *,
505
+ out: Any = None,
506
+ ) -> NDArray[Any]:
507
+ """Decompress bytes to array of integers.
508
+
509
+ This implementation only handles itemsizes 1, 8, 16, 32, and 64 bits.
510
+ Install the Imagecodecs package for decoding other integer sizes.
511
+
512
+ Parameters:
513
+ data:
514
+ Data to decompress.
515
+ dtype:
516
+ Numpy boolean or integer type.
517
+ bitspersample:
518
+ Number of bits per integer.
519
+ runlen:
520
+ Number of consecutive integers after which to start at next byte.
521
+ out:
522
+ Output buffer (currently unused).
523
+
524
+ Returns:
525
+ Array of unpacked integers.
526
+
527
+ Examples:
528
+ >>> packints_decode(b'a', 'B', 1)
529
+ array([0, 1, 1, 0, 0, 0, 0, 1], dtype=uint8)
530
+
531
+ """
532
+ del out # unused
533
+ if bitspersample == 1: # bitarray
534
+ data_array = numpy.frombuffer(data, '|B')
535
+ data_array = numpy.unpackbits(data_array)
536
+ if runlen > 0 and runlen % 8:
537
+ data_array = data_array.reshape((-1, runlen + (8 - runlen % 8)))
538
+ data_array = data_array[:, :runlen].reshape(-1)
539
+ return data_array.astype(dtype)
540
+ if bitspersample in (8, 16, 32, 64):
541
+ return numpy.frombuffer(data, dtype)
542
+ msg = (
543
+ f'packints_decode of {bitspersample}-bit integers '
544
+ "requires the 'imagecodecs' package"
545
+ )
546
+ raise NotImplementedError(msg)
547
+
548
+
549
+ def packints_encode(
550
+ data: ArrayLike,
551
+ bitspersample: int,
552
+ /,
553
+ *,
554
+ axis: int = -1,
555
+ out: Any = None,
556
+ ) -> bytes | bytearray:
557
+ """Tightly pack integers.
558
+
559
+ Parameters:
560
+ data: Array of integers to pack.
561
+ bitspersample: Number of bits per integer.
562
+ axis: Axis along which to pack.
563
+ out: Output buffer.
564
+
565
+ Returns:
566
+ Packed byte string.
567
+
568
+ """
569
+ msg = "packints_encode requires the 'imagecodecs' package"
570
+ raise NotImplementedError(msg)
571
+
572
+
573
+ def float24_decode(
574
+ data: bytes, /, byteorder: Literal['>', '<']
575
+ ) -> NDArray[Any]:
576
+ """Return float32 array from float24.
577
+
578
+ Parameters:
579
+ data: Bytes containing float24 values.
580
+ byteorder: Byte order, either '>' (big-endian) or '<' (little-endian).
581
+
582
+ Returns:
583
+ Array of float32 values.
584
+
585
+ """
586
+ msg = "float24_decode requires the 'imagecodecs' package"
587
+ raise NotImplementedError(msg)
envs/kitoverlay/tifffile/geodb.py ADDED
@@ -0,0 +1,2080 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # tifffile/geodb.py
2
+
3
+ """GeoTIFF GeoKey Database.
4
+
5
+ Adapted from http://gis.ess.washington.edu/data/raster/drg/docs/geotiff.txt
6
+
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ import enum
12
+
13
+
14
+ class GeoKeys(enum.IntEnum):
15
+ """Geo keys."""
16
+
17
+ GTModelTypeGeoKey = 1024
18
+ GTRasterTypeGeoKey = 1025
19
+ GTCitationGeoKey = 1026
20
+ GeographicTypeGeoKey = 2048
21
+ GeogCitationGeoKey = 2049
22
+ GeogGeodeticDatumGeoKey = 2050
23
+ GeogPrimeMeridianGeoKey = 2051
24
+ GeogLinearUnitsGeoKey = 2052
25
+ GeogLinearUnitSizeGeoKey = 2053
26
+ GeogAngularUnitsGeoKey = 2054
27
+ GeogAngularUnitsSizeGeoKey = 2055
28
+ GeogEllipsoidGeoKey = 2056
29
+ GeogSemiMajorAxisGeoKey = 2057
30
+ GeogSemiMinorAxisGeoKey = 2058
31
+ GeogInvFlatteningGeoKey = 2059
32
+ GeogAzimuthUnitsGeoKey = 2060
33
+ GeogPrimeMeridianLongGeoKey = 2061
34
+ GeogTOWGS84GeoKey = 2062
35
+ ProjLinearUnitsInterpCorrectGeoKey = 3059 # GDAL
36
+ ProjectedCSTypeGeoKey = 3072
37
+ PCSCitationGeoKey = 3073
38
+ ProjectionGeoKey = 3074
39
+ ProjCoordTransGeoKey = 3075
40
+ ProjLinearUnitsGeoKey = 3076
41
+ ProjLinearUnitSizeGeoKey = 3077
42
+ ProjStdParallel1GeoKey = 3078
43
+ ProjStdParallel2GeoKey = 3079
44
+ ProjNatOriginLongGeoKey = 3080
45
+ ProjNatOriginLatGeoKey = 3081
46
+ ProjFalseEastingGeoKey = 3082
47
+ ProjFalseNorthingGeoKey = 3083
48
+ ProjFalseOriginLongGeoKey = 3084
49
+ ProjFalseOriginLatGeoKey = 3085
50
+ ProjFalseOriginEastingGeoKey = 3086
51
+ ProjFalseOriginNorthingGeoKey = 3087
52
+ ProjCenterLongGeoKey = 3088
53
+ ProjCenterLatGeoKey = 3089
54
+ ProjCenterEastingGeoKey = 3090
55
+ ProjCenterNorthingGeoKey = 3091
56
+ ProjScaleAtNatOriginGeoKey = 3092
57
+ ProjScaleAtCenterGeoKey = 3093
58
+ ProjAzimuthAngleGeoKey = 3094
59
+ ProjStraightVertPoleLongGeoKey = 3095
60
+ ProjRectifiedGridAngleGeoKey = 3096
61
+ VerticalCSTypeGeoKey = 4096
62
+ VerticalCitationGeoKey = 4097
63
+ VerticalDatumGeoKey = 4098
64
+ VerticalUnitsGeoKey = 4099
65
+
66
+
67
+ class Proj(enum.IntEnum):
68
+ """Projection Codes."""
69
+
70
+ Undefined = 0
71
+ User_Defined = 32767
72
+ Alabama_CS27_East = 10101
73
+ Alabama_CS27_West = 10102
74
+ Alabama_CS83_East = 10131
75
+ Alabama_CS83_West = 10132
76
+ Arizona_Coordinate_System_east = 10201
77
+ Arizona_Coordinate_System_Central = 10202
78
+ Arizona_Coordinate_System_west = 10203
79
+ Arizona_CS83_east = 10231
80
+ Arizona_CS83_Central = 10232
81
+ Arizona_CS83_west = 10233
82
+ Arkansas_CS27_North = 10301
83
+ Arkansas_CS27_South = 10302
84
+ Arkansas_CS83_North = 10331
85
+ Arkansas_CS83_South = 10332
86
+ California_CS27_I = 10401
87
+ California_CS27_II = 10402
88
+ California_CS27_III = 10403
89
+ California_CS27_IV = 10404
90
+ California_CS27_V = 10405
91
+ California_CS27_VI = 10406
92
+ California_CS27_VII = 10407
93
+ California_CS83_1 = 10431
94
+ California_CS83_2 = 10432
95
+ California_CS83_3 = 10433
96
+ California_CS83_4 = 10434
97
+ California_CS83_5 = 10435
98
+ California_CS83_6 = 10436
99
+ Colorado_CS27_North = 10501
100
+ Colorado_CS27_Central = 10502
101
+ Colorado_CS27_South = 10503
102
+ Colorado_CS83_North = 10531
103
+ Colorado_CS83_Central = 10532
104
+ Colorado_CS83_South = 10533
105
+ Connecticut_CS27 = 10600
106
+ Connecticut_CS83 = 10630
107
+ Delaware_CS27 = 10700
108
+ Delaware_CS83 = 10730
109
+ Florida_CS27_East = 10901
110
+ Florida_CS27_West = 10902
111
+ Florida_CS27_North = 10903
112
+ Florida_CS83_East = 10931
113
+ Florida_CS83_West = 10932
114
+ Florida_CS83_North = 10933
115
+ Georgia_CS27_East = 11001
116
+ Georgia_CS27_West = 11002
117
+ Georgia_CS83_East = 11031
118
+ Georgia_CS83_West = 11032
119
+ Idaho_CS27_East = 11101
120
+ Idaho_CS27_Central = 11102
121
+ Idaho_CS27_West = 11103
122
+ Idaho_CS83_East = 11131
123
+ Idaho_CS83_Central = 11132
124
+ Idaho_CS83_West = 11133
125
+ Illinois_CS27_East = 11201
126
+ Illinois_CS27_West = 11202
127
+ Illinois_CS83_East = 11231
128
+ Illinois_CS83_West = 11232
129
+ Indiana_CS27_East = 11301
130
+ Indiana_CS27_West = 11302
131
+ Indiana_CS83_East = 11331
132
+ Indiana_CS83_West = 11332
133
+ Iowa_CS27_North = 11401
134
+ Iowa_CS27_South = 11402
135
+ Iowa_CS83_North = 11431
136
+ Iowa_CS83_South = 11432
137
+ Kansas_CS27_North = 11501
138
+ Kansas_CS27_South = 11502
139
+ Kansas_CS83_North = 11531
140
+ Kansas_CS83_South = 11532
141
+ Kentucky_CS27_North = 11601
142
+ Kentucky_CS27_South = 11602
143
+ Kentucky_CS83_North = 15303
144
+ Kentucky_CS83_South = 11632
145
+ Louisiana_CS27_North = 11701
146
+ Louisiana_CS27_South = 11702
147
+ Louisiana_CS83_North = 11731
148
+ Louisiana_CS83_South = 11732
149
+ Maine_CS27_East = 11801
150
+ Maine_CS27_West = 11802
151
+ Maine_CS83_East = 11831
152
+ Maine_CS83_West = 11832
153
+ Maryland_CS27 = 11900
154
+ Maryland_CS83 = 11930
155
+ Massachusetts_CS27_Mainland = 12001
156
+ Massachusetts_CS27_Island = 12002
157
+ Massachusetts_CS83_Mainland = 12031
158
+ Massachusetts_CS83_Island = 12032
159
+ Michigan_State_Plane_East = 12101
160
+ Michigan_State_Plane_Old_Central = 12102
161
+ Michigan_State_Plane_West = 12103
162
+ Michigan_CS27_North = 12111
163
+ Michigan_CS27_Central = 12112
164
+ Michigan_CS27_South = 12113
165
+ Michigan_CS83_North = 12141
166
+ Michigan_CS83_Central = 12142
167
+ Michigan_CS83_South = 12143
168
+ Minnesota_CS27_North = 12201
169
+ Minnesota_CS27_Central = 12202
170
+ Minnesota_CS27_South = 12203
171
+ Minnesota_CS83_North = 12231
172
+ Minnesota_CS83_Central = 12232
173
+ Minnesota_CS83_South = 12233
174
+ Mississippi_CS27_East = 12301
175
+ Mississippi_CS27_West = 12302
176
+ Mississippi_CS83_East = 12331
177
+ Mississippi_CS83_West = 12332
178
+ Missouri_CS27_East = 12401
179
+ Missouri_CS27_Central = 12402
180
+ Missouri_CS27_West = 12403
181
+ Missouri_CS83_East = 12431
182
+ Missouri_CS83_Central = 12432
183
+ Missouri_CS83_West = 12433
184
+ Montana_CS27_North = 12501
185
+ Montana_CS27_Central = 12502
186
+ Montana_CS27_South = 12503
187
+ Montana_CS83 = 12530
188
+ Nebraska_CS27_North = 12601
189
+ Nebraska_CS27_South = 12602
190
+ Nebraska_CS83 = 12630
191
+ Nevada_CS27_East = 12701
192
+ Nevada_CS27_Central = 12702
193
+ Nevada_CS27_West = 12703
194
+ Nevada_CS83_East = 12731
195
+ Nevada_CS83_Central = 12732
196
+ Nevada_CS83_West = 12733
197
+ New_Hampshire_CS27 = 12800
198
+ New_Hampshire_CS83 = 12830
199
+ New_Jersey_CS27 = 12900
200
+ New_Jersey_CS83 = 12930
201
+ New_Mexico_CS27_East = 13001
202
+ New_Mexico_CS27_Central = 13002
203
+ New_Mexico_CS27_West = 13003
204
+ New_Mexico_CS83_East = 13031
205
+ New_Mexico_CS83_Central = 13032
206
+ New_Mexico_CS83_West = 13033
207
+ New_York_CS27_East = 13101
208
+ New_York_CS27_Central = 13102
209
+ New_York_CS27_West = 13103
210
+ New_York_CS27_Long_Island = 13104
211
+ New_York_CS83_East = 13131
212
+ New_York_CS83_Central = 13132
213
+ New_York_CS83_West = 13133
214
+ New_York_CS83_Long_Island = 13134
215
+ North_Carolina_CS27 = 13200
216
+ North_Carolina_CS83 = 13230
217
+ North_Dakota_CS27_North = 13301
218
+ North_Dakota_CS27_South = 13302
219
+ North_Dakota_CS83_North = 13331
220
+ North_Dakota_CS83_South = 13332
221
+ Ohio_CS27_North = 13401
222
+ Ohio_CS27_South = 13402
223
+ Ohio_CS83_North = 13431
224
+ Ohio_CS83_South = 13432
225
+ Oklahoma_CS27_North = 13501
226
+ Oklahoma_CS27_South = 13502
227
+ Oklahoma_CS83_North = 13531
228
+ Oklahoma_CS83_South = 13532
229
+ Oregon_CS27_North = 13601
230
+ Oregon_CS27_South = 13602
231
+ Oregon_CS83_North = 13631
232
+ Oregon_CS83_South = 13632
233
+ Pennsylvania_CS27_North = 13701
234
+ Pennsylvania_CS27_South = 13702
235
+ Pennsylvania_CS83_North = 13731
236
+ Pennsylvania_CS83_South = 13732
237
+ Rhode_Island_CS27 = 13800
238
+ Rhode_Island_CS83 = 13830
239
+ South_Carolina_CS27_North = 13901
240
+ South_Carolina_CS27_South = 13902
241
+ South_Carolina_CS83 = 13930
242
+ South_Dakota_CS27_North = 14001
243
+ South_Dakota_CS27_South = 14002
244
+ South_Dakota_CS83_North = 14031
245
+ South_Dakota_CS83_South = 14032
246
+ Tennessee_CS27 = 15302
247
+ Tennessee_CS83 = 14130
248
+ Texas_CS27_North = 14201
249
+ Texas_CS27_North_Central = 14202
250
+ Texas_CS27_Central = 14203
251
+ Texas_CS27_South_Central = 14204
252
+ Texas_CS27_South = 14205
253
+ Texas_CS83_North = 14231
254
+ Texas_CS83_North_Central = 14232
255
+ Texas_CS83_Central = 14233
256
+ Texas_CS83_South_Central = 14234
257
+ Texas_CS83_South = 14235
258
+ Utah_CS27_North = 14301
259
+ Utah_CS27_Central = 14302
260
+ Utah_CS27_South = 14303
261
+ Utah_CS83_North = 14331
262
+ Utah_CS83_Central = 14332
263
+ Utah_CS83_South = 14333
264
+ Vermont_CS27 = 14400
265
+ Vermont_CS83 = 14430
266
+ Virginia_CS27_North = 14501
267
+ Virginia_CS27_South = 14502
268
+ Virginia_CS83_North = 14531
269
+ Virginia_CS83_South = 14532
270
+ Washington_CS27_North = 14601
271
+ Washington_CS27_South = 14602
272
+ Washington_CS83_North = 14631
273
+ Washington_CS83_South = 14632
274
+ West_Virginia_CS27_North = 14701
275
+ West_Virginia_CS27_South = 14702
276
+ West_Virginia_CS83_North = 14731
277
+ West_Virginia_CS83_South = 14732
278
+ Wisconsin_CS27_North = 14801
279
+ Wisconsin_CS27_Central = 14802
280
+ Wisconsin_CS27_South = 14803
281
+ Wisconsin_CS83_North = 14831
282
+ Wisconsin_CS83_Central = 14832
283
+ Wisconsin_CS83_South = 14833
284
+ Wyoming_CS27_East = 14901
285
+ Wyoming_CS27_East_Central = 14902
286
+ Wyoming_CS27_West_Central = 14903
287
+ Wyoming_CS27_West = 14904
288
+ Wyoming_CS83_East = 14931
289
+ Wyoming_CS83_East_Central = 14932
290
+ Wyoming_CS83_West_Central = 14933
291
+ Wyoming_CS83_West = 14934
292
+ Alaska_CS27_1 = 15001
293
+ Alaska_CS27_2 = 15002
294
+ Alaska_CS27_3 = 15003
295
+ Alaska_CS27_4 = 15004
296
+ Alaska_CS27_5 = 15005
297
+ Alaska_CS27_6 = 15006
298
+ Alaska_CS27_7 = 15007
299
+ Alaska_CS27_8 = 15008
300
+ Alaska_CS27_9 = 15009
301
+ Alaska_CS27_10 = 15010
302
+ Alaska_CS83_1 = 15031
303
+ Alaska_CS83_2 = 15032
304
+ Alaska_CS83_3 = 15033
305
+ Alaska_CS83_4 = 15034
306
+ Alaska_CS83_5 = 15035
307
+ Alaska_CS83_6 = 15036
308
+ Alaska_CS83_7 = 15037
309
+ Alaska_CS83_8 = 15038
310
+ Alaska_CS83_9 = 15039
311
+ Alaska_CS83_10 = 15040
312
+ Hawaii_CS27_1 = 15101
313
+ Hawaii_CS27_2 = 15102
314
+ Hawaii_CS27_3 = 15103
315
+ Hawaii_CS27_4 = 15104
316
+ Hawaii_CS27_5 = 15105
317
+ Hawaii_CS83_1 = 15131
318
+ Hawaii_CS83_2 = 15132
319
+ Hawaii_CS83_3 = 15133
320
+ Hawaii_CS83_4 = 15134
321
+ Hawaii_CS83_5 = 15135
322
+ Puerto_Rico_CS27 = 15201
323
+ St_Croix = 15202
324
+ Puerto_Rico_Virgin_Is = 15230
325
+ BLM_14N_feet = 15914
326
+ BLM_15N_feet = 15915
327
+ BLM_16N_feet = 15916
328
+ BLM_17N_feet = 15917
329
+ UTM_zone_1N = 16001
330
+ UTM_zone_2N = 16002
331
+ UTM_zone_3N = 16003
332
+ UTM_zone_4N = 16004
333
+ UTM_zone_5N = 16005
334
+ UTM_zone_6N = 16006
335
+ UTM_zone_7N = 16007
336
+ UTM_zone_8N = 16008
337
+ UTM_zone_9N = 16009
338
+ UTM_zone_10N = 16010
339
+ UTM_zone_11N = 16011
340
+ UTM_zone_12N = 16012
341
+ UTM_zone_13N = 16013
342
+ UTM_zone_14N = 16014
343
+ UTM_zone_15N = 16015
344
+ UTM_zone_16N = 16016
345
+ UTM_zone_17N = 16017
346
+ UTM_zone_18N = 16018
347
+ UTM_zone_19N = 16019
348
+ UTM_zone_20N = 16020
349
+ UTM_zone_21N = 16021
350
+ UTM_zone_22N = 16022
351
+ UTM_zone_23N = 16023
352
+ UTM_zone_24N = 16024
353
+ UTM_zone_25N = 16025
354
+ UTM_zone_26N = 16026
355
+ UTM_zone_27N = 16027
356
+ UTM_zone_28N = 16028
357
+ UTM_zone_29N = 16029
358
+ UTM_zone_30N = 16030
359
+ UTM_zone_31N = 16031
360
+ UTM_zone_32N = 16032
361
+ UTM_zone_33N = 16033
362
+ UTM_zone_34N = 16034
363
+ UTM_zone_35N = 16035
364
+ UTM_zone_36N = 16036
365
+ UTM_zone_37N = 16037
366
+ UTM_zone_38N = 16038
367
+ UTM_zone_39N = 16039
368
+ UTM_zone_40N = 16040
369
+ UTM_zone_41N = 16041
370
+ UTM_zone_42N = 16042
371
+ UTM_zone_43N = 16043
372
+ UTM_zone_44N = 16044
373
+ UTM_zone_45N = 16045
374
+ UTM_zone_46N = 16046
375
+ UTM_zone_47N = 16047
376
+ UTM_zone_48N = 16048
377
+ UTM_zone_49N = 16049
378
+ UTM_zone_50N = 16050
379
+ UTM_zone_51N = 16051
380
+ UTM_zone_52N = 16052
381
+ UTM_zone_53N = 16053
382
+ UTM_zone_54N = 16054
383
+ UTM_zone_55N = 16055
384
+ UTM_zone_56N = 16056
385
+ UTM_zone_57N = 16057
386
+ UTM_zone_58N = 16058
387
+ UTM_zone_59N = 16059
388
+ UTM_zone_60N = 16060
389
+ UTM_zone_1S = 16101
390
+ UTM_zone_2S = 16102
391
+ UTM_zone_3S = 16103
392
+ UTM_zone_4S = 16104
393
+ UTM_zone_5S = 16105
394
+ UTM_zone_6S = 16106
395
+ UTM_zone_7S = 16107
396
+ UTM_zone_8S = 16108
397
+ UTM_zone_9S = 16109
398
+ UTM_zone_10S = 16110
399
+ UTM_zone_11S = 16111
400
+ UTM_zone_12S = 16112
401
+ UTM_zone_13S = 16113
402
+ UTM_zone_14S = 16114
403
+ UTM_zone_15S = 16115
404
+ UTM_zone_16S = 16116
405
+ UTM_zone_17S = 16117
406
+ UTM_zone_18S = 16118
407
+ UTM_zone_19S = 16119
408
+ UTM_zone_20S = 16120
409
+ UTM_zone_21S = 16121
410
+ UTM_zone_22S = 16122
411
+ UTM_zone_23S = 16123
412
+ UTM_zone_24S = 16124
413
+ UTM_zone_25S = 16125
414
+ UTM_zone_26S = 16126
415
+ UTM_zone_27S = 16127
416
+ UTM_zone_28S = 16128
417
+ UTM_zone_29S = 16129
418
+ UTM_zone_30S = 16130
419
+ UTM_zone_31S = 16131
420
+ UTM_zone_32S = 16132
421
+ UTM_zone_33S = 16133
422
+ UTM_zone_34S = 16134
423
+ UTM_zone_35S = 16135
424
+ UTM_zone_36S = 16136
425
+ UTM_zone_37S = 16137
426
+ UTM_zone_38S = 16138
427
+ UTM_zone_39S = 16139
428
+ UTM_zone_40S = 16140
429
+ UTM_zone_41S = 16141
430
+ UTM_zone_42S = 16142
431
+ UTM_zone_43S = 16143
432
+ UTM_zone_44S = 16144
433
+ UTM_zone_45S = 16145
434
+ UTM_zone_46S = 16146
435
+ UTM_zone_47S = 16147
436
+ UTM_zone_48S = 16148
437
+ UTM_zone_49S = 16149
438
+ UTM_zone_50S = 16150
439
+ UTM_zone_51S = 16151
440
+ UTM_zone_52S = 16152
441
+ UTM_zone_53S = 16153
442
+ UTM_zone_54S = 16154
443
+ UTM_zone_55S = 16155
444
+ UTM_zone_56S = 16156
445
+ UTM_zone_57S = 16157
446
+ UTM_zone_58S = 16158
447
+ UTM_zone_59S = 16159
448
+ UTM_zone_60S = 16160
449
+ Gauss_Kruger_zone_0 = 16200
450
+ Gauss_Kruger_zone_1 = 16201
451
+ Gauss_Kruger_zone_2 = 16202
452
+ Gauss_Kruger_zone_3 = 16203
453
+ Gauss_Kruger_zone_4 = 16204
454
+ Gauss_Kruger_zone_5 = 16205
455
+ Map_Grid_of_Australia_48 = 17348
456
+ Map_Grid_of_Australia_49 = 17349
457
+ Map_Grid_of_Australia_50 = 17350
458
+ Map_Grid_of_Australia_51 = 17351
459
+ Map_Grid_of_Australia_52 = 17352
460
+ Map_Grid_of_Australia_53 = 17353
461
+ Map_Grid_of_Australia_54 = 17354
462
+ Map_Grid_of_Australia_55 = 17355
463
+ Map_Grid_of_Australia_56 = 17356
464
+ Map_Grid_of_Australia_57 = 17357
465
+ Map_Grid_of_Australia_58 = 17358
466
+ Australian_Map_Grid_48 = 17448
467
+ Australian_Map_Grid_49 = 17449
468
+ Australian_Map_Grid_50 = 17450
469
+ Australian_Map_Grid_51 = 17451
470
+ Australian_Map_Grid_52 = 17452
471
+ Australian_Map_Grid_53 = 17453
472
+ Australian_Map_Grid_54 = 17454
473
+ Australian_Map_Grid_55 = 17455
474
+ Australian_Map_Grid_56 = 17456
475
+ Australian_Map_Grid_57 = 17457
476
+ Australian_Map_Grid_58 = 17458
477
+ Argentina_1 = 18031
478
+ Argentina_2 = 18032
479
+ Argentina_3 = 18033
480
+ Argentina_4 = 18034
481
+ Argentina_5 = 18035
482
+ Argentina_6 = 18036
483
+ Argentina_7 = 18037
484
+ Colombia_3W = 18051
485
+ Colombia_Bogota = 18052
486
+ Colombia_3E = 18053
487
+ Colombia_6E = 18054
488
+ Egypt_Red_Belt = 18072
489
+ Egypt_Purple_Belt = 18073
490
+ Extended_Purple_Belt = 18074
491
+ New_Zealand_North_Island_Nat_Grid = 18141
492
+ New_Zealand_South_Island_Nat_Grid = 18142
493
+ Bahrain_Grid = 19900
494
+ Netherlands_E_Indies_Equatorial = 19905
495
+ RSO_Borneo = 19912
496
+ Stereo_70 = 19926
497
+
498
+
499
+ class PCS(enum.IntEnum):
500
+ """Projected CS Type Codes."""
501
+
502
+ Undefined = 0
503
+ User_Defined = 32767
504
+ Adindan_UTM_zone_37N = 20137
505
+ Adindan_UTM_zone_38N = 20138
506
+ AGD66_AMG_zone_48 = 20248
507
+ AGD66_AMG_zone_49 = 20249
508
+ AGD66_AMG_zone_50 = 20250
509
+ AGD66_AMG_zone_51 = 20251
510
+ AGD66_AMG_zone_52 = 20252
511
+ AGD66_AMG_zone_53 = 20253
512
+ AGD66_AMG_zone_54 = 20254
513
+ AGD66_AMG_zone_55 = 20255
514
+ AGD66_AMG_zone_56 = 20256
515
+ AGD66_AMG_zone_57 = 20257
516
+ AGD66_AMG_zone_58 = 20258
517
+ AGD84_AMG_zone_48 = 20348
518
+ AGD84_AMG_zone_49 = 20349
519
+ AGD84_AMG_zone_50 = 20350
520
+ AGD84_AMG_zone_51 = 20351
521
+ AGD84_AMG_zone_52 = 20352
522
+ AGD84_AMG_zone_53 = 20353
523
+ AGD84_AMG_zone_54 = 20354
524
+ AGD84_AMG_zone_55 = 20355
525
+ AGD84_AMG_zone_56 = 20356
526
+ AGD84_AMG_zone_57 = 20357
527
+ AGD84_AMG_zone_58 = 20358
528
+ Ain_el_Abd_UTM_zone_37N = 20437
529
+ Ain_el_Abd_UTM_zone_38N = 20438
530
+ Ain_el_Abd_UTM_zone_39N = 20439
531
+ Ain_el_Abd_Bahrain_Grid = 20499
532
+ Afgooye_UTM_zone_38N = 20538
533
+ Afgooye_UTM_zone_39N = 20539
534
+ Lisbon_Portugese_Grid = 20700
535
+ Aratu_UTM_zone_22S = 20822
536
+ Aratu_UTM_zone_23S = 20823
537
+ Aratu_UTM_zone_24S = 20824
538
+ Arc_1950_Lo13 = 20973
539
+ Arc_1950_Lo15 = 20975
540
+ Arc_1950_Lo17 = 20977
541
+ Arc_1950_Lo19 = 20979
542
+ Arc_1950_Lo21 = 20981
543
+ Arc_1950_Lo23 = 20983
544
+ Arc_1950_Lo25 = 20985
545
+ Arc_1950_Lo27 = 20987
546
+ Arc_1950_Lo29 = 20989
547
+ Arc_1950_Lo31 = 20991
548
+ Arc_1950_Lo33 = 20993
549
+ Arc_1950_Lo35 = 20995
550
+ Batavia_NEIEZ = 21100
551
+ Batavia_UTM_zone_48S = 21148
552
+ Batavia_UTM_zone_49S = 21149
553
+ Batavia_UTM_zone_50S = 21150
554
+ Beijing_Gauss_zone_13 = 21413
555
+ Beijing_Gauss_zone_14 = 21414
556
+ Beijing_Gauss_zone_15 = 21415
557
+ Beijing_Gauss_zone_16 = 21416
558
+ Beijing_Gauss_zone_17 = 21417
559
+ Beijing_Gauss_zone_18 = 21418
560
+ Beijing_Gauss_zone_19 = 21419
561
+ Beijing_Gauss_zone_20 = 21420
562
+ Beijing_Gauss_zone_21 = 21421
563
+ Beijing_Gauss_zone_22 = 21422
564
+ Beijing_Gauss_zone_23 = 21423
565
+ Beijing_Gauss_13N = 21473
566
+ Beijing_Gauss_14N = 21474
567
+ Beijing_Gauss_15N = 21475
568
+ Beijing_Gauss_16N = 21476
569
+ Beijing_Gauss_17N = 21477
570
+ Beijing_Gauss_18N = 21478
571
+ Beijing_Gauss_19N = 21479
572
+ Beijing_Gauss_20N = 21480
573
+ Beijing_Gauss_21N = 21481
574
+ Beijing_Gauss_22N = 21482
575
+ Beijing_Gauss_23N = 21483
576
+ Belge_Lambert_50 = 21500
577
+ Bern_1898_Swiss_Old = 21790
578
+ Bogota_UTM_zone_17N = 21817
579
+ Bogota_UTM_zone_18N = 21818
580
+ Bogota_Colombia_3W = 21891
581
+ Bogota_Colombia_Bogota = 21892
582
+ Bogota_Colombia_3E = 21893
583
+ Bogota_Colombia_6E = 21894
584
+ Camacupa_UTM_32S = 22032
585
+ Camacupa_UTM_33S = 22033
586
+ C_Inchauspe_Argentina_1 = 22191
587
+ C_Inchauspe_Argentina_2 = 22192
588
+ C_Inchauspe_Argentina_3 = 22193
589
+ C_Inchauspe_Argentina_4 = 22194
590
+ C_Inchauspe_Argentina_5 = 22195
591
+ C_Inchauspe_Argentina_6 = 22196
592
+ C_Inchauspe_Argentina_7 = 22197
593
+ Carthage_UTM_zone_32N = 22332
594
+ Carthage_Nord_Tunisie = 22391
595
+ Carthage_Sud_Tunisie = 22392
596
+ Corrego_Alegre_UTM_23S = 22523
597
+ Corrego_Alegre_UTM_24S = 22524
598
+ Douala_UTM_zone_32N = 22832
599
+ Egypt_1907_Red_Belt = 22992
600
+ Egypt_1907_Purple_Belt = 22993
601
+ Egypt_1907_Ext_Purple = 22994
602
+ ED50_UTM_zone_28N = 23028
603
+ ED50_UTM_zone_29N = 23029
604
+ ED50_UTM_zone_30N = 23030
605
+ ED50_UTM_zone_31N = 23031
606
+ ED50_UTM_zone_32N = 23032
607
+ ED50_UTM_zone_33N = 23033
608
+ ED50_UTM_zone_34N = 23034
609
+ ED50_UTM_zone_35N = 23035
610
+ ED50_UTM_zone_36N = 23036
611
+ ED50_UTM_zone_37N = 23037
612
+ ED50_UTM_zone_38N = 23038
613
+ Fahud_UTM_zone_39N = 23239
614
+ Fahud_UTM_zone_40N = 23240
615
+ Garoua_UTM_zone_33N = 23433
616
+ ID74_UTM_zone_46N = 23846
617
+ ID74_UTM_zone_47N = 23847
618
+ ID74_UTM_zone_48N = 23848
619
+ ID74_UTM_zone_49N = 23849
620
+ ID74_UTM_zone_50N = 23850
621
+ ID74_UTM_zone_51N = 23851
622
+ ID74_UTM_zone_52N = 23852
623
+ ID74_UTM_zone_53N = 23853
624
+ ID74_UTM_zone_46S = 23886
625
+ ID74_UTM_zone_47S = 23887
626
+ ID74_UTM_zone_48S = 23888
627
+ ID74_UTM_zone_49S = 23889
628
+ ID74_UTM_zone_50S = 23890
629
+ ID74_UTM_zone_51S = 23891
630
+ ID74_UTM_zone_52S = 23892
631
+ ID74_UTM_zone_53S = 23893
632
+ ID74_UTM_zone_54S = 23894
633
+ Indian_1954_UTM_47N = 23947
634
+ Indian_1954_UTM_48N = 23948
635
+ Indian_1975_UTM_47N = 24047
636
+ Indian_1975_UTM_48N = 24048
637
+ Jamaica_1875_Old_Grid = 24100
638
+ JAD69_Jamaica_Grid = 24200
639
+ Kalianpur_India_0 = 24370
640
+ Kalianpur_India_I = 24371
641
+ Kalianpur_India_IIa = 24372
642
+ Kalianpur_India_IIIa = 24373
643
+ Kalianpur_India_IVa = 24374
644
+ Kalianpur_India_IIb = 24382
645
+ Kalianpur_India_IIIb = 24383
646
+ Kalianpur_India_IVb = 24384
647
+ Kertau_Singapore_Grid = 24500
648
+ Kertau_UTM_zone_47N = 24547
649
+ Kertau_UTM_zone_48N = 24548
650
+ La_Canoa_UTM_zone_20N = 24720
651
+ La_Canoa_UTM_zone_21N = 24721
652
+ PSAD56_UTM_zone_18N = 24818
653
+ PSAD56_UTM_zone_19N = 24819
654
+ PSAD56_UTM_zone_20N = 24820
655
+ PSAD56_UTM_zone_21N = 24821
656
+ PSAD56_UTM_zone_17S = 24877
657
+ PSAD56_UTM_zone_18S = 24878
658
+ PSAD56_UTM_zone_19S = 24879
659
+ PSAD56_UTM_zone_20S = 24880
660
+ PSAD56_Peru_west_zone = 24891
661
+ PSAD56_Peru_central = 24892
662
+ PSAD56_Peru_east_zone = 24893
663
+ Leigon_Ghana_Grid = 25000
664
+ Lome_UTM_zone_31N = 25231
665
+ Luzon_Philippines_I = 25391
666
+ Luzon_Philippines_II = 25392
667
+ Luzon_Philippines_III = 25393
668
+ Luzon_Philippines_IV = 25394
669
+ Luzon_Philippines_V = 25395
670
+ Makassar_NEIEZ = 25700
671
+ Malongo_1987_UTM_32S = 25932
672
+ Merchich_Nord_Maroc = 26191
673
+ Merchich_Sud_Maroc = 26192
674
+ Merchich_Sahara = 26193
675
+ Massawa_UTM_zone_37N = 26237
676
+ Minna_UTM_zone_31N = 26331
677
+ Minna_UTM_zone_32N = 26332
678
+ Minna_Nigeria_West = 26391
679
+ Minna_Nigeria_Mid_Belt = 26392
680
+ Minna_Nigeria_East = 26393
681
+ Mhast_UTM_zone_32S = 26432
682
+ Monte_Mario_Italy_1 = 26591
683
+ Monte_Mario_Italy_2 = 26592
684
+ M_poraloko_UTM_32N = 26632
685
+ M_poraloko_UTM_32S = 26692
686
+ NAD27_UTM_zone_3N = 26703
687
+ NAD27_UTM_zone_4N = 26704
688
+ NAD27_UTM_zone_5N = 26705
689
+ NAD27_UTM_zone_6N = 26706
690
+ NAD27_UTM_zone_7N = 26707
691
+ NAD27_UTM_zone_8N = 26708
692
+ NAD27_UTM_zone_9N = 26709
693
+ NAD27_UTM_zone_10N = 26710
694
+ NAD27_UTM_zone_11N = 26711
695
+ NAD27_UTM_zone_12N = 26712
696
+ NAD27_UTM_zone_13N = 26713
697
+ NAD27_UTM_zone_14N = 26714
698
+ NAD27_UTM_zone_15N = 26715
699
+ NAD27_UTM_zone_16N = 26716
700
+ NAD27_UTM_zone_17N = 26717
701
+ NAD27_UTM_zone_18N = 26718
702
+ NAD27_UTM_zone_19N = 26719
703
+ NAD27_UTM_zone_20N = 26720
704
+ NAD27_UTM_zone_21N = 26721
705
+ NAD27_UTM_zone_22N = 26722
706
+ NAD27_Alabama_East = 26729
707
+ NAD27_Alabama_West = 26730
708
+ NAD27_Alaska_zone_1 = 26731
709
+ NAD27_Alaska_zone_2 = 26732
710
+ NAD27_Alaska_zone_3 = 26733
711
+ NAD27_Alaska_zone_4 = 26734
712
+ NAD27_Alaska_zone_5 = 26735
713
+ NAD27_Alaska_zone_6 = 26736
714
+ NAD27_Alaska_zone_7 = 26737
715
+ NAD27_Alaska_zone_8 = 26738
716
+ NAD27_Alaska_zone_9 = 26739
717
+ NAD27_Alaska_zone_10 = 26740
718
+ NAD27_California_I = 26741
719
+ NAD27_California_II = 26742
720
+ NAD27_California_III = 26743
721
+ NAD27_California_IV = 26744
722
+ NAD27_California_V = 26745
723
+ NAD27_California_VI = 26746
724
+ NAD27_California_VII = 26747
725
+ NAD27_Arizona_East = 26748
726
+ NAD27_Arizona_Central = 26749
727
+ NAD27_Arizona_West = 26750
728
+ NAD27_Arkansas_North = 26751
729
+ NAD27_Arkansas_South = 26752
730
+ NAD27_Colorado_North = 26753
731
+ NAD27_Colorado_Central = 26754
732
+ NAD27_Colorado_South = 26755
733
+ NAD27_Connecticut = 26756
734
+ NAD27_Delaware = 26757
735
+ NAD27_Florida_East = 26758
736
+ NAD27_Florida_West = 26759
737
+ NAD27_Florida_North = 26760
738
+ NAD27_Hawaii_zone_1 = 26761
739
+ NAD27_Hawaii_zone_2 = 26762
740
+ NAD27_Hawaii_zone_3 = 26763
741
+ NAD27_Hawaii_zone_4 = 26764
742
+ NAD27_Hawaii_zone_5 = 26765
743
+ NAD27_Georgia_East = 26766
744
+ NAD27_Georgia_West = 26767
745
+ NAD27_Idaho_East = 26768
746
+ NAD27_Idaho_Central = 26769
747
+ NAD27_Idaho_West = 26770
748
+ NAD27_Illinois_East = 26771
749
+ NAD27_Illinois_West = 26772
750
+ NAD27_Indiana_East = 26773
751
+ NAD27_BLM_14N_feet = 26774
752
+ NAD27_Indiana_West = 26774
753
+ NAD27_BLM_15N_feet = 26775
754
+ NAD27_Iowa_North = 26775
755
+ NAD27_BLM_16N_feet = 26776
756
+ NAD27_Iowa_South = 26776
757
+ NAD27_BLM_17N_feet = 26777
758
+ NAD27_Kansas_North = 26777
759
+ NAD27_Kansas_South = 26778
760
+ NAD27_Kentucky_North = 26779
761
+ NAD27_Kentucky_South = 26780
762
+ NAD27_Louisiana_North = 26781
763
+ NAD27_Louisiana_South = 26782
764
+ NAD27_Maine_East = 26783
765
+ NAD27_Maine_West = 26784
766
+ NAD27_Maryland = 26785
767
+ NAD27_Massachusetts = 26786
768
+ NAD27_Massachusetts_Is = 26787
769
+ NAD27_Michigan_North = 26788
770
+ NAD27_Michigan_Central = 26789
771
+ NAD27_Michigan_South = 26790
772
+ NAD27_Minnesota_North = 26791
773
+ NAD27_Minnesota_Cent = 26792
774
+ NAD27_Minnesota_South = 26793
775
+ NAD27_Mississippi_East = 26794
776
+ NAD27_Mississippi_West = 26795
777
+ NAD27_Missouri_East = 26796
778
+ NAD27_Missouri_Central = 26797
779
+ NAD27_Missouri_West = 26798
780
+ NAD_Michigan_Michigan_East = 26801
781
+ NAD_Michigan_Michigan_Old_Central = 26802
782
+ NAD_Michigan_Michigan_West = 26803
783
+ NAD83_UTM_zone_3N = 26903
784
+ NAD83_UTM_zone_4N = 26904
785
+ NAD83_UTM_zone_5N = 26905
786
+ NAD83_UTM_zone_6N = 26906
787
+ NAD83_UTM_zone_7N = 26907
788
+ NAD83_UTM_zone_8N = 26908
789
+ NAD83_UTM_zone_9N = 26909
790
+ NAD83_UTM_zone_10N = 26910
791
+ NAD83_UTM_zone_11N = 26911
792
+ NAD83_UTM_zone_12N = 26912
793
+ NAD83_UTM_zone_13N = 26913
794
+ NAD83_UTM_zone_14N = 26914
795
+ NAD83_UTM_zone_15N = 26915
796
+ NAD83_UTM_zone_16N = 26916
797
+ NAD83_UTM_zone_17N = 26917
798
+ NAD83_UTM_zone_18N = 26918
799
+ NAD83_UTM_zone_19N = 26919
800
+ NAD83_UTM_zone_20N = 26920
801
+ NAD83_UTM_zone_21N = 26921
802
+ NAD83_UTM_zone_22N = 26922
803
+ NAD83_UTM_zone_23N = 26923
804
+ NAD83_Alabama_East = 26929
805
+ NAD83_Alabama_West = 26930
806
+ NAD83_Alaska_zone_1 = 26931
807
+ NAD83_Alaska_zone_2 = 26932
808
+ NAD83_Alaska_zone_3 = 26933
809
+ NAD83_Alaska_zone_4 = 26934
810
+ NAD83_Alaska_zone_5 = 26935
811
+ NAD83_Alaska_zone_6 = 26936
812
+ NAD83_Alaska_zone_7 = 26937
813
+ NAD83_Alaska_zone_8 = 26938
814
+ NAD83_Alaska_zone_9 = 26939
815
+ NAD83_Alaska_zone_10 = 26940
816
+ NAD83_California_1 = 26941
817
+ NAD83_California_2 = 26942
818
+ NAD83_California_3 = 26943
819
+ NAD83_California_4 = 26944
820
+ NAD83_California_5 = 26945
821
+ NAD83_California_6 = 26946
822
+ NAD83_Arizona_East = 26948
823
+ NAD83_Arizona_Central = 26949
824
+ NAD83_Arizona_West = 26950
825
+ NAD83_Arkansas_North = 26951
826
+ NAD83_Arkansas_South = 26952
827
+ NAD83_Colorado_North = 26953
828
+ NAD83_Colorado_Central = 26954
829
+ NAD83_Colorado_South = 26955
830
+ NAD83_Connecticut = 26956
831
+ NAD83_Delaware = 26957
832
+ NAD83_Florida_East = 26958
833
+ NAD83_Florida_West = 26959
834
+ NAD83_Florida_North = 26960
835
+ NAD83_Hawaii_zone_1 = 26961
836
+ NAD83_Hawaii_zone_2 = 26962
837
+ NAD83_Hawaii_zone_3 = 26963
838
+ NAD83_Hawaii_zone_4 = 26964
839
+ NAD83_Hawaii_zone_5 = 26965
840
+ NAD83_Georgia_East = 26966
841
+ NAD83_Georgia_West = 26967
842
+ NAD83_Idaho_East = 26968
843
+ NAD83_Idaho_Central = 26969
844
+ NAD83_Idaho_West = 26970
845
+ NAD83_Illinois_East = 26971
846
+ NAD83_Illinois_West = 26972
847
+ NAD83_Indiana_East = 26973
848
+ NAD83_Indiana_West = 26974
849
+ NAD83_Iowa_North = 26975
850
+ NAD83_Iowa_South = 26976
851
+ NAD83_Kansas_North = 26977
852
+ NAD83_Kansas_South = 26978
853
+ NAD83_Kentucky_North = 2205
854
+ NAD83_Kentucky_South = 26980
855
+ NAD83_Louisiana_North = 26981
856
+ NAD83_Louisiana_South = 26982
857
+ NAD83_Maine_East = 26983
858
+ NAD83_Maine_West = 26984
859
+ NAD83_Maryland = 26985
860
+ NAD83_Massachusetts = 26986
861
+ NAD83_Massachusetts_Is = 26987
862
+ NAD83_Michigan_North = 26988
863
+ NAD83_Michigan_Central = 26989
864
+ NAD83_Michigan_South = 26990
865
+ NAD83_Minnesota_North = 26991
866
+ NAD83_Minnesota_Cent = 26992
867
+ NAD83_Minnesota_South = 26993
868
+ NAD83_Mississippi_East = 26994
869
+ NAD83_Mississippi_West = 26995
870
+ NAD83_Missouri_East = 26996
871
+ NAD83_Missouri_Central = 26997
872
+ NAD83_Missouri_West = 26998
873
+ Nahrwan_1967_UTM_38N = 27038
874
+ Nahrwan_1967_UTM_39N = 27039
875
+ Nahrwan_1967_UTM_40N = 27040
876
+ Naparima_UTM_20N = 27120
877
+ GD49_NZ_Map_Grid = 27200
878
+ GD49_North_Island_Grid = 27291
879
+ GD49_South_Island_Grid = 27292
880
+ Datum_73_UTM_zone_29N = 27429
881
+ ATF_Nord_de_Guerre = 27500
882
+ NTF_France_I = 27581
883
+ NTF_France_II = 27582
884
+ NTF_France_III = 27583
885
+ NTF_Nord_France = 27591
886
+ NTF_Centre_France = 27592
887
+ NTF_Sud_France = 27593
888
+ British_National_Grid = 27700
889
+ Point_Noire_UTM_32S = 28232
890
+ GDA94_MGA_zone_48 = 28348
891
+ GDA94_MGA_zone_49 = 28349
892
+ GDA94_MGA_zone_50 = 28350
893
+ GDA94_MGA_zone_51 = 28351
894
+ GDA94_MGA_zone_52 = 28352
895
+ GDA94_MGA_zone_53 = 28353
896
+ GDA94_MGA_zone_54 = 28354
897
+ GDA94_MGA_zone_55 = 28355
898
+ GDA94_MGA_zone_56 = 28356
899
+ GDA94_MGA_zone_57 = 28357
900
+ GDA94_MGA_zone_58 = 28358
901
+ Pulkovo_Gauss_zone_4 = 28404
902
+ Pulkovo_Gauss_zone_5 = 28405
903
+ Pulkovo_Gauss_zone_6 = 28406
904
+ Pulkovo_Gauss_zone_7 = 28407
905
+ Pulkovo_Gauss_zone_8 = 28408
906
+ Pulkovo_Gauss_zone_9 = 28409
907
+ Pulkovo_Gauss_zone_10 = 28410
908
+ Pulkovo_Gauss_zone_11 = 28411
909
+ Pulkovo_Gauss_zone_12 = 28412
910
+ Pulkovo_Gauss_zone_13 = 28413
911
+ Pulkovo_Gauss_zone_14 = 28414
912
+ Pulkovo_Gauss_zone_15 = 28415
913
+ Pulkovo_Gauss_zone_16 = 28416
914
+ Pulkovo_Gauss_zone_17 = 28417
915
+ Pulkovo_Gauss_zone_18 = 28418
916
+ Pulkovo_Gauss_zone_19 = 28419
917
+ Pulkovo_Gauss_zone_20 = 28420
918
+ Pulkovo_Gauss_zone_21 = 28421
919
+ Pulkovo_Gauss_zone_22 = 28422
920
+ Pulkovo_Gauss_zone_23 = 28423
921
+ Pulkovo_Gauss_zone_24 = 28424
922
+ Pulkovo_Gauss_zone_25 = 28425
923
+ Pulkovo_Gauss_zone_26 = 28426
924
+ Pulkovo_Gauss_zone_27 = 28427
925
+ Pulkovo_Gauss_zone_28 = 28428
926
+ Pulkovo_Gauss_zone_29 = 28429
927
+ Pulkovo_Gauss_zone_30 = 28430
928
+ Pulkovo_Gauss_zone_31 = 28431
929
+ Pulkovo_Gauss_zone_32 = 28432
930
+ Pulkovo_Gauss_4N = 28464
931
+ Pulkovo_Gauss_5N = 28465
932
+ Pulkovo_Gauss_6N = 28466
933
+ Pulkovo_Gauss_7N = 28467
934
+ Pulkovo_Gauss_8N = 28468
935
+ Pulkovo_Gauss_9N = 28469
936
+ Pulkovo_Gauss_10N = 28470
937
+ Pulkovo_Gauss_11N = 28471
938
+ Pulkovo_Gauss_12N = 28472
939
+ Pulkovo_Gauss_13N = 28473
940
+ Pulkovo_Gauss_14N = 28474
941
+ Pulkovo_Gauss_15N = 28475
942
+ Pulkovo_Gauss_16N = 28476
943
+ Pulkovo_Gauss_17N = 28477
944
+ Pulkovo_Gauss_18N = 28478
945
+ Pulkovo_Gauss_19N = 28479
946
+ Pulkovo_Gauss_20N = 28480
947
+ Pulkovo_Gauss_21N = 28481
948
+ Pulkovo_Gauss_22N = 28482
949
+ Pulkovo_Gauss_23N = 28483
950
+ Pulkovo_Gauss_24N = 28484
951
+ Pulkovo_Gauss_25N = 28485
952
+ Pulkovo_Gauss_26N = 28486
953
+ Pulkovo_Gauss_27N = 28487
954
+ Pulkovo_Gauss_28N = 28488
955
+ Pulkovo_Gauss_29N = 28489
956
+ Pulkovo_Gauss_30N = 28490
957
+ Pulkovo_Gauss_31N = 28491
958
+ Pulkovo_Gauss_32N = 28492
959
+ Qatar_National_Grid = 28600
960
+ RD_Netherlands_Old = 28991
961
+ RD_Netherlands_New = 28992
962
+ SAD69_UTM_zone_18N = 29118
963
+ SAD69_UTM_zone_19N = 29119
964
+ SAD69_UTM_zone_20N = 29120
965
+ SAD69_UTM_zone_21N = 29121
966
+ SAD69_UTM_zone_22N = 29122
967
+ SAD69_UTM_zone_17S = 29177
968
+ SAD69_UTM_zone_18S = 29178
969
+ SAD69_UTM_zone_19S = 29179
970
+ SAD69_UTM_zone_20S = 29180
971
+ SAD69_UTM_zone_21S = 29181
972
+ SAD69_UTM_zone_22S = 29182
973
+ SAD69_UTM_zone_23S = 29183
974
+ SAD69_UTM_zone_24S = 29184
975
+ SAD69_UTM_zone_25S = 29185
976
+ Sapper_Hill_UTM_20S = 29220
977
+ Sapper_Hill_UTM_21S = 29221
978
+ Schwarzeck_UTM_33S = 29333
979
+ Sudan_UTM_zone_35N = 29635
980
+ Sudan_UTM_zone_36N = 29636
981
+ Tananarive_Laborde = 29700
982
+ Tananarive_UTM_38S = 29738
983
+ Tananarive_UTM_39S = 29739
984
+ Timbalai_1948_Borneo = 29800
985
+ Timbalai_1948_UTM_49N = 29849
986
+ Timbalai_1948_UTM_50N = 29850
987
+ TM65_Irish_Nat_Grid = 29900
988
+ Trinidad_1903_Trinidad = 30200
989
+ TC_1948_UTM_zone_39N = 30339
990
+ TC_1948_UTM_zone_40N = 30340
991
+ Voirol_N_Algerie_ancien = 30491
992
+ Voirol_S_Algerie_ancien = 30492
993
+ Voirol_Unifie_N_Algerie = 30591
994
+ Voirol_Unifie_S_Algerie = 30592
995
+ Bern_1938_Swiss_New = 30600
996
+ Nord_Sahara_UTM_29N = 30729
997
+ Nord_Sahara_UTM_30N = 30730
998
+ Nord_Sahara_UTM_31N = 30731
999
+ Nord_Sahara_UTM_32N = 30732
1000
+ Yoff_UTM_zone_28N = 31028
1001
+ Zanderij_UTM_zone_21N = 31121
1002
+ MGI_Austria_West = 31291
1003
+ MGI_Austria_Central = 31292
1004
+ MGI_Austria_East = 31293
1005
+ Belge_Lambert_72 = 31300
1006
+ DHDN_Germany_zone_1 = 31491
1007
+ DHDN_Germany_zone_2 = 31492
1008
+ DHDN_Germany_zone_3 = 31493
1009
+ DHDN_Germany_zone_4 = 31494
1010
+ DHDN_Germany_zone_5 = 31495
1011
+ NAD27_Montana_North = 32001
1012
+ NAD27_Montana_Central = 32002
1013
+ NAD27_Montana_South = 32003
1014
+ NAD27_Nebraska_North = 32005
1015
+ NAD27_Nebraska_South = 32006
1016
+ NAD27_Nevada_East = 32007
1017
+ NAD27_Nevada_Central = 32008
1018
+ NAD27_Nevada_West = 32009
1019
+ NAD27_New_Hampshire = 32010
1020
+ NAD27_New_Jersey = 32011
1021
+ NAD27_New_Mexico_East = 32012
1022
+ NAD27_New_Mexico_Cent = 32013
1023
+ NAD27_New_Mexico_West = 32014
1024
+ NAD27_New_York_East = 32015
1025
+ NAD27_New_York_Central = 32016
1026
+ NAD27_New_York_West = 32017
1027
+ NAD27_New_York_Long_Is = 32018
1028
+ NAD27_North_Carolina = 32019
1029
+ NAD27_North_Dakota_N = 32020
1030
+ NAD27_North_Dakota_S = 32021
1031
+ NAD27_Ohio_North = 32022
1032
+ NAD27_Ohio_South = 32023
1033
+ NAD27_Oklahoma_North = 32024
1034
+ NAD27_Oklahoma_South = 32025
1035
+ NAD27_Oregon_North = 32026
1036
+ NAD27_Oregon_South = 32027
1037
+ NAD27_Pennsylvania_N = 32028
1038
+ NAD27_Pennsylvania_S = 32029
1039
+ NAD27_Rhode_Island = 32030
1040
+ NAD27_South_Carolina_N = 32031
1041
+ NAD27_South_Carolina_S = 32033
1042
+ NAD27_South_Dakota_N = 32034
1043
+ NAD27_South_Dakota_S = 32035
1044
+ NAD27_Tennessee = 2204
1045
+ NAD27_Texas_North = 32037
1046
+ NAD27_Texas_North_Cen = 32038
1047
+ NAD27_Texas_Central = 32039
1048
+ NAD27_Texas_South_Cen = 32040
1049
+ NAD27_Texas_South = 32041
1050
+ NAD27_Utah_North = 32042
1051
+ NAD27_Utah_Central = 32043
1052
+ NAD27_Utah_South = 32044
1053
+ NAD27_Vermont = 32045
1054
+ NAD27_Virginia_North = 32046
1055
+ NAD27_Virginia_South = 32047
1056
+ NAD27_Washington_North = 32048
1057
+ NAD27_Washington_South = 32049
1058
+ NAD27_West_Virginia_N = 32050
1059
+ NAD27_West_Virginia_S = 32051
1060
+ NAD27_Wisconsin_North = 32052
1061
+ NAD27_Wisconsin_Cen = 32053
1062
+ NAD27_Wisconsin_South = 32054
1063
+ NAD27_Wyoming_East = 32055
1064
+ NAD27_Wyoming_E_Cen = 32056
1065
+ NAD27_Wyoming_W_Cen = 32057
1066
+ NAD27_Wyoming_West = 32058
1067
+ NAD27_Puerto_Rico = 32059
1068
+ NAD27_St_Croix = 32060
1069
+ NAD83_Montana = 32100
1070
+ NAD83_Nebraska = 32104
1071
+ NAD83_Nevada_East = 32107
1072
+ NAD83_Nevada_Central = 32108
1073
+ NAD83_Nevada_West = 32109
1074
+ NAD83_New_Hampshire = 32110
1075
+ NAD83_New_Jersey = 32111
1076
+ NAD83_New_Mexico_East = 32112
1077
+ NAD83_New_Mexico_Cent = 32113
1078
+ NAD83_New_Mexico_West = 32114
1079
+ NAD83_New_York_East = 32115
1080
+ NAD83_New_York_Central = 32116
1081
+ NAD83_New_York_West = 32117
1082
+ NAD83_New_York_Long_Is = 32118
1083
+ NAD83_North_Carolina = 32119
1084
+ NAD83_North_Dakota_N = 32120
1085
+ NAD83_North_Dakota_S = 32121
1086
+ NAD83_Ohio_North = 32122
1087
+ NAD83_Ohio_South = 32123
1088
+ NAD83_Oklahoma_North = 32124
1089
+ NAD83_Oklahoma_South = 32125
1090
+ NAD83_Oregon_North = 32126
1091
+ NAD83_Oregon_South = 32127
1092
+ NAD83_Pennsylvania_N = 32128
1093
+ NAD83_Pennsylvania_S = 32129
1094
+ NAD83_Rhode_Island = 32130
1095
+ NAD83_South_Carolina = 32133
1096
+ NAD83_South_Dakota_N = 32134
1097
+ NAD83_South_Dakota_S = 32135
1098
+ NAD83_Tennessee = 32136
1099
+ NAD83_Texas_North = 32137
1100
+ NAD83_Texas_North_Cen = 32138
1101
+ NAD83_Texas_Central = 32139
1102
+ NAD83_Texas_South_Cen = 32140
1103
+ NAD83_Texas_South = 32141
1104
+ NAD83_Utah_North = 32142
1105
+ NAD83_Utah_Central = 32143
1106
+ NAD83_Utah_South = 32144
1107
+ NAD83_Vermont = 32145
1108
+ NAD83_Virginia_North = 32146
1109
+ NAD83_Virginia_South = 32147
1110
+ NAD83_Washington_North = 32148
1111
+ NAD83_Washington_South = 32149
1112
+ NAD83_West_Virginia_N = 32150
1113
+ NAD83_West_Virginia_S = 32151
1114
+ NAD83_Wisconsin_North = 32152
1115
+ NAD83_Wisconsin_Cen = 32153
1116
+ NAD83_Wisconsin_South = 32154
1117
+ NAD83_Wyoming_East = 32155
1118
+ NAD83_Wyoming_E_Cen = 32156
1119
+ NAD83_Wyoming_W_Cen = 32157
1120
+ NAD83_Wyoming_West = 32158
1121
+ NAD83_Puerto_Rico_Virgin_Is = 32161
1122
+ WGS72_UTM_zone_1N = 32201
1123
+ WGS72_UTM_zone_2N = 32202
1124
+ WGS72_UTM_zone_3N = 32203
1125
+ WGS72_UTM_zone_4N = 32204
1126
+ WGS72_UTM_zone_5N = 32205
1127
+ WGS72_UTM_zone_6N = 32206
1128
+ WGS72_UTM_zone_7N = 32207
1129
+ WGS72_UTM_zone_8N = 32208
1130
+ WGS72_UTM_zone_9N = 32209
1131
+ WGS72_UTM_zone_10N = 32210
1132
+ WGS72_UTM_zone_11N = 32211
1133
+ WGS72_UTM_zone_12N = 32212
1134
+ WGS72_UTM_zone_13N = 32213
1135
+ WGS72_UTM_zone_14N = 32214
1136
+ WGS72_UTM_zone_15N = 32215
1137
+ WGS72_UTM_zone_16N = 32216
1138
+ WGS72_UTM_zone_17N = 32217
1139
+ WGS72_UTM_zone_18N = 32218
1140
+ WGS72_UTM_zone_19N = 32219
1141
+ WGS72_UTM_zone_20N = 32220
1142
+ WGS72_UTM_zone_21N = 32221
1143
+ WGS72_UTM_zone_22N = 32222
1144
+ WGS72_UTM_zone_23N = 32223
1145
+ WGS72_UTM_zone_24N = 32224
1146
+ WGS72_UTM_zone_25N = 32225
1147
+ WGS72_UTM_zone_26N = 32226
1148
+ WGS72_UTM_zone_27N = 32227
1149
+ WGS72_UTM_zone_28N = 32228
1150
+ WGS72_UTM_zone_29N = 32229
1151
+ WGS72_UTM_zone_30N = 32230
1152
+ WGS72_UTM_zone_31N = 32231
1153
+ WGS72_UTM_zone_32N = 32232
1154
+ WGS72_UTM_zone_33N = 32233
1155
+ WGS72_UTM_zone_34N = 32234
1156
+ WGS72_UTM_zone_35N = 32235
1157
+ WGS72_UTM_zone_36N = 32236
1158
+ WGS72_UTM_zone_37N = 32237
1159
+ WGS72_UTM_zone_38N = 32238
1160
+ WGS72_UTM_zone_39N = 32239
1161
+ WGS72_UTM_zone_40N = 32240
1162
+ WGS72_UTM_zone_41N = 32241
1163
+ WGS72_UTM_zone_42N = 32242
1164
+ WGS72_UTM_zone_43N = 32243
1165
+ WGS72_UTM_zone_44N = 32244
1166
+ WGS72_UTM_zone_45N = 32245
1167
+ WGS72_UTM_zone_46N = 32246
1168
+ WGS72_UTM_zone_47N = 32247
1169
+ WGS72_UTM_zone_48N = 32248
1170
+ WGS72_UTM_zone_49N = 32249
1171
+ WGS72_UTM_zone_50N = 32250
1172
+ WGS72_UTM_zone_51N = 32251
1173
+ WGS72_UTM_zone_52N = 32252
1174
+ WGS72_UTM_zone_53N = 32253
1175
+ WGS72_UTM_zone_54N = 32254
1176
+ WGS72_UTM_zone_55N = 32255
1177
+ WGS72_UTM_zone_56N = 32256
1178
+ WGS72_UTM_zone_57N = 32257
1179
+ WGS72_UTM_zone_58N = 32258
1180
+ WGS72_UTM_zone_59N = 32259
1181
+ WGS72_UTM_zone_60N = 32260
1182
+ WGS72_UTM_zone_1S = 32301
1183
+ WGS72_UTM_zone_2S = 32302
1184
+ WGS72_UTM_zone_3S = 32303
1185
+ WGS72_UTM_zone_4S = 32304
1186
+ WGS72_UTM_zone_5S = 32305
1187
+ WGS72_UTM_zone_6S = 32306
1188
+ WGS72_UTM_zone_7S = 32307
1189
+ WGS72_UTM_zone_8S = 32308
1190
+ WGS72_UTM_zone_9S = 32309
1191
+ WGS72_UTM_zone_10S = 32310
1192
+ WGS72_UTM_zone_11S = 32311
1193
+ WGS72_UTM_zone_12S = 32312
1194
+ WGS72_UTM_zone_13S = 32313
1195
+ WGS72_UTM_zone_14S = 32314
1196
+ WGS72_UTM_zone_15S = 32315
1197
+ WGS72_UTM_zone_16S = 32316
1198
+ WGS72_UTM_zone_17S = 32317
1199
+ WGS72_UTM_zone_18S = 32318
1200
+ WGS72_UTM_zone_19S = 32319
1201
+ WGS72_UTM_zone_20S = 32320
1202
+ WGS72_UTM_zone_21S = 32321
1203
+ WGS72_UTM_zone_22S = 32322
1204
+ WGS72_UTM_zone_23S = 32323
1205
+ WGS72_UTM_zone_24S = 32324
1206
+ WGS72_UTM_zone_25S = 32325
1207
+ WGS72_UTM_zone_26S = 32326
1208
+ WGS72_UTM_zone_27S = 32327
1209
+ WGS72_UTM_zone_28S = 32328
1210
+ WGS72_UTM_zone_29S = 32329
1211
+ WGS72_UTM_zone_30S = 32330
1212
+ WGS72_UTM_zone_31S = 32331
1213
+ WGS72_UTM_zone_32S = 32332
1214
+ WGS72_UTM_zone_33S = 32333
1215
+ WGS72_UTM_zone_34S = 32334
1216
+ WGS72_UTM_zone_35S = 32335
1217
+ WGS72_UTM_zone_36S = 32336
1218
+ WGS72_UTM_zone_37S = 32337
1219
+ WGS72_UTM_zone_38S = 32338
1220
+ WGS72_UTM_zone_39S = 32339
1221
+ WGS72_UTM_zone_40S = 32340
1222
+ WGS72_UTM_zone_41S = 32341
1223
+ WGS72_UTM_zone_42S = 32342
1224
+ WGS72_UTM_zone_43S = 32343
1225
+ WGS72_UTM_zone_44S = 32344
1226
+ WGS72_UTM_zone_45S = 32345
1227
+ WGS72_UTM_zone_46S = 32346
1228
+ WGS72_UTM_zone_47S = 32347
1229
+ WGS72_UTM_zone_48S = 32348
1230
+ WGS72_UTM_zone_49S = 32349
1231
+ WGS72_UTM_zone_50S = 32350
1232
+ WGS72_UTM_zone_51S = 32351
1233
+ WGS72_UTM_zone_52S = 32352
1234
+ WGS72_UTM_zone_53S = 32353
1235
+ WGS72_UTM_zone_54S = 32354
1236
+ WGS72_UTM_zone_55S = 32355
1237
+ WGS72_UTM_zone_56S = 32356
1238
+ WGS72_UTM_zone_57S = 32357
1239
+ WGS72_UTM_zone_58S = 32358
1240
+ WGS72_UTM_zone_59S = 32359
1241
+ WGS72_UTM_zone_60S = 32360
1242
+ WGS72BE_UTM_zone_1N = 32401
1243
+ WGS72BE_UTM_zone_2N = 32402
1244
+ WGS72BE_UTM_zone_3N = 32403
1245
+ WGS72BE_UTM_zone_4N = 32404
1246
+ WGS72BE_UTM_zone_5N = 32405
1247
+ WGS72BE_UTM_zone_6N = 32406
1248
+ WGS72BE_UTM_zone_7N = 32407
1249
+ WGS72BE_UTM_zone_8N = 32408
1250
+ WGS72BE_UTM_zone_9N = 32409
1251
+ WGS72BE_UTM_zone_10N = 32410
1252
+ WGS72BE_UTM_zone_11N = 32411
1253
+ WGS72BE_UTM_zone_12N = 32412
1254
+ WGS72BE_UTM_zone_13N = 32413
1255
+ WGS72BE_UTM_zone_14N = 32414
1256
+ WGS72BE_UTM_zone_15N = 32415
1257
+ WGS72BE_UTM_zone_16N = 32416
1258
+ WGS72BE_UTM_zone_17N = 32417
1259
+ WGS72BE_UTM_zone_18N = 32418
1260
+ WGS72BE_UTM_zone_19N = 32419
1261
+ WGS72BE_UTM_zone_20N = 32420
1262
+ WGS72BE_UTM_zone_21N = 32421
1263
+ WGS72BE_UTM_zone_22N = 32422
1264
+ WGS72BE_UTM_zone_23N = 32423
1265
+ WGS72BE_UTM_zone_24N = 32424
1266
+ WGS72BE_UTM_zone_25N = 32425
1267
+ WGS72BE_UTM_zone_26N = 32426
1268
+ WGS72BE_UTM_zone_27N = 32427
1269
+ WGS72BE_UTM_zone_28N = 32428
1270
+ WGS72BE_UTM_zone_29N = 32429
1271
+ WGS72BE_UTM_zone_30N = 32430
1272
+ WGS72BE_UTM_zone_31N = 32431
1273
+ WGS72BE_UTM_zone_32N = 32432
1274
+ WGS72BE_UTM_zone_33N = 32433
1275
+ WGS72BE_UTM_zone_34N = 32434
1276
+ WGS72BE_UTM_zone_35N = 32435
1277
+ WGS72BE_UTM_zone_36N = 32436
1278
+ WGS72BE_UTM_zone_37N = 32437
1279
+ WGS72BE_UTM_zone_38N = 32438
1280
+ WGS72BE_UTM_zone_39N = 32439
1281
+ WGS72BE_UTM_zone_40N = 32440
1282
+ WGS72BE_UTM_zone_41N = 32441
1283
+ WGS72BE_UTM_zone_42N = 32442
1284
+ WGS72BE_UTM_zone_43N = 32443
1285
+ WGS72BE_UTM_zone_44N = 32444
1286
+ WGS72BE_UTM_zone_45N = 32445
1287
+ WGS72BE_UTM_zone_46N = 32446
1288
+ WGS72BE_UTM_zone_47N = 32447
1289
+ WGS72BE_UTM_zone_48N = 32448
1290
+ WGS72BE_UTM_zone_49N = 32449
1291
+ WGS72BE_UTM_zone_50N = 32450
1292
+ WGS72BE_UTM_zone_51N = 32451
1293
+ WGS72BE_UTM_zone_52N = 32452
1294
+ WGS72BE_UTM_zone_53N = 32453
1295
+ WGS72BE_UTM_zone_54N = 32454
1296
+ WGS72BE_UTM_zone_55N = 32455
1297
+ WGS72BE_UTM_zone_56N = 32456
1298
+ WGS72BE_UTM_zone_57N = 32457
1299
+ WGS72BE_UTM_zone_58N = 32458
1300
+ WGS72BE_UTM_zone_59N = 32459
1301
+ WGS72BE_UTM_zone_60N = 32460
1302
+ WGS72BE_UTM_zone_1S = 32501
1303
+ WGS72BE_UTM_zone_2S = 32502
1304
+ WGS72BE_UTM_zone_3S = 32503
1305
+ WGS72BE_UTM_zone_4S = 32504
1306
+ WGS72BE_UTM_zone_5S = 32505
1307
+ WGS72BE_UTM_zone_6S = 32506
1308
+ WGS72BE_UTM_zone_7S = 32507
1309
+ WGS72BE_UTM_zone_8S = 32508
1310
+ WGS72BE_UTM_zone_9S = 32509
1311
+ WGS72BE_UTM_zone_10S = 32510
1312
+ WGS72BE_UTM_zone_11S = 32511
1313
+ WGS72BE_UTM_zone_12S = 32512
1314
+ WGS72BE_UTM_zone_13S = 32513
1315
+ WGS72BE_UTM_zone_14S = 32514
1316
+ WGS72BE_UTM_zone_15S = 32515
1317
+ WGS72BE_UTM_zone_16S = 32516
1318
+ WGS72BE_UTM_zone_17S = 32517
1319
+ WGS72BE_UTM_zone_18S = 32518
1320
+ WGS72BE_UTM_zone_19S = 32519
1321
+ WGS72BE_UTM_zone_20S = 32520
1322
+ WGS72BE_UTM_zone_21S = 32521
1323
+ WGS72BE_UTM_zone_22S = 32522
1324
+ WGS72BE_UTM_zone_23S = 32523
1325
+ WGS72BE_UTM_zone_24S = 32524
1326
+ WGS72BE_UTM_zone_25S = 32525
1327
+ WGS72BE_UTM_zone_26S = 32526
1328
+ WGS72BE_UTM_zone_27S = 32527
1329
+ WGS72BE_UTM_zone_28S = 32528
1330
+ WGS72BE_UTM_zone_29S = 32529
1331
+ WGS72BE_UTM_zone_30S = 32530
1332
+ WGS72BE_UTM_zone_31S = 32531
1333
+ WGS72BE_UTM_zone_32S = 32532
1334
+ WGS72BE_UTM_zone_33S = 32533
1335
+ WGS72BE_UTM_zone_34S = 32534
1336
+ WGS72BE_UTM_zone_35S = 32535
1337
+ WGS72BE_UTM_zone_36S = 32536
1338
+ WGS72BE_UTM_zone_37S = 32537
1339
+ WGS72BE_UTM_zone_38S = 32538
1340
+ WGS72BE_UTM_zone_39S = 32539
1341
+ WGS72BE_UTM_zone_40S = 32540
1342
+ WGS72BE_UTM_zone_41S = 32541
1343
+ WGS72BE_UTM_zone_42S = 32542
1344
+ WGS72BE_UTM_zone_43S = 32543
1345
+ WGS72BE_UTM_zone_44S = 32544
1346
+ WGS72BE_UTM_zone_45S = 32545
1347
+ WGS72BE_UTM_zone_46S = 32546
1348
+ WGS72BE_UTM_zone_47S = 32547
1349
+ WGS72BE_UTM_zone_48S = 32548
1350
+ WGS72BE_UTM_zone_49S = 32549
1351
+ WGS72BE_UTM_zone_50S = 32550
1352
+ WGS72BE_UTM_zone_51S = 32551
1353
+ WGS72BE_UTM_zone_52S = 32552
1354
+ WGS72BE_UTM_zone_53S = 32553
1355
+ WGS72BE_UTM_zone_54S = 32554
1356
+ WGS72BE_UTM_zone_55S = 32555
1357
+ WGS72BE_UTM_zone_56S = 32556
1358
+ WGS72BE_UTM_zone_57S = 32557
1359
+ WGS72BE_UTM_zone_58S = 32558
1360
+ WGS72BE_UTM_zone_59S = 32559
1361
+ WGS72BE_UTM_zone_60S = 32560
1362
+ WGS84_UTM_zone_1N = 32601
1363
+ WGS84_UTM_zone_2N = 32602
1364
+ WGS84_UTM_zone_3N = 32603
1365
+ WGS84_UTM_zone_4N = 32604
1366
+ WGS84_UTM_zone_5N = 32605
1367
+ WGS84_UTM_zone_6N = 32606
1368
+ WGS84_UTM_zone_7N = 32607
1369
+ WGS84_UTM_zone_8N = 32608
1370
+ WGS84_UTM_zone_9N = 32609
1371
+ WGS84_UTM_zone_10N = 32610
1372
+ WGS84_UTM_zone_11N = 32611
1373
+ WGS84_UTM_zone_12N = 32612
1374
+ WGS84_UTM_zone_13N = 32613
1375
+ WGS84_UTM_zone_14N = 32614
1376
+ WGS84_UTM_zone_15N = 32615
1377
+ WGS84_UTM_zone_16N = 32616
1378
+ WGS84_UTM_zone_17N = 32617
1379
+ WGS84_UTM_zone_18N = 32618
1380
+ WGS84_UTM_zone_19N = 32619
1381
+ WGS84_UTM_zone_20N = 32620
1382
+ WGS84_UTM_zone_21N = 32621
1383
+ WGS84_UTM_zone_22N = 32622
1384
+ WGS84_UTM_zone_23N = 32623
1385
+ WGS84_UTM_zone_24N = 32624
1386
+ WGS84_UTM_zone_25N = 32625
1387
+ WGS84_UTM_zone_26N = 32626
1388
+ WGS84_UTM_zone_27N = 32627
1389
+ WGS84_UTM_zone_28N = 32628
1390
+ WGS84_UTM_zone_29N = 32629
1391
+ WGS84_UTM_zone_30N = 32630
1392
+ WGS84_UTM_zone_31N = 32631
1393
+ WGS84_UTM_zone_32N = 32632
1394
+ WGS84_UTM_zone_33N = 32633
1395
+ WGS84_UTM_zone_34N = 32634
1396
+ WGS84_UTM_zone_35N = 32635
1397
+ WGS84_UTM_zone_36N = 32636
1398
+ WGS84_UTM_zone_37N = 32637
1399
+ WGS84_UTM_zone_38N = 32638
1400
+ WGS84_UTM_zone_39N = 32639
1401
+ WGS84_UTM_zone_40N = 32640
1402
+ WGS84_UTM_zone_41N = 32641
1403
+ WGS84_UTM_zone_42N = 32642
1404
+ WGS84_UTM_zone_43N = 32643
1405
+ WGS84_UTM_zone_44N = 32644
1406
+ WGS84_UTM_zone_45N = 32645
1407
+ WGS84_UTM_zone_46N = 32646
1408
+ WGS84_UTM_zone_47N = 32647
1409
+ WGS84_UTM_zone_48N = 32648
1410
+ WGS84_UTM_zone_49N = 32649
1411
+ WGS84_UTM_zone_50N = 32650
1412
+ WGS84_UTM_zone_51N = 32651
1413
+ WGS84_UTM_zone_52N = 32652
1414
+ WGS84_UTM_zone_53N = 32653
1415
+ WGS84_UTM_zone_54N = 32654
1416
+ WGS84_UTM_zone_55N = 32655
1417
+ WGS84_UTM_zone_56N = 32656
1418
+ WGS84_UTM_zone_57N = 32657
1419
+ WGS84_UTM_zone_58N = 32658
1420
+ WGS84_UTM_zone_59N = 32659
1421
+ WGS84_UTM_zone_60N = 32660
1422
+ WGS84_UTM_zone_1S = 32701
1423
+ WGS84_UTM_zone_2S = 32702
1424
+ WGS84_UTM_zone_3S = 32703
1425
+ WGS84_UTM_zone_4S = 32704
1426
+ WGS84_UTM_zone_5S = 32705
1427
+ WGS84_UTM_zone_6S = 32706
1428
+ WGS84_UTM_zone_7S = 32707
1429
+ WGS84_UTM_zone_8S = 32708
1430
+ WGS84_UTM_zone_9S = 32709
1431
+ WGS84_UTM_zone_10S = 32710
1432
+ WGS84_UTM_zone_11S = 32711
1433
+ WGS84_UTM_zone_12S = 32712
1434
+ WGS84_UTM_zone_13S = 32713
1435
+ WGS84_UTM_zone_14S = 32714
1436
+ WGS84_UTM_zone_15S = 32715
1437
+ WGS84_UTM_zone_16S = 32716
1438
+ WGS84_UTM_zone_17S = 32717
1439
+ WGS84_UTM_zone_18S = 32718
1440
+ WGS84_UTM_zone_19S = 32719
1441
+ WGS84_UTM_zone_20S = 32720
1442
+ WGS84_UTM_zone_21S = 32721
1443
+ WGS84_UTM_zone_22S = 32722
1444
+ WGS84_UTM_zone_23S = 32723
1445
+ WGS84_UTM_zone_24S = 32724
1446
+ WGS84_UTM_zone_25S = 32725
1447
+ WGS84_UTM_zone_26S = 32726
1448
+ WGS84_UTM_zone_27S = 32727
1449
+ WGS84_UTM_zone_28S = 32728
1450
+ WGS84_UTM_zone_29S = 32729
1451
+ WGS84_UTM_zone_30S = 32730
1452
+ WGS84_UTM_zone_31S = 32731
1453
+ WGS84_UTM_zone_32S = 32732
1454
+ WGS84_UTM_zone_33S = 32733
1455
+ WGS84_UTM_zone_34S = 32734
1456
+ WGS84_UTM_zone_35S = 32735
1457
+ WGS84_UTM_zone_36S = 32736
1458
+ WGS84_UTM_zone_37S = 32737
1459
+ WGS84_UTM_zone_38S = 32738
1460
+ WGS84_UTM_zone_39S = 32739
1461
+ WGS84_UTM_zone_40S = 32740
1462
+ WGS84_UTM_zone_41S = 32741
1463
+ WGS84_UTM_zone_42S = 32742
1464
+ WGS84_UTM_zone_43S = 32743
1465
+ WGS84_UTM_zone_44S = 32744
1466
+ WGS84_UTM_zone_45S = 32745
1467
+ WGS84_UTM_zone_46S = 32746
1468
+ WGS84_UTM_zone_47S = 32747
1469
+ WGS84_UTM_zone_48S = 32748
1470
+ WGS84_UTM_zone_49S = 32749
1471
+ WGS84_UTM_zone_50S = 32750
1472
+ WGS84_UTM_zone_51S = 32751
1473
+ WGS84_UTM_zone_52S = 32752
1474
+ WGS84_UTM_zone_53S = 32753
1475
+ WGS84_UTM_zone_54S = 32754
1476
+ WGS84_UTM_zone_55S = 32755
1477
+ WGS84_UTM_zone_56S = 32756
1478
+ WGS84_UTM_zone_57S = 32757
1479
+ WGS84_UTM_zone_58S = 32758
1480
+ WGS84_UTM_zone_59S = 32759
1481
+ WGS84_UTM_zone_60S = 32760
1482
+ # New
1483
+ GGRS87_Greek_Grid = 2100
1484
+ KKJ_Finland_zone_1 = 2391
1485
+ KKJ_Finland_zone_2 = 2392
1486
+ KKJ_Finland_zone_3 = 2393
1487
+ KKJ_Finland_zone_4 = 2394
1488
+ RT90_2_5_gon_W = 2400
1489
+ Lietuvos_Koordinoei_Sistema_1994 = 2600
1490
+ Estonian_Coordinate_System_of_1992 = 3300
1491
+ HD72_EOV = 23700
1492
+ Dealul_Piscului_1970_Stereo_70 = 31700
1493
+ # Newer
1494
+ Hjorsey_1955_Lambert = 3053
1495
+ ISN93_Lambert_1993 = 3057
1496
+ ETRS89_Poland_CS2000_zone_5 = 2176
1497
+ ETRS89_Poland_CS2000_zone_6 = 2177
1498
+ ETRS89_Poland_CS2000_zone_7 = 2177
1499
+ ETRS89_Poland_CS2000_zone_8 = 2178
1500
+ ETRS89_Poland_CS92 = 2180
1501
+
1502
+
1503
+ class GCSE(enum.IntEnum):
1504
+ """Unspecified GCS based on ellipsoid."""
1505
+
1506
+ Undefined = 0
1507
+ User_Defined = 32767
1508
+ Airy1830 = 4001
1509
+ AiryModified1849 = 4002
1510
+ AustralianNationalSpheroid = 4003
1511
+ Bessel1841 = 4004
1512
+ BesselModified = 4005
1513
+ BesselNamibia = 4006
1514
+ Clarke1858 = 4007
1515
+ Clarke1866 = 4008
1516
+ Clarke1866Michigan = 4009
1517
+ Clarke1880_Benoit = 4010
1518
+ Clarke1880_IGN = 4011
1519
+ Clarke1880_RGS = 4012
1520
+ Clarke1880_Arc = 4013
1521
+ Clarke1880_SGA1922 = 4014
1522
+ Everest1830_1937Adjustment = 4015
1523
+ Everest1830_1967Definition = 4016
1524
+ Everest1830_1975Definition = 4017
1525
+ Everest1830Modified = 4018
1526
+ GRS1980 = 4019
1527
+ Helmert1906 = 4020
1528
+ IndonesianNationalSpheroid = 4021
1529
+ International1924 = 4022
1530
+ International1967 = 4023
1531
+ Krassowsky1940 = 4024
1532
+ NWL9D = 4025
1533
+ NWL10D = 4026
1534
+ Plessis1817 = 4027
1535
+ Struve1860 = 4028
1536
+ WarOffice = 4029
1537
+ WGS84 = 4030
1538
+ GEM10C = 4031
1539
+ OSU86F = 4032
1540
+ OSU91A = 4033
1541
+ Clarke1880 = 4034
1542
+ Sphere = 4035
1543
+
1544
+
1545
+ class GCS(enum.IntEnum):
1546
+ """Geographic CS Type Codes."""
1547
+
1548
+ Undefined = 0
1549
+ User_Defined = 32767
1550
+ Adindan = 4201
1551
+ AGD66 = 4202
1552
+ AGD84 = 4203
1553
+ Ain_el_Abd = 4204
1554
+ Afgooye = 4205
1555
+ Agadez = 4206
1556
+ Lisbon = 4207
1557
+ Aratu = 4208
1558
+ Arc_1950 = 4209
1559
+ Arc_1960 = 4210
1560
+ Batavia = 4211
1561
+ Barbados = 4212
1562
+ Beduaram = 4213
1563
+ Beijing_1954 = 4214
1564
+ Belge_1950 = 4215
1565
+ Bermuda_1957 = 4216
1566
+ Bern_1898 = 4217
1567
+ Bogota = 4218
1568
+ Bukit_Rimpah = 4219
1569
+ Camacupa = 4220
1570
+ Campo_Inchauspe = 4221
1571
+ Cape = 4222
1572
+ Carthage = 4223
1573
+ Chua = 4224
1574
+ Corrego_Alegre = 4225
1575
+ Cote_d_Ivoire = 4226
1576
+ Deir_ez_Zor = 4227
1577
+ Douala = 4228
1578
+ Egypt_1907 = 4229
1579
+ ED50 = 4230
1580
+ ED87 = 4231
1581
+ Fahud = 4232
1582
+ Gandajika_1970 = 4233
1583
+ Garoua = 4234
1584
+ Guyane_Francaise = 4235
1585
+ Hu_Tzu_Shan = 4236
1586
+ HD72 = 4237
1587
+ ID74 = 4238
1588
+ Indian_1954 = 4239
1589
+ Indian_1975 = 4240
1590
+ Jamaica_1875 = 4241
1591
+ JAD69 = 4242
1592
+ Kalianpur = 4243
1593
+ Kandawala = 4244
1594
+ Kertau = 4245
1595
+ KOC = 4246
1596
+ La_Canoa = 4247
1597
+ PSAD56 = 4248
1598
+ Lake = 4249
1599
+ Leigon = 4250
1600
+ Liberia_1964 = 4251
1601
+ Lome = 4252
1602
+ Luzon_1911 = 4253
1603
+ Hito_XVIII_1963 = 4254
1604
+ Herat_North = 4255
1605
+ Mahe_1971 = 4256
1606
+ Makassar = 4257
1607
+ EUREF89 = 4258
1608
+ Malongo_1987 = 4259
1609
+ Manoca = 4260
1610
+ Merchich = 4261
1611
+ Massawa = 4262
1612
+ Minna = 4263
1613
+ Mhast = 4264
1614
+ Monte_Mario = 4265
1615
+ M_poraloko = 4266
1616
+ NAD27 = 4267
1617
+ NAD_Michigan = 4268
1618
+ NAD83 = 4269
1619
+ Nahrwan_1967 = 4270
1620
+ Naparima_1972 = 4271
1621
+ GD49 = 4272
1622
+ NGO_1948 = 4273
1623
+ Datum_73 = 4274
1624
+ NTF = 4275
1625
+ NSWC_9Z_2 = 4276
1626
+ OSGB_1936 = 4277
1627
+ OSGB70 = 4278
1628
+ OS_SN80 = 4279
1629
+ Padang = 4280
1630
+ Palestine_1923 = 4281
1631
+ Pointe_Noire = 4282
1632
+ GDA94 = 4283
1633
+ Pulkovo_1942 = 4284
1634
+ Qatar = 4285
1635
+ Qatar_1948 = 4286
1636
+ Qornoq = 4287
1637
+ Loma_Quintana = 4288
1638
+ Amersfoort = 4289
1639
+ RT38 = 4290
1640
+ SAD69 = 4291
1641
+ Sapper_Hill_1943 = 4292
1642
+ Schwarzeck = 4293
1643
+ Segora = 4294
1644
+ Serindung = 4295
1645
+ Sudan = 4296
1646
+ Tananarive = 4297
1647
+ Timbalai_1948 = 4298
1648
+ TM65 = 4299
1649
+ TM75 = 4300
1650
+ Tokyo = 4301
1651
+ Trinidad_1903 = 4302
1652
+ TC_1948 = 4303
1653
+ Voirol_1875 = 4304
1654
+ Voirol_Unifie = 4305
1655
+ Bern_1938 = 4306
1656
+ Nord_Sahara_1959 = 4307
1657
+ Stockholm_1938 = 4308
1658
+ Yacare = 4309
1659
+ Yoff = 4310
1660
+ Zanderij = 4311
1661
+ MGI = 4312
1662
+ Belge_1972 = 4313
1663
+ DHDN = 4314
1664
+ Conakry_1905 = 4315
1665
+ WGS_72 = 4322
1666
+ WGS_72BE = 4324
1667
+ WGS_84 = 4326
1668
+ Bern_1898_Bern = 4801
1669
+ Bogota_Bogota = 4802
1670
+ Lisbon_Lisbon = 4803
1671
+ Makassar_Jakarta = 4804
1672
+ MGI_Ferro = 4805
1673
+ Monte_Mario_Rome = 4806
1674
+ NTF_Paris = 4807
1675
+ Padang_Jakarta = 4808
1676
+ Belge_1950_Brussels = 4809
1677
+ Tananarive_Paris = 4810
1678
+ Voirol_1875_Paris = 4811
1679
+ Voirol_Unifie_Paris = 4812
1680
+ Batavia_Jakarta = 4813
1681
+ ATF_Paris = 4901
1682
+ NDG_Paris = 4902
1683
+ # New GCS
1684
+ Greek = 4120
1685
+ GGRS87 = 4121
1686
+ KKJ = 4123
1687
+ RT90 = 4124
1688
+ EST92 = 4133
1689
+ Dealul_Piscului_1970 = 4317
1690
+ Greek_Athens = 4815
1691
+
1692
+
1693
+ class Ellipse(enum.IntEnum):
1694
+ """Ellipsoid Codes."""
1695
+
1696
+ Undefined = 0
1697
+ User_Defined = 32767
1698
+ Airy_1830 = 7001
1699
+ Airy_Modified_1849 = 7002
1700
+ Australian_National_Spheroid = 7003
1701
+ Bessel_1841 = 7004
1702
+ Bessel_Modified = 7005
1703
+ Bessel_Namibia = 7006
1704
+ Clarke_1858 = 7007
1705
+ Clarke_1866 = 7008
1706
+ Clarke_1866_Michigan = 7009
1707
+ Clarke_1880_Benoit = 7010
1708
+ Clarke_1880_IGN = 7011
1709
+ Clarke_1880_RGS = 7012
1710
+ Clarke_1880_Arc = 7013
1711
+ Clarke_1880_SGA_1922 = 7014
1712
+ Everest_1830_1937_Adjustment = 7015
1713
+ Everest_1830_1967_Definition = 7016
1714
+ Everest_1830_1975_Definition = 7017
1715
+ Everest_1830_Modified = 7018
1716
+ GRS_1980 = 7019
1717
+ Helmert_1906 = 7020
1718
+ Indonesian_National_Spheroid = 7021
1719
+ International_1924 = 7022
1720
+ International_1967 = 7023
1721
+ Krassowsky_1940 = 7024
1722
+ NWL_9D = 7025
1723
+ NWL_10D = 7026
1724
+ Plessis_1817 = 7027
1725
+ Struve_1860 = 7028
1726
+ War_Office = 7029
1727
+ WGS_84 = 7030
1728
+ GEM_10C = 7031
1729
+ OSU86F = 7032
1730
+ OSU91A = 7033
1731
+ Clarke_1880 = 7034
1732
+ Sphere = 7035
1733
+
1734
+
1735
+ class DatumE(enum.IntEnum):
1736
+ """Ellipsoid-Only Geodetic Datum Codes."""
1737
+
1738
+ Undefined = 0
1739
+ User_Defined = 32767
1740
+ Airy1830 = 6001
1741
+ AiryModified1849 = 6002
1742
+ AustralianNationalSpheroid = 6003
1743
+ Bessel1841 = 6004
1744
+ BesselModified = 6005
1745
+ BesselNamibia = 6006
1746
+ Clarke1858 = 6007
1747
+ Clarke1866 = 6008
1748
+ Clarke1866Michigan = 6009
1749
+ Clarke1880_Benoit = 6010
1750
+ Clarke1880_IGN = 6011
1751
+ Clarke1880_RGS = 6012
1752
+ Clarke1880_Arc = 6013
1753
+ Clarke1880_SGA1922 = 6014
1754
+ Everest1830_1937Adjustment = 6015
1755
+ Everest1830_1967Definition = 6016
1756
+ Everest1830_1975Definition = 6017
1757
+ Everest1830Modified = 6018
1758
+ GRS1980 = 6019
1759
+ Helmert1906 = 6020
1760
+ IndonesianNationalSpheroid = 6021
1761
+ International1924 = 6022
1762
+ International1967 = 6023
1763
+ Krassowsky1960 = 6024
1764
+ NWL9D = 6025
1765
+ NWL10D = 6026
1766
+ Plessis1817 = 6027
1767
+ Struve1860 = 6028
1768
+ WarOffice = 6029
1769
+ WGS84 = 6030
1770
+ GEM10C = 6031
1771
+ OSU86F = 6032
1772
+ OSU91A = 6033
1773
+ Clarke1880 = 6034
1774
+ Sphere = 6035
1775
+
1776
+
1777
+ class Datum(enum.IntEnum):
1778
+ """Geodetic Datum Codes."""
1779
+
1780
+ Undefined = 0
1781
+ User_Defined = 32767
1782
+ Adindan = 6201
1783
+ Australian_Geodetic_Datum_1966 = 6202
1784
+ Australian_Geodetic_Datum_1984 = 6203
1785
+ Ain_el_Abd_1970 = 6204
1786
+ Afgooye = 6205
1787
+ Agadez = 6206
1788
+ Lisbon = 6207
1789
+ Aratu = 6208
1790
+ Arc_1950 = 6209
1791
+ Arc_1960 = 6210
1792
+ Batavia = 6211
1793
+ Barbados = 6212
1794
+ Beduaram = 6213
1795
+ Beijing_1954 = 6214
1796
+ Reseau_National_Belge_1950 = 6215
1797
+ Bermuda_1957 = 6216
1798
+ Bern_1898 = 6217
1799
+ Bogota = 6218
1800
+ Bukit_Rimpah = 6219
1801
+ Camacupa = 6220
1802
+ Campo_Inchauspe = 6221
1803
+ Cape = 6222
1804
+ Carthage = 6223
1805
+ Chua = 6224
1806
+ Corrego_Alegre = 6225
1807
+ Cote_d_Ivoire = 6226
1808
+ Deir_ez_Zor = 6227
1809
+ Douala = 6228
1810
+ Egypt_1907 = 6229
1811
+ European_Datum_1950 = 6230
1812
+ European_Datum_1987 = 6231
1813
+ Fahud = 6232
1814
+ Gandajika_1970 = 6233
1815
+ Garoua = 6234
1816
+ Guyane_Francaise = 6235
1817
+ Hu_Tzu_Shan = 6236
1818
+ Hungarian_Datum_1972 = 6237
1819
+ Indonesian_Datum_1974 = 6238
1820
+ Indian_1954 = 6239
1821
+ Indian_1975 = 6240
1822
+ Jamaica_1875 = 6241
1823
+ Jamaica_1969 = 6242
1824
+ Kalianpur = 6243
1825
+ Kandawala = 6244
1826
+ Kertau = 6245
1827
+ Kuwait_Oil_Company = 6246
1828
+ La_Canoa = 6247
1829
+ Provisional_S_American_Datum_1956 = 6248
1830
+ Lake = 6249
1831
+ Leigon = 6250
1832
+ Liberia_1964 = 6251
1833
+ Lome = 6252
1834
+ Luzon_1911 = 6253
1835
+ Hito_XVIII_1963 = 6254
1836
+ Herat_North = 6255
1837
+ Mahe_1971 = 6256
1838
+ Makassar = 6257
1839
+ European_Reference_System_1989 = 6258
1840
+ Malongo_1987 = 6259
1841
+ Manoca = 6260
1842
+ Merchich = 6261
1843
+ Massawa = 6262
1844
+ Minna = 6263
1845
+ Mhast = 6264
1846
+ Monte_Mario = 6265
1847
+ M_poraloko = 6266
1848
+ North_American_Datum_1927 = 6267
1849
+ NAD_Michigan = 6268
1850
+ North_American_Datum_1983 = 6269
1851
+ Nahrwan_1967 = 6270
1852
+ Naparima_1972 = 6271
1853
+ New_Zealand_Geodetic_Datum_1949 = 6272
1854
+ NGO_1948 = 6273
1855
+ Datum_73 = 6274
1856
+ Nouvelle_Triangulation_Francaise = 6275
1857
+ NSWC_9Z_2 = 6276
1858
+ OSGB_1936 = 6277
1859
+ OSGB_1970_SN = 6278
1860
+ OS_SN_1980 = 6279
1861
+ Padang_1884 = 6280
1862
+ Palestine_1923 = 6281
1863
+ Pointe_Noire = 6282
1864
+ Geocentric_Datum_of_Australia_1994 = 6283
1865
+ Pulkovo_1942 = 6284
1866
+ Qatar = 6285
1867
+ Qatar_1948 = 6286
1868
+ Qornoq = 6287
1869
+ Loma_Quintana = 6288
1870
+ Amersfoort = 6289
1871
+ RT38 = 6290
1872
+ South_American_Datum_1969 = 6291
1873
+ Sapper_Hill_1943 = 6292
1874
+ Schwarzeck = 6293
1875
+ Segora = 6294
1876
+ Serindung = 6295
1877
+ Sudan = 6296
1878
+ Tananarive_1925 = 6297
1879
+ Timbalai_1948 = 6298
1880
+ TM65 = 6299
1881
+ TM75 = 6300
1882
+ Tokyo = 6301
1883
+ Trinidad_1903 = 6302
1884
+ Trucial_Coast_1948 = 6303
1885
+ Voirol_1875 = 6304
1886
+ Voirol_Unifie_1960 = 6305
1887
+ Bern_1938 = 6306
1888
+ Nord_Sahara_1959 = 6307
1889
+ Stockholm_1938 = 6308
1890
+ Yacare = 6309
1891
+ Yoff = 6310
1892
+ Zanderij = 6311
1893
+ Militar_Geographische_Institut = 6312
1894
+ Reseau_National_Belge_1972 = 6313
1895
+ Deutsche_Hauptdreiecksnetz = 6314
1896
+ Conakry_1905 = 6315
1897
+ Dealul_Piscului_1930 = 6316
1898
+ Dealul_Piscului_1970 = 6317
1899
+
1900
+ WGS72 = 6322
1901
+ WGS72_Transit_Broadcast_Ephemeris = 6324
1902
+ WGS84 = 6326
1903
+ Ancienne_Triangulation_Francaise = 6901
1904
+ Nord_de_Guerre = 6902
1905
+
1906
+
1907
+ class ModelType(enum.IntEnum):
1908
+ """Model Type Codes."""
1909
+
1910
+ Undefined = 0
1911
+ User_Defined = 32767
1912
+ Projected = 1
1913
+ Geographic = 2
1914
+ Geocentric = 3
1915
+
1916
+
1917
+ class RasterPixel(enum.IntEnum):
1918
+ """Raster Type Codes."""
1919
+
1920
+ Undefined = 0
1921
+ User_Defined = 32767
1922
+ IsArea = 1
1923
+ IsPoint = 2
1924
+
1925
+
1926
+ class Linear(enum.IntEnum):
1927
+ """Linear Units."""
1928
+
1929
+ Undefined = 0
1930
+ User_Defined = 32767
1931
+ Meter = 9001
1932
+ Foot = 9002
1933
+ Foot_US_Survey = 9003
1934
+ Foot_Modified_American = 9004
1935
+ Foot_Clarke = 9005
1936
+ Foot_Indian = 9006
1937
+ Link = 9007
1938
+ Link_Benoit = 9008
1939
+ Link_Sears = 9009
1940
+ Chain_Benoit = 9010
1941
+ Chain_Sears = 9011
1942
+ Yard_Sears = 9012
1943
+ Yard_Indian = 9013
1944
+ Fathom = 9014
1945
+ Mile_International_Nautical = 9015
1946
+
1947
+
1948
+ class Angular(enum.IntEnum):
1949
+ """Angular Units."""
1950
+
1951
+ Undefined = 0
1952
+ User_Defined = 32767
1953
+ Radian = 9101
1954
+ Degree = 9102
1955
+ Arc_Minute = 9103
1956
+ Arc_Second = 9104
1957
+ Grad = 9105
1958
+ Gon = 9106
1959
+ DMS = 9107
1960
+ DMS_Hemisphere = 9108
1961
+
1962
+
1963
+ class PM(enum.IntEnum):
1964
+ """Prime Meridian Codes."""
1965
+
1966
+ Undefined = 0
1967
+ User_Defined = 32767
1968
+ Greenwich = 8901
1969
+ Lisbon = 8902
1970
+ Paris = 8903
1971
+ Bogota = 8904
1972
+ Madrid = 8905
1973
+ Rome = 8906
1974
+ Bern = 8907
1975
+ Jakarta = 8908
1976
+ Ferro = 8909
1977
+ Brussels = 8910
1978
+ Stockholm = 8911
1979
+
1980
+
1981
+ class CT(enum.IntEnum):
1982
+ """Coordinate Transformation Codes."""
1983
+
1984
+ Undefined = 0
1985
+ User_Defined = 32767
1986
+ TransverseMercator = 1
1987
+ TransvMercator_Modified_Alaska = 2
1988
+ ObliqueMercator = 3
1989
+ ObliqueMercator_Laborde = 4
1990
+ ObliqueMercator_Rosenmund = 5
1991
+ ObliqueMercator_Spherical = 6
1992
+ Mercator = 7
1993
+ LambertConfConic_2SP = 8
1994
+ LambertConfConic_Helmert = 9
1995
+ LambertAzimEqualArea = 10
1996
+ AlbersEqualArea = 11
1997
+ AzimuthalEquidistant = 12
1998
+ EquidistantConic = 13
1999
+ Stereographic = 14
2000
+ PolarStereographic = 15
2001
+ ObliqueStereographic = 16
2002
+ Equirectangular = 17
2003
+ CassiniSoldner = 18
2004
+ Gnomonic = 19
2005
+ MillerCylindrical = 20
2006
+ Orthographic = 21
2007
+ Polyconic = 22
2008
+ Robinson = 23
2009
+ Sinusoidal = 24
2010
+ VanDerGrinten = 25
2011
+ NewZealandMapGrid = 26
2012
+ TransvMercator_SouthOriented = 27
2013
+ CylindricalEqualArea = 28
2014
+ HotineObliqueMercatorAzimuthCenter = 9815
2015
+
2016
+
2017
+ class VertCS(enum.IntEnum):
2018
+ """Vertical CS Type Codes."""
2019
+
2020
+ Undefined = 0
2021
+ User_Defined = 32767
2022
+ Airy_1830_ellipsoid = 5001
2023
+ Airy_Modified_1849_ellipsoid = 5002
2024
+ ANS_ellipsoid = 5003
2025
+ Bessel_1841_ellipsoid = 5004
2026
+ Bessel_Modified_ellipsoid = 5005
2027
+ Bessel_Namibia_ellipsoid = 5006
2028
+ Clarke_1858_ellipsoid = 5007
2029
+ Clarke_1866_ellipsoid = 5008
2030
+ Clarke_1880_Benoit_ellipsoid = 5010
2031
+ Clarke_1880_IGN_ellipsoid = 5011
2032
+ Clarke_1880_RGS_ellipsoid = 5012
2033
+ Clarke_1880_Arc_ellipsoid = 5013
2034
+ Clarke_1880_SGA_1922_ellipsoid = 5014
2035
+ Everest_1830_1937_Adjustment_ellipsoid = 5015
2036
+ Everest_1830_1967_Definition_ellipsoid = 5016
2037
+ Everest_1830_1975_Definition_ellipsoid = 5017
2038
+ Everest_1830_Modified_ellipsoid = 5018
2039
+ GRS_1980_ellipsoid = 5019
2040
+ Helmert_1906_ellipsoid = 5020
2041
+ INS_ellipsoid = 5021
2042
+ International_1924_ellipsoid = 5022
2043
+ International_1967_ellipsoid = 5023
2044
+ Krassowsky_1940_ellipsoid = 5024
2045
+ NWL_9D_ellipsoid = 5025
2046
+ NWL_10D_ellipsoid = 5026
2047
+ Plessis_1817_ellipsoid = 5027
2048
+ Struve_1860_ellipsoid = 5028
2049
+ War_Office_ellipsoid = 5029
2050
+ WGS_84_ellipsoid = 5030
2051
+ GEM_10C_ellipsoid = 5031
2052
+ OSU86F_ellipsoid = 5032
2053
+ OSU91A_ellipsoid = 5033
2054
+ # Orthometric Vertical CS
2055
+ Newlyn = 5101
2056
+ North_American_Vertical_Datum_1929 = 5102
2057
+ North_American_Vertical_Datum_1988 = 5103
2058
+ Yellow_Sea_1956 = 5104
2059
+ Baltic_Sea = 5105
2060
+ Caspian_Sea = 5106
2061
+
2062
+
2063
+ GEO_CODES: dict[int, type[enum.IntEnum]] = {
2064
+ # map :py:class:`GeoKeys` to GeoTIFF codes
2065
+ GeoKeys.GTModelTypeGeoKey: ModelType,
2066
+ GeoKeys.GTRasterTypeGeoKey: RasterPixel,
2067
+ GeoKeys.GeographicTypeGeoKey: GCS,
2068
+ GeoKeys.GeogPrimeMeridianGeoKey: PM,
2069
+ GeoKeys.GeogLinearUnitsGeoKey: Linear,
2070
+ GeoKeys.GeogAngularUnitsGeoKey: Angular,
2071
+ GeoKeys.GeogEllipsoidGeoKey: Ellipse,
2072
+ GeoKeys.GeogAzimuthUnitsGeoKey: Angular,
2073
+ GeoKeys.ProjectedCSTypeGeoKey: PCS,
2074
+ GeoKeys.ProjectionGeoKey: Proj,
2075
+ GeoKeys.ProjCoordTransGeoKey: CT,
2076
+ GeoKeys.ProjLinearUnitsGeoKey: Linear,
2077
+ GeoKeys.VerticalCSTypeGeoKey: VertCS,
2078
+ # GeoKeys.VerticalDatumGeoKey: VertCS,
2079
+ GeoKeys.VerticalUnitsGeoKey: Linear,
2080
+ }
envs/kitoverlay/tifffile/lsm2bin.py ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ # tifffile/lsm2bin.py
3
+
4
+ """Convert [MP]TZCYX LSM file to series of BIN files."""
5
+
6
+ from __future__ import annotations
7
+
8
+ import argparse
9
+ import sys
10
+
11
+ try:
12
+ from .tifffile import lsm2bin
13
+ except ImportError:
14
+ try:
15
+ from tifffile.tifffile import lsm2bin
16
+ except ImportError:
17
+ from tifffile import lsm2bin # noqa: PLW0406
18
+
19
+
20
+ def main(argv: list[str] | None = None) -> int:
21
+ """Lsm2bin command line usage main function."""
22
+ parser = argparse.ArgumentParser(
23
+ prog='lsm2bin',
24
+ description='Convert [MP]TZCYX LSM file to series of BIN files.',
25
+ epilog='Example: lsm2bin input.lsm output --tile 512 512',
26
+ formatter_class=argparse.RawDescriptionHelpFormatter,
27
+ )
28
+ parser.add_argument('lsmfile', help='path to the LSM input file')
29
+ parser.add_argument(
30
+ 'binfile',
31
+ nargs='?',
32
+ help='common name of output BIN files (default: lsmfile name)',
33
+ )
34
+ parser.add_argument(
35
+ '--tile',
36
+ nargs=2,
37
+ type=int,
38
+ metavar=('Y', 'X'),
39
+ help='tile Y and X dimensions (default: 256 256)',
40
+ )
41
+ parser.add_argument(
42
+ '--quiet',
43
+ action='store_true',
44
+ help='suppress progress output',
45
+ )
46
+ args = parser.parse_args(None if argv is None else argv[1:])
47
+
48
+ if args.tile is not None and any(v <= 0 for v in args.tile):
49
+ parser.error('--tile values must be positive integers')
50
+
51
+ tile = (args.tile[0], args.tile[1]) if args.tile is not None else None
52
+
53
+ try:
54
+ lsm2bin(
55
+ args.lsmfile,
56
+ args.binfile,
57
+ tile=tile,
58
+ verbose=not args.quiet,
59
+ )
60
+ except Exception as exc:
61
+ print(f'{args.lsmfile}: {exc}', file=sys.stderr)
62
+ return 1
63
+ return 0
64
+
65
+
66
+ if __name__ == '__main__':
67
+ sys.exit(main())
envs/kitoverlay/tifffile/numcodecs.py ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # tifffile/numcodecs.py
2
+
3
+ # Copyright (c) 2021-2026, Christoph Gohlke
4
+ # All rights reserved.
5
+ #
6
+ # Redistribution and use in source and binary forms, with or without
7
+ # modification, are permitted provided that the following conditions are met:
8
+ #
9
+ # 1. Redistributions of source code must retain the above copyright notice,
10
+ # this list of conditions and the following disclaimer.
11
+ #
12
+ # 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ # this list of conditions and the following disclaimer in the documentation
14
+ # and/or other materials provided with the distribution.
15
+ #
16
+ # 3. Neither the name of the copyright holder nor the names of its
17
+ # contributors may be used to endorse or promote products derived from
18
+ # this software without specific prior written permission.
19
+ #
20
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
+ # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
24
+ # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
+ # POSSIBILITY OF SUCH DAMAGE.
31
+
32
+ """TIFF codec for the Numcodecs package."""
33
+
34
+ from __future__ import annotations
35
+
36
+ __all__ = ['Tiff', 'register_codec']
37
+
38
+ from io import BytesIO
39
+ from typing import TYPE_CHECKING
40
+
41
+ from numcodecs import registry
42
+ from numcodecs.abc import Codec
43
+
44
+ from .tifffile import METADATA_DEFAULT, TiffFile, TiffWriter
45
+
46
+ if TYPE_CHECKING:
47
+ from collections.abc import Sequence
48
+ from typing import Any
49
+
50
+ from .tifffile import (
51
+ COMPRESSION,
52
+ EXTRASAMPLE,
53
+ PHOTOMETRIC,
54
+ PLANARCONFIG,
55
+ PREDICTOR,
56
+ ByteOrder,
57
+ TagTuple,
58
+ )
59
+
60
+
61
+ class Tiff(Codec): # type: ignore[misc]
62
+ """TIFF codec for Numcodecs."""
63
+
64
+ codec_id = 'tifffile'
65
+
66
+ def __init__(
67
+ self,
68
+ # TiffFile.asarray
69
+ key: int | slice | Sequence[int] | None = None,
70
+ series: int | None = None,
71
+ level: int | None = None,
72
+ squeeze: bool | None = None,
73
+ buffersize: int | None = None,
74
+ # TiffWriter
75
+ bigtiff: bool = False,
76
+ byteorder: ByteOrder | None = None,
77
+ imagej: bool = False,
78
+ ome: bool | None = None,
79
+ # TiffWriter.write
80
+ photometric: PHOTOMETRIC | int | str | None = None,
81
+ planarconfig: PLANARCONFIG | int | str | None = None,
82
+ extrasamples: Sequence[EXTRASAMPLE | int | str] | None = None,
83
+ volumetric: bool = False,
84
+ tile: Sequence[int] | None = None,
85
+ rowsperstrip: int | None = None,
86
+ compression: COMPRESSION | int | str | None = None,
87
+ compressionargs: dict[str, Any] | None = None,
88
+ predictor: PREDICTOR | int | str | bool | None = None,
89
+ subsampling: tuple[int, int] | None = None,
90
+ metadata: dict[str, Any] | None = METADATA_DEFAULT,
91
+ extratags: Sequence[TagTuple] | None = None,
92
+ truncate: bool = False,
93
+ maxworkers: int | None = None,
94
+ ) -> None:
95
+ self.key = key
96
+ self.series = series
97
+ self.level = level
98
+ self.squeeze = squeeze
99
+ self.buffersize = buffersize
100
+ self.bigtiff = bigtiff
101
+ self.byteorder = byteorder
102
+ self.imagej = imagej
103
+ self.ome = ome
104
+ self.photometric = photometric
105
+ self.planarconfig = planarconfig
106
+ self.extrasamples = extrasamples
107
+ self.volumetric = volumetric
108
+ self.tile = tile
109
+ self.rowsperstrip = rowsperstrip
110
+ self.compression = compression
111
+ self.compressionargs = compressionargs
112
+ self.predictor = predictor
113
+ self.subsampling = subsampling
114
+ self.metadata = metadata
115
+ self.extratags = extratags
116
+ self.truncate = truncate
117
+ self.maxworkers = maxworkers
118
+
119
+ def encode(self, buf: Any) -> bytes:
120
+ """Return TIFF file as bytes."""
121
+ with BytesIO() as fh:
122
+ with TiffWriter(
123
+ fh,
124
+ bigtiff=self.bigtiff,
125
+ byteorder=self.byteorder,
126
+ imagej=self.imagej,
127
+ ome=self.ome,
128
+ ) as tif:
129
+ tif.write(
130
+ buf,
131
+ photometric=self.photometric,
132
+ planarconfig=self.planarconfig,
133
+ extrasamples=self.extrasamples,
134
+ volumetric=self.volumetric,
135
+ tile=self.tile,
136
+ rowsperstrip=self.rowsperstrip,
137
+ compression=self.compression,
138
+ compressionargs=self.compressionargs,
139
+ predictor=self.predictor,
140
+ subsampling=self.subsampling,
141
+ metadata=self.metadata,
142
+ extratags=self.extratags,
143
+ truncate=self.truncate,
144
+ maxworkers=self.maxworkers,
145
+ )
146
+ return fh.getvalue()
147
+
148
+ def decode(self, buf: Any, out: Any = None) -> Any:
149
+ """Return decoded image as NumPy array."""
150
+ with BytesIO(buf) as fh, TiffFile(fh) as tif:
151
+ return tif.asarray(
152
+ key=self.key,
153
+ series=self.series,
154
+ level=self.level,
155
+ squeeze=self.squeeze,
156
+ maxworkers=self.maxworkers,
157
+ buffersize=self.buffersize,
158
+ out=out,
159
+ )
160
+
161
+
162
+ def register_codec(
163
+ cls: type[Codec] = Tiff, codec_id: str | None = None
164
+ ) -> None:
165
+ """Register :py:class:`Tiff` codec with Numcodecs."""
166
+ registry.register_codec(cls, codec_id=codec_id)
envs/kitoverlay/tifffile/py.typed ADDED
File without changes
envs/kitoverlay/tifffile/tiff2fsspec.py ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ # tifffile/tiff2fsspec.py
3
+
4
+ """Write fsspec ReferenceFileSystem for TIFF file."""
5
+
6
+ from __future__ import annotations
7
+
8
+ import argparse
9
+ import contextlib
10
+ import json
11
+ import sys
12
+ from typing import Any
13
+
14
+ try:
15
+ from .tifffile import tiff2fsspec
16
+ except ImportError:
17
+ try:
18
+ from tifffile.tifffile import tiff2fsspec
19
+ except ImportError:
20
+ from tifffile import tiff2fsspec # noqa: PLW0406
21
+
22
+
23
+ def main(argv: list[str] | None = None) -> int:
24
+ """Tiff2fsspec command line usage main function."""
25
+ parser = argparse.ArgumentParser(
26
+ prog='tiff2fsspec',
27
+ description='Write fsspec ReferenceFileSystem for TIFF file.',
28
+ epilog='Example: tiff2fsspec ./test.ome.tif https://server.com/path/',
29
+ formatter_class=argparse.RawDescriptionHelpFormatter,
30
+ )
31
+ parser.add_argument('tifffile', help='path to the local TIFF input file')
32
+ parser.add_argument(
33
+ 'url', help='remote URL of TIFF file without file name'
34
+ )
35
+ parser.add_argument('--out', help='path to the JSON output file')
36
+ parser.add_argument('--series', type=int, help='index of series in file')
37
+ parser.add_argument('--level', type=int, help='index of level in series')
38
+ parser.add_argument(
39
+ '--key', type=int, help='index of page in file or series'
40
+ )
41
+ parser.add_argument(
42
+ '--chunkmode',
43
+ metavar='mode',
44
+ help='mode used for chunking (int or string, e.g. "pages")',
45
+ )
46
+ parser.add_argument(
47
+ '--fillvalue',
48
+ type=float,
49
+ help='fill value for missing data',
50
+ )
51
+ parser.add_argument(
52
+ '--squeeze',
53
+ action=argparse.BooleanOptionalAction,
54
+ help='squeeze length-1 dimensions from zarr store',
55
+ )
56
+ parser.add_argument(
57
+ '--groupname',
58
+ help='name of the zarr group in the fsspec output',
59
+ )
60
+ parser.add_argument(
61
+ '--zattrs',
62
+ metavar='JSON',
63
+ help='custom Zarr attributes as a JSON object string',
64
+ )
65
+ parser.add_argument(
66
+ '--ref-version',
67
+ dest='version',
68
+ type=int,
69
+ help='version of ReferenceFileSystem spec',
70
+ )
71
+ args = parser.parse_args(None if argv is None else argv[1:])
72
+
73
+ chunkmode: int | str | None = args.chunkmode
74
+ if chunkmode is not None:
75
+ with contextlib.suppress(ValueError):
76
+ chunkmode = int(chunkmode)
77
+
78
+ zattrs: dict[str, Any] | None = None
79
+ if args.zattrs is not None:
80
+ try:
81
+ zattrs = json.loads(args.zattrs)
82
+ except json.JSONDecodeError as exc:
83
+ parser.error(f'--zattrs is not valid JSON: {exc}')
84
+ if not isinstance(zattrs, dict):
85
+ parser.error(
86
+ '--zattrs must be a JSON object, not an array or scalar'
87
+ )
88
+
89
+ try:
90
+ tiff2fsspec(
91
+ args.tifffile,
92
+ args.url,
93
+ out=args.out,
94
+ key=args.key,
95
+ series=args.series,
96
+ level=args.level,
97
+ chunkmode=chunkmode,
98
+ fillvalue=args.fillvalue,
99
+ squeeze=args.squeeze,
100
+ groupname=args.groupname,
101
+ zattrs=zattrs,
102
+ version=args.version,
103
+ )
104
+ except Exception as exc:
105
+ print(f'{args.tifffile}: {exc}', file=sys.stderr)
106
+ return 1
107
+ return 0
108
+
109
+
110
+ if __name__ == '__main__':
111
+ sys.exit(main())
envs/kitoverlay/tifffile/tiffcomment.py ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ # tifffile/tiffcomment.py
3
+
4
+ """Print or replace ImageDescription in first page of TIFF file."""
5
+
6
+ from __future__ import annotations
7
+
8
+ import argparse
9
+ import contextlib
10
+ import sys
11
+
12
+ try:
13
+ from .tifffile import tiffcomment
14
+ except ImportError:
15
+ try:
16
+ from tifffile.tifffile import tiffcomment
17
+ except ImportError:
18
+ from tifffile import tiffcomment # noqa: PLW0406
19
+
20
+
21
+ def main(argv: list[str] | None = None) -> int:
22
+ """Tiffcomment command line usage main function."""
23
+ parser = argparse.ArgumentParser(
24
+ prog='tiffcomment',
25
+ description=(
26
+ 'Print or replace ImageDescription in first page of TIFF file.'
27
+ ),
28
+ epilog=(
29
+ 'Example: tiffcomment --set "my description" image.tif\n'
30
+ 'When multiple files are given with --set or --set-file,'
31
+ ' the same comment is written to all of them.'
32
+ ),
33
+ formatter_class=argparse.RawDescriptionHelpFormatter,
34
+ )
35
+ parser.add_argument(
36
+ 'files',
37
+ nargs='+',
38
+ metavar='file',
39
+ help='TIFF file(s) to read or modify',
40
+ )
41
+ comment_group = parser.add_mutually_exclusive_group()
42
+ comment_group.add_argument(
43
+ '--set',
44
+ dest='comment',
45
+ metavar='comment',
46
+ help='replacement comment string',
47
+ )
48
+ comment_group.add_argument(
49
+ '--set-file',
50
+ dest='comment_file',
51
+ type=argparse.FileType('rb'),
52
+ metavar='file',
53
+ help='path to a file whose raw bytes replace the comment',
54
+ )
55
+ parser.add_argument(
56
+ '--page',
57
+ dest='pageindex',
58
+ type=int,
59
+ metavar='N',
60
+ help='index of page to read or modify (default: 0)',
61
+ )
62
+ parser.add_argument(
63
+ '--tag',
64
+ dest='tagcode',
65
+ metavar='code',
66
+ help='tag code or name to read or modify (default: ImageDescription)',
67
+ )
68
+ args = parser.parse_args(None if argv is None else argv[1:])
69
+
70
+ comment: bytes | None
71
+ if args.comment_file is not None:
72
+ with args.comment_file:
73
+ comment = args.comment_file.read()
74
+ elif args.comment is not None:
75
+ try:
76
+ comment = args.comment.encode('ascii')
77
+ except UnicodeEncodeError:
78
+ parser.error(
79
+ 'comment contains non-ASCII characters;'
80
+ ' use --set-file with a pre-encoded file'
81
+ )
82
+ # comment = b'' # unreachable; satisfies mypy
83
+ else:
84
+ comment = None
85
+
86
+ tagcode: int | str | None = args.tagcode
87
+ if tagcode is not None:
88
+ with contextlib.suppress(ValueError):
89
+ tagcode = int(tagcode)
90
+
91
+ ret = 0
92
+ for file in args.files:
93
+ try:
94
+ result = tiffcomment(
95
+ file, comment, pageindex=args.pageindex, tagcode=tagcode
96
+ )
97
+ except Exception as exc:
98
+ print(f'{file}: {exc}', file=sys.stderr)
99
+ ret = 1
100
+ else:
101
+ if result:
102
+ if isinstance(result, bytes):
103
+ result = result.decode(errors='replace')
104
+ if len(args.files) > 1:
105
+ print(f'# {file}')
106
+ print(result)
107
+ if len(args.files) > 1:
108
+ print()
109
+ return ret
110
+
111
+
112
+ if __name__ == '__main__':
113
+ sys.exit(main())
envs/kitoverlay/tifffile/tifffile.py ADDED
The diff for this file is too large to render. See raw diff
 
envs/kitoverlay/tifffile/zarr.py ADDED
@@ -0,0 +1,1617 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # tifffile/zarr.py
2
+
3
+ # Copyright (c) 2008-2026, Christoph Gohlke
4
+ # All rights reserved.
5
+ #
6
+ # Redistribution and use in source and binary forms, with or without
7
+ # modification, are permitted provided that the following conditions are met:
8
+ #
9
+ # 1. Redistributions of source code must retain the above copyright notice,
10
+ # this list of conditions and the following disclaimer.
11
+ #
12
+ # 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ # this list of conditions and the following disclaimer in the documentation
14
+ # and/or other materials provided with the distribution.
15
+ #
16
+ # 3. Neither the name of the copyright holder nor the names of its
17
+ # contributors may be used to endorse or promote products derived from
18
+ # this software without specific prior written permission.
19
+ #
20
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
+ # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
24
+ # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
+ # POSSIBILITY OF SUCH DAMAGE.
31
+
32
+ """Zarr 3 TIFF and file sequence stores."""
33
+
34
+ from __future__ import annotations
35
+
36
+ __all__ = ['ZarrFileSequenceStore', 'ZarrStore', 'ZarrTiffStore']
37
+
38
+ import asyncio
39
+ import base64
40
+ import contextlib
41
+ import json
42
+ import sys
43
+ from typing import TYPE_CHECKING
44
+
45
+ import numpy
46
+ import zarr
47
+
48
+ try:
49
+ from zarr.abc.store import ByteRequest, Store
50
+ from zarr.core.buffer.cpu import NDBuffer
51
+ from zarr.core.chunk_grids import RegularChunkGrid
52
+ from zarr.core.indexing import BasicIndexer
53
+ except ImportError as exc:
54
+ msg = f'zarr {zarr.__version__} < 3 is not supported'
55
+ raise ValueError(msg) from exc
56
+
57
+ from .tifffile import (
58
+ CHUNKMODE,
59
+ COMPRESSION,
60
+ FileCache,
61
+ FileSequence,
62
+ NullContext,
63
+ TiffFrame,
64
+ TiffPage,
65
+ TiffPageSeries,
66
+ TiledSequence,
67
+ create_output,
68
+ enumarg,
69
+ imread,
70
+ jpeg_decode_colorspace,
71
+ product,
72
+ )
73
+
74
+ if TYPE_CHECKING:
75
+ import os
76
+ import threading
77
+ from collections.abc import (
78
+ AsyncIterator,
79
+ Callable,
80
+ Iterable,
81
+ Iterator,
82
+ Sequence,
83
+ )
84
+ from typing import Any, TextIO
85
+
86
+ from numpy.typing import DTypeLike, NDArray
87
+ from zarr.core.buffer import Buffer, BufferPrototype
88
+ from zarr.core.indexing import BasicSelection
89
+
90
+ from .tifffile import ByteOrder, OutputType
91
+
92
+
93
+ class ZarrStore(Store):
94
+ """Zarr 3 store base class.
95
+
96
+ Parameters:
97
+ fillvalue:
98
+ Value to use for missing chunks of Zarr store.
99
+ The default is 0.
100
+ chunkmode:
101
+ Specifies how to chunk data.
102
+ read_only:
103
+ Passed to :py:class:`zarr.abc.store.Store`.
104
+
105
+ References:
106
+ 1. https://zarr.readthedocs.io/en/stable/api/zarr/abc/store/
107
+ 2. https://zarr.readthedocs.io/en/stable/spec/v2.html
108
+ 3. https://forum.image.sc/t/multiscale-arrays-v0-1/37930
109
+
110
+ """
111
+
112
+ _read_only: bool
113
+ _store: dict[str, Any]
114
+ _fillvalue: float
115
+ _chunkmode: int
116
+
117
+ def __init__(
118
+ self,
119
+ /,
120
+ *,
121
+ fillvalue: float | None = None,
122
+ chunkmode: CHUNKMODE | int | str | None = None,
123
+ read_only: bool = True,
124
+ ) -> None:
125
+ super().__init__(read_only=read_only)
126
+
127
+ self._store = {}
128
+ self._fillvalue = 0 if fillvalue is None else fillvalue
129
+ if chunkmode is None:
130
+ self._chunkmode = CHUNKMODE(0)
131
+ else:
132
+ self._chunkmode = enumarg(CHUNKMODE, chunkmode)
133
+
134
+ def __hash__(self) -> int:
135
+ return hash(
136
+ (tuple(self._store.items()), self._fillvalue, self._chunkmode)
137
+ )
138
+
139
+ def __eq__(self, other: object) -> bool:
140
+ """Return whether objects are equal."""
141
+ return (
142
+ isinstance(other, type(self))
143
+ and self._store == other._store
144
+ and self._fillvalue == other._fillvalue
145
+ and self._chunkmode == other._chunkmode
146
+ )
147
+
148
+ async def get_partial_values(
149
+ self,
150
+ prototype: BufferPrototype,
151
+ key_ranges: Iterable[tuple[str, ByteRequest | None]],
152
+ ) -> list[Buffer | None]:
153
+ """Return possibly partial values from given key_ranges."""
154
+ # print(f'get_partial_values({key_ranges=})')
155
+ return [
156
+ await self.get(key, prototype, byte_range)
157
+ for key, byte_range in key_ranges
158
+ ]
159
+
160
+ @property
161
+ def supports_writes(self) -> bool:
162
+ """Store supports writes."""
163
+ return not self._read_only
164
+
165
+ def _set(self, key: str, value: Buffer, /) -> None:
166
+ """Store (key, value) pair."""
167
+ raise NotImplementedError
168
+
169
+ async def set(self, key: str, value: Buffer) -> None:
170
+ """Store (key, value) pair."""
171
+ self._set(key, value)
172
+
173
+ @property
174
+ def supports_deletes(self) -> bool:
175
+ """Store supports deletes."""
176
+ return False
177
+
178
+ async def delete(self, key: str) -> None:
179
+ """Remove key from store."""
180
+ msg = 'ZarrStore does not support deletes'
181
+ raise PermissionError(msg)
182
+
183
+ @property
184
+ def supports_listing(self) -> bool:
185
+ """Store supports listing."""
186
+ return True
187
+
188
+ async def list(self) -> AsyncIterator[str]:
189
+ """Return all keys in store."""
190
+ for key in self._store:
191
+ yield key
192
+
193
+ async def list_prefix(self, prefix: str) -> AsyncIterator[str]:
194
+ """Return all keys in store that begin with prefix.
195
+
196
+ Keys are returned relative to the root of the store.
197
+
198
+ """
199
+ for key in list(self._store):
200
+ if key.startswith(prefix):
201
+ yield key
202
+
203
+ async def list_dir(self, prefix: str) -> AsyncIterator[str]:
204
+ """Return all keys and prefixes with prefix.
205
+
206
+ Keys and prefixes do not contain the character "/" after the given
207
+ prefix.
208
+
209
+ """
210
+ prefix = prefix.rstrip('/')
211
+ if prefix == '':
212
+ keys_unique = {k.split('/')[0] for k in self._store}
213
+ else:
214
+ keys_unique = {
215
+ key.removeprefix(prefix + '/').split('/')[0]
216
+ for key in self._store
217
+ if key.startswith(prefix + '/') and key != prefix
218
+ }
219
+ for key in keys_unique:
220
+ yield key
221
+
222
+ @property
223
+ def is_multiscales(self) -> bool:
224
+ """Return whether ZarrStore contains multiscales."""
225
+ return b'multiscales' in self._store.get('.zattrs', b'')
226
+
227
+ def __repr__(self) -> str:
228
+ return f'{self.__class__.__name__}'
229
+
230
+ # async def _get_many(
231
+ # self,
232
+ # requests: Iterable[tuple[str, BufferPrototype, ByteRequest | None]]
233
+ # ) -> AsyncGenerator[tuple[str, Buffer | None], None]:
234
+ # print(f'_get_many({requests=})')
235
+ # return super()._get_many(requests)
236
+
237
+ # async def getsize_prefix(self, prefix: str) -> int:
238
+ # print(f'getsize_prefix({prefix=})')
239
+ # return super().getsize_prefix(prefix)
240
+
241
+
242
+ class ZarrTiffStore(ZarrStore):
243
+ """Zarr 3 store interface to image array in TiffPage or TiffPageSeries.
244
+
245
+ ZarrTiffStore is using a TiffFile instance for reading and decoding chunks.
246
+ Therefore, ZarrTiffStore instances cannot be pickled.
247
+
248
+ For writing, image data must be stored in uncompressed, unpredicted,
249
+ and unpacked form. Sparse strips and tiles are not written.
250
+
251
+ Parameters:
252
+ arg:
253
+ TIFF page or series to wrap as Zarr store.
254
+ level:
255
+ Pyramidal level to wrap. The default is 0.
256
+ chunkmode:
257
+ Use strips or tiles (0) or whole page data (2) as chunks.
258
+ The default is 0.
259
+ fillvalue:
260
+ Value to use for missing chunks. The default is 0.
261
+ zattrs:
262
+ Additional attributes to store in `.zattrs`.
263
+ multiscales:
264
+ Create a multiscales-compatible Zarr group store.
265
+ By default, create a Zarr array store for pages and non-pyramidal
266
+ series.
267
+ lock:
268
+ Reentrant lock to synchronize seeks and reads from file.
269
+ By default, the lock of the parent's file handle is used.
270
+ squeeze:
271
+ Remove length-1 dimensions from shape of TiffPageSeries.
272
+ maxworkers:
273
+ If `chunkmode=0`, asynchronously run chunk decode function
274
+ in separate thread if greater than 1.
275
+ If `chunkmode=2`, maximum number of threads to concurrently decode
276
+ strips or tiles.
277
+ If *None* or *0*, use up to :py:attr:`_TIFF.MAXWORKERS` or
278
+ asyncio assigned threads.
279
+ buffersize:
280
+ Approximate number of bytes to read from file in one pass
281
+ if `chunkmode=2`. The default is :py:attr:`_TIFF.BUFFERSIZE`.
282
+ read_only:
283
+ Passed to :py:class:`zarr.abc.store.Store`.
284
+ _openfiles:
285
+ Internal API.
286
+
287
+ """
288
+
289
+ _data: list[TiffPageSeries]
290
+ _filecache: FileCache
291
+ _transform: Callable[[NDArray[Any]], NDArray[Any]] | None
292
+ _maxworkers: int
293
+ _buffersize: int | None
294
+ _squeeze: bool | None
295
+ _multiscales: bool
296
+
297
+ def __init__(
298
+ self,
299
+ arg: TiffPage | TiffFrame | TiffPageSeries,
300
+ /,
301
+ *,
302
+ level: int | None = None,
303
+ chunkmode: CHUNKMODE | int | str | None = None,
304
+ fillvalue: float | None = None,
305
+ zattrs: dict[str, Any] | None = None,
306
+ multiscales: bool | None = None,
307
+ lock: threading.RLock | NullContext | None = None,
308
+ squeeze: bool | None = None,
309
+ maxworkers: int | None = None,
310
+ buffersize: int | None = None,
311
+ read_only: bool | None = None,
312
+ _openfiles: int | None = None,
313
+ ) -> None:
314
+ if chunkmode is None:
315
+ chunkmode = CHUNKMODE(0)
316
+ else:
317
+ chunkmode = enumarg(CHUNKMODE, chunkmode)
318
+
319
+ if chunkmode not in {0, 2}:
320
+ msg = f'{chunkmode!r} not implemented'
321
+ raise NotImplementedError(msg)
322
+
323
+ self._squeeze = None if squeeze is None else bool(squeeze)
324
+ self._buffersize = buffersize
325
+
326
+ if isinstance(arg, TiffPageSeries):
327
+ self._data = arg.levels
328
+ self._transform = arg.transform
329
+ if multiscales is False:
330
+ level = 0
331
+ if level is not None:
332
+ self._data = [self._data[level]]
333
+ name = arg.name
334
+ else:
335
+ self._data = [TiffPageSeries([arg])]
336
+ self._transform = None
337
+ name = 'Unnamed'
338
+
339
+ if not maxworkers:
340
+ maxworkers = self._data[0].keyframe.maxworkers
341
+ if maxworkers < 3 and chunkmode == 0:
342
+ maxworkers = 1
343
+ self._maxworkers = maxworkers
344
+
345
+ fh = self._data[0].keyframe.parent.root.filehandle
346
+
347
+ if read_only is None:
348
+ read_only = not fh.writable() or chunkmode != 0
349
+
350
+ super().__init__(
351
+ fillvalue=fillvalue, chunkmode=chunkmode, read_only=read_only
352
+ )
353
+
354
+ if lock is None:
355
+ fh.set_lock(True)
356
+ lock = fh.lock
357
+ self._filecache = FileCache(size=_openfiles, lock=lock)
358
+
359
+ zattrs = {} if zattrs is None else dict(zattrs)
360
+ # TODO: Zarr Encoding Specification
361
+ # https://xarray.pydata.org/en/stable/internals/zarr-encoding-spec.html
362
+
363
+ if multiscales is True or (
364
+ multiscales is None and len(self._data) > 1
365
+ ):
366
+ # multiscales
367
+ self._multiscales = True
368
+ if '_ARRAY_DIMENSIONS' in zattrs:
369
+ array_dimensions = zattrs.pop('_ARRAY_DIMENSIONS')
370
+ else:
371
+ array_dimensions = list(self._data[0].get_axes(squeeze))
372
+ self._store['.zgroup'] = _json_dumps({'zarr_format': 2})
373
+ self._store['.zattrs'] = _json_dumps(
374
+ {
375
+ # TODO: use https://ngff.openmicroscopy.org/latest/
376
+ 'multiscales': [
377
+ {
378
+ 'version': '0.1',
379
+ 'name': name,
380
+ 'datasets': [
381
+ {'path': str(i)}
382
+ for i in range(len(self._data))
383
+ ],
384
+ # 'axes': [...]
385
+ # 'type': 'unknown',
386
+ 'metadata': {},
387
+ }
388
+ ],
389
+ **zattrs,
390
+ }
391
+ )
392
+ shape0 = self._data[0].get_shape(squeeze)
393
+ for ilevel, series in enumerate(self._data):
394
+ fillvalue, shape = self._init_zarray(
395
+ series, f'{ilevel}/.zarray', squeeze, fillvalue
396
+ )
397
+ self._store[f'{ilevel}/.zattrs'] = _json_dumps(
398
+ {
399
+ '_ARRAY_DIMENSIONS': [
400
+ (f'{ax}{ilevel}' if i != j else ax)
401
+ for ax, i, j in zip(
402
+ array_dimensions, shape, shape0, strict=True
403
+ )
404
+ ]
405
+ }
406
+ )
407
+ else:
408
+ self._multiscales = False
409
+ series = self._data[0]
410
+ if '_ARRAY_DIMENSIONS' not in zattrs:
411
+ zattrs['_ARRAY_DIMENSIONS'] = list(series.get_axes(squeeze))
412
+ self._store['.zattrs'] = _json_dumps(zattrs)
413
+ self._init_zarray(series, '.zarray', squeeze, fillvalue)
414
+
415
+ def _init_zarray(
416
+ self,
417
+ series: TiffPageSeries,
418
+ key: str,
419
+ squeeze: bool | None, # noqa: FBT001
420
+ fillvalue: float | None,
421
+ /,
422
+ ) -> tuple[float | None, tuple[int, ...]]:
423
+ """Store .zarray for series; return updated fillvalue and shape."""
424
+ keyframe = series.keyframe
425
+ keyframe.decode # noqa: B018 - cache decode function
426
+ shape = series.get_shape(squeeze)
427
+ dtype = series.dtype
428
+ if fillvalue is None:
429
+ fillvalue = keyframe.nodata
430
+ self._fillvalue = fillvalue
431
+ chunks = keyframe.shape if self._chunkmode else keyframe.chunks
432
+ self._store[key] = _json_dumps(
433
+ {
434
+ 'zarr_format': 2,
435
+ 'shape': shape,
436
+ 'chunks': _chunks(chunks, shape, keyframe.shaped),
437
+ 'dtype': _dtype_str(dtype),
438
+ 'compressor': None,
439
+ 'fill_value': _json_value(fillvalue, dtype),
440
+ 'order': 'C',
441
+ 'filters': None,
442
+ }
443
+ )
444
+ if not self._read_only:
445
+ self._read_only = not _is_writable(keyframe)
446
+ return fillvalue, shape
447
+
448
+ def close(self) -> None:
449
+ """Close store."""
450
+ super().close()
451
+ self._filecache.clear()
452
+
453
+ def write_fsspec(
454
+ self,
455
+ jsonfile: str | os.PathLike[Any] | TextIO,
456
+ /,
457
+ url: str | None,
458
+ *,
459
+ groupname: str | None = None,
460
+ templatename: str | None = None,
461
+ compressors: dict[COMPRESSION | int, str | None] | None = None,
462
+ version: int | None = None,
463
+ _shape: Sequence[int] | None = None,
464
+ _axes: Sequence[str] | None = None,
465
+ _index: Sequence[int] | None = None,
466
+ _append: bool = False,
467
+ _close: bool = True,
468
+ ) -> None:
469
+ """Write fsspec ReferenceFileSystem as JSON to file.
470
+
471
+ Parameters:
472
+ jsonfile:
473
+ Name or open file handle of output JSON file.
474
+ url:
475
+ Remote location of TIFF file(s) without file name(s).
476
+ groupname:
477
+ Zarr group name.
478
+ templatename:
479
+ Version 1 URL template name. The default is 'u'.
480
+ compressors:
481
+ Mapping of :py:class:`COMPRESSION` codes to Numcodecs codec
482
+ names.
483
+ version:
484
+ Version of fsspec file to write. The default is 0.
485
+ _shape:
486
+ Shape of file sequence (experimental).
487
+ _axes:
488
+ Axes of file sequence (experimental).
489
+ _index:
490
+ Index of file in sequence (experimental).
491
+ _append:
492
+ If *True*, only write index keys and values (experimental).
493
+ _close:
494
+ If *True*, no more appends (experimental).
495
+
496
+ Raises:
497
+ ValueError:
498
+ ZarrTiffStore cannot be represented as ReferenceFileSystem
499
+ due to features that are not supported by Zarr, Numcodecs,
500
+ or Imagecodecs:
501
+
502
+ - compressors, such as CCITT
503
+ - filters, such as bitorder reversal, packed integers
504
+ - dtypes, such as float24, complex integers
505
+ - JPEGTables in multi-page series
506
+ - incomplete chunks, such as `imagelength % rowsperstrip != 0`
507
+
508
+ Files containing incomplete tiles may fail at runtime.
509
+
510
+ Notes:
511
+ Parameters `_shape`, `_axes`, `_index`, `_append`, and `_close`
512
+ are an experimental API for joining the ReferenceFileSystems of
513
+ multiple files of a TiffSequence.
514
+
515
+ References:
516
+ - `fsspec ReferenceFileSystem format
517
+ <https://github.com/fsspec/kerchunk>`_
518
+
519
+ """
520
+ compressors = {
521
+ 1: None,
522
+ 8: 'zlib',
523
+ 32946: 'zlib',
524
+ 34925: 'lzma',
525
+ 50013: 'zlib', # pixtiff
526
+ 5: 'imagecodecs_lzw',
527
+ 7: 'imagecodecs_jpeg',
528
+ 22610: 'imagecodecs_jpegxr',
529
+ 32773: 'imagecodecs_packbits',
530
+ 33003: 'imagecodecs_jpeg2k',
531
+ 33004: 'imagecodecs_jpeg2k',
532
+ 33005: 'imagecodecs_jpeg2k',
533
+ 33007: 'imagecodecs_jpeg',
534
+ 34712: 'imagecodecs_jpeg2k',
535
+ 34887: 'imagecodecs_lerc',
536
+ 34892: 'imagecodecs_jpeg',
537
+ 34933: 'imagecodecs_png',
538
+ 34934: 'imagecodecs_jpegxr',
539
+ 48124: 'imagecodecs_jetraw',
540
+ 50000: 'imagecodecs_zstd', # numcodecs.zstd fails w/ unknown sizes
541
+ 50001: 'imagecodecs_webp',
542
+ 50002: 'imagecodecs_jpegxl',
543
+ 52546: 'imagecodecs_jpegxl',
544
+ **({} if compressors is None else compressors),
545
+ }
546
+
547
+ for series in self._data:
548
+ errormsg = ' not supported by the fsspec ReferenceFileSystem'
549
+ keyframe = series.keyframe
550
+ if (
551
+ keyframe.compression in {65000, 65001, 65002}
552
+ and keyframe.parent.is_eer
553
+ ):
554
+ compressors[keyframe.compression] = 'imagecodecs_eer'
555
+ if keyframe.compression not in compressors:
556
+ raise ValueError(f'{keyframe.compression!r} is' + errormsg)
557
+ if keyframe.fillorder != 1:
558
+ raise ValueError(f'{keyframe.fillorder!r} is' + errormsg)
559
+ if keyframe.sampleformat not in {1, 2, 3, 6}:
560
+ # TODO: support float24 and cint via filters?
561
+ raise ValueError(f'{keyframe.sampleformat!r} is' + errormsg)
562
+ if (
563
+ keyframe.bitspersample
564
+ not in {
565
+ 8,
566
+ 16,
567
+ 32,
568
+ 64,
569
+ 128,
570
+ }
571
+ and keyframe.compression
572
+ not in {
573
+ # JPEG
574
+ 7,
575
+ 33007,
576
+ 34892,
577
+ }
578
+ and compressors[keyframe.compression] != 'imagecodecs_eer'
579
+ ):
580
+ raise ValueError(
581
+ f'BitsPerSample {keyframe.bitspersample} is' + errormsg
582
+ )
583
+ if (
584
+ not self._chunkmode
585
+ and not keyframe.is_tiled
586
+ and keyframe.imagelength % keyframe.rowsperstrip
587
+ ):
588
+ raise ValueError('incomplete chunks are' + errormsg)
589
+ if self._chunkmode and not keyframe.is_final:
590
+ raise ValueError(f'{self._chunkmode!r} is' + errormsg)
591
+ if keyframe.jpegtables is not None and len(series.pages) > 1:
592
+ raise ValueError(
593
+ 'JPEGTables in multi-page files are' + errormsg
594
+ )
595
+
596
+ if url is None:
597
+ url = ''
598
+ elif url and url[-1] != '/':
599
+ url += '/'
600
+ url = url.replace('\\', '/')
601
+
602
+ if groupname is None:
603
+ groupname = ''
604
+ elif groupname and groupname[-1] != '/':
605
+ groupname += '/'
606
+
607
+ byteorder: ByteOrder | None = '<' if sys.byteorder == 'big' else '>'
608
+ if (
609
+ self._data[0].keyframe.parent.byteorder != byteorder
610
+ or self._data[0].keyframe.dtype is None
611
+ or self._data[0].keyframe.dtype.itemsize == 1
612
+ ):
613
+ byteorder = None
614
+
615
+ index: str
616
+ _shape = [] if _shape is None else list(_shape)
617
+ _axes = [] if _axes is None else list(_axes)
618
+ if len(_shape) != len(_axes):
619
+ msg = 'len(_shape) != len(_axes)'
620
+ raise ValueError(msg)
621
+ if _index is None:
622
+ index = ''
623
+ elif len(_shape) != len(_index):
624
+ msg = 'len(_shape) != len(_index)'
625
+ raise ValueError(msg)
626
+ elif _index:
627
+ index = '.'.join(str(i) for i in _index)
628
+ index += '.'
629
+
630
+ refs: dict[str, Any] = {}
631
+ refzarr: dict[str, Any]
632
+ if version == 1:
633
+ if _append:
634
+ msg = 'cannot append to version 1'
635
+ raise ValueError(msg)
636
+ if templatename is None:
637
+ templatename = 'u'
638
+ refs['version'] = 1
639
+ refs['templates'] = {}
640
+ refs['gen'] = []
641
+ templates = {}
642
+ if self._data[0].is_multifile:
643
+ i = 0
644
+ for page in self._data[0].pages:
645
+ if page is None or page.keyframe is None:
646
+ continue
647
+ filename = page.keyframe.parent.filehandle.name
648
+ if filename in templates:
649
+ continue
650
+ key = f'{templatename}{i}'
651
+ templates[filename] = f'{{{{{key}}}}}'
652
+ refs['templates'][key] = url + filename
653
+ i += 1
654
+ else:
655
+ filename = self._data[0].keyframe.parent.filehandle.name
656
+ key = f'{templatename}'
657
+ templates[filename] = f'{{{{{key}}}}}'
658
+ refs['templates'][key] = url + filename
659
+
660
+ refs['refs'] = refzarr = {}
661
+ else:
662
+ refzarr = refs
663
+
664
+ if not _append:
665
+ if groupname:
666
+ # TODO: support nested groups
667
+ refzarr['.zgroup'] = _json_dumps({'zarr_format': 2}).decode()
668
+
669
+ for item in self._store.items():
670
+ key, value = item
671
+ if '.zattrs' in key and _axes:
672
+ value = json.loads(value)
673
+ if '_ARRAY_DIMENSIONS' in value:
674
+ value['_ARRAY_DIMENSIONS'] = (
675
+ _axes + value['_ARRAY_DIMENSIONS']
676
+ )
677
+ value = _json_dumps(value)
678
+ elif '.zarray' in key:
679
+ value = json.loads(value)
680
+ level = int(key.split('/')[0]) if '/' in key else 0
681
+ keyframe = self._data[level].keyframe
682
+ if _shape:
683
+ value['shape'] = _shape + value['shape']
684
+ value['chunks'] = [1] * len(_shape) + value['chunks']
685
+ codec_id = compressors[keyframe.compression]
686
+ if codec_id == 'imagecodecs_jpeg':
687
+ # TODO: handle JPEG color spaces
688
+ jpegtables = keyframe.jpegtables
689
+ if jpegtables is None:
690
+ tables = None
691
+ else:
692
+ tables = base64.b64encode(jpegtables).decode()
693
+ jpegheader = keyframe.jpegheader
694
+ if jpegheader is None:
695
+ header = None
696
+ else:
697
+ header = base64.b64encode(jpegheader).decode()
698
+ (
699
+ colorspace_jpeg,
700
+ colorspace_data,
701
+ ) = jpeg_decode_colorspace(
702
+ keyframe.photometric,
703
+ keyframe.planarconfig,
704
+ keyframe.extrasamples,
705
+ keyframe.is_jfif,
706
+ )
707
+ value['compressor'] = {
708
+ 'id': codec_id,
709
+ 'tables': tables,
710
+ 'header': header,
711
+ 'bitspersample': keyframe.bitspersample,
712
+ 'colorspace_jpeg': colorspace_jpeg,
713
+ 'colorspace_data': colorspace_data,
714
+ }
715
+ elif (
716
+ codec_id == 'imagecodecs_webp'
717
+ and keyframe.samplesperpixel == 4
718
+ ):
719
+ value['compressor'] = {
720
+ 'id': codec_id,
721
+ 'hasalpha': True,
722
+ }
723
+ elif codec_id == 'imagecodecs_eer':
724
+ horzbits = vertbits = 2
725
+ if keyframe.compression == 65002:
726
+ skipbits = int(keyframe.tags.valueof(65007, 7))
727
+ horzbits = int(keyframe.tags.valueof(65008, 2))
728
+ vertbits = int(keyframe.tags.valueof(65009, 2))
729
+ elif keyframe.compression == 65001:
730
+ skipbits = 7
731
+ else:
732
+ skipbits = 8
733
+ value['compressor'] = {
734
+ 'id': codec_id,
735
+ 'shape': keyframe.chunks,
736
+ 'skipbits': skipbits,
737
+ 'horzbits': horzbits,
738
+ 'vertbits': vertbits,
739
+ 'superres': keyframe.parent._superres,
740
+ }
741
+ elif codec_id is not None:
742
+ value['compressor'] = {'id': codec_id}
743
+ if byteorder is not None:
744
+ value['dtype'] = byteorder + value['dtype'][1:]
745
+ if keyframe.predictor > 1:
746
+ # predictors need access to chunk shape and dtype
747
+ # requires imagecodecs > 2021.8.26 to read
748
+ if keyframe.predictor in {2, 34892, 34893}:
749
+ filter_id = 'imagecodecs_delta'
750
+ else:
751
+ filter_id = 'imagecodecs_floatpred'
752
+ if keyframe.predictor <= 3:
753
+ dist = 1
754
+ elif keyframe.predictor in {34892, 34894}:
755
+ dist = 2
756
+ else:
757
+ dist = 4
758
+ if (
759
+ keyframe.planarconfig == 1
760
+ and keyframe.samplesperpixel > 1
761
+ ):
762
+ axis = -2
763
+ else:
764
+ axis = -1
765
+ value['filters'] = [
766
+ {
767
+ 'id': filter_id,
768
+ 'axis': axis,
769
+ 'dist': dist,
770
+ 'shape': value['chunks'],
771
+ 'dtype': value['dtype'],
772
+ }
773
+ ]
774
+ value = _json_dumps(value)
775
+ # else:
776
+ # pass through value
777
+
778
+ refzarr[groupname + key] = value.decode()
779
+
780
+ fh: TextIO
781
+ with contextlib.ExitStack() as stack:
782
+ if hasattr(jsonfile, 'write'):
783
+ fh = jsonfile # type: ignore[assignment]
784
+ else:
785
+ fh = stack.enter_context(open(jsonfile, 'w', encoding='utf-8'))
786
+
787
+ if version == 1:
788
+ fh.write(json.dumps(refs, indent=1).rsplit('}"', 1)[0] + '}"')
789
+ indent = ' '
790
+ elif _append:
791
+ indent = ' '
792
+ else:
793
+ fh.write(json.dumps(refs, indent=1)[:-2])
794
+ indent = ' '
795
+
796
+ offset: int | None
797
+ for item in self._store.items():
798
+ key, value = item
799
+ if '.zarray' in key:
800
+ value = json.loads(value)
801
+ shape = value['shape']
802
+ chunks = value['chunks']
803
+ levelstr = (key.split('/')[0] + '/') if '/' in key else ''
804
+ for chunkindex in _ndindex(shape, chunks):
805
+ key = levelstr + chunkindex
806
+ keyframe, page, _, offset, bytecount = self._parse_key(
807
+ key
808
+ )
809
+ if page and self._chunkmode and offset is None:
810
+ offset = page.dataoffsets[0]
811
+ bytecount = keyframe.nbytes
812
+ if offset and bytecount:
813
+ filename = keyframe.parent.filehandle.name
814
+ if version == 1:
815
+ filename = templates[filename]
816
+ else:
817
+ filename = f'{url}{filename}'
818
+ fh.write(
819
+ f',\n{indent}"{groupname}{key}": '
820
+ f'["{filename}", {offset}, {bytecount}]'
821
+ )
822
+
823
+ # TODO: support nested groups
824
+ if version == 1:
825
+ fh.write('\n }\n}')
826
+ elif _close:
827
+ fh.write('\n}')
828
+
829
+ async def get(
830
+ self,
831
+ key: str,
832
+ prototype: BufferPrototype,
833
+ byte_range: ByteRequest | None = None,
834
+ ) -> Buffer | None:
835
+ """Return value associated with key."""
836
+ # print(f'get({key=}, {byte_range=})')
837
+ if byte_range is not None:
838
+ msg = f'{byte_range=!r} not supported'
839
+ raise NotImplementedError(msg)
840
+
841
+ if key in self._store:
842
+ return prototype.buffer.from_bytes(self._store[key])
843
+
844
+ if (
845
+ key == 'zarr.json'
846
+ or key[-10:] == '.zmetadata'
847
+ or key[-7:] == '.zarray'
848
+ or key[-7:] == '.zgroup'
849
+ ):
850
+ # catch '.zarray' and 'attribute/.zarray'
851
+ return None
852
+
853
+ keyframe, page, chunkindex, offset, bytecount = self._parse_key(key)
854
+
855
+ if page is None or offset == 0 or bytecount == 0:
856
+ return None
857
+
858
+ fh = page.parent.filehandle
859
+
860
+ if self._chunkmode:
861
+ if offset is not None:
862
+ # contiguous image data in page or series
863
+ # create virtual frame instead of loading page from file
864
+ assert bytecount is not None
865
+ page = TiffFrame(
866
+ page.parent,
867
+ index=0,
868
+ keyframe=keyframe,
869
+ dataoffsets=(offset,),
870
+ databytecounts=(bytecount,),
871
+ )
872
+ # TODO: use asyncio.to_thread ?
873
+ self._filecache.open(fh)
874
+ chunk = page.asarray(
875
+ lock=self._filecache.lock,
876
+ maxworkers=self._maxworkers,
877
+ buffersize=self._buffersize,
878
+ )
879
+ self._filecache.close(fh)
880
+ if self._transform is not None:
881
+ chunk = self._transform(chunk)
882
+ return prototype.buffer.from_array_like(
883
+ chunk.reshape(-1).view('B')
884
+ )
885
+
886
+ assert offset is not None
887
+ assert bytecount is not None
888
+ chunk_bytes = self._filecache.read(fh, offset, bytecount)
889
+
890
+ decodeargs: dict[str, Any] = {'_fullsize': True}
891
+ if page.jpegtables is not None:
892
+ decodeargs['jpegtables'] = page.jpegtables
893
+ if keyframe.jpegheader is not None:
894
+ decodeargs['jpegheader'] = keyframe.jpegheader
895
+
896
+ assert chunkindex is not None
897
+ keyframe.decode # noqa: B018 - cache decode function
898
+ if self._maxworkers > 1:
899
+ decoded = await asyncio.to_thread(
900
+ keyframe.decode, chunk_bytes, chunkindex, **decodeargs
901
+ )
902
+ else:
903
+ decoded = keyframe.decode(chunk_bytes, chunkindex, **decodeargs)
904
+ chunk = decoded[0] # type: ignore[assignment]
905
+ assert chunk is not None
906
+ if self._transform is not None:
907
+ chunk = self._transform(chunk)
908
+
909
+ chunks = keyframe.chunks
910
+ if chunk.size != product(chunks):
911
+ msg = f'{chunk.size=} != {product(chunks)=}'
912
+ raise RuntimeError(msg)
913
+ return prototype.buffer.from_array_like(chunk.reshape(-1).view('B'))
914
+
915
+ async def exists(self, key: str) -> bool:
916
+ """Return whether key exists in store."""
917
+ # print(f'exists({key=})')
918
+ if key in self._store:
919
+ return True
920
+ try:
921
+ _kf, page, _ci, offset, bytecount = self._parse_key(key)
922
+ except (KeyError, IndexError):
923
+ return False
924
+ if self._chunkmode and offset is None:
925
+ return True
926
+ return (
927
+ page is not None
928
+ and offset is not None
929
+ and bytecount is not None
930
+ and offset > 0
931
+ and bytecount > 0
932
+ )
933
+
934
+ async def set(self, key: str, value: Buffer) -> None:
935
+ """Store (key, value) pair."""
936
+ if self._read_only:
937
+ msg = 'ZarrTiffStore is read-only'
938
+ raise PermissionError(msg)
939
+
940
+ if (
941
+ key in self._store
942
+ or key == 'zarr.json'
943
+ or key[-10:] == '.zmetadata'
944
+ or key[-7:] == '.zarray'
945
+ or key[-7:] == '.zgroup'
946
+ ):
947
+ # catch '.zarray' and 'attribute/.zarray'
948
+ return
949
+
950
+ _keyframe, page, _chunkindex, offset, bytecount = self._parse_key(key)
951
+ if (
952
+ page is None
953
+ or offset is None
954
+ or offset == 0
955
+ or bytecount is None
956
+ or bytecount == 0
957
+ ):
958
+ return
959
+ data = value.to_bytes()
960
+ if bytecount < len(data):
961
+ data = data[:bytecount]
962
+ self._filecache.write(page.parent.filehandle, offset, data)
963
+
964
+ def _parse_key(self, key: str, /) -> tuple[
965
+ TiffPage,
966
+ TiffPage | TiffFrame | None,
967
+ int | None,
968
+ int | None,
969
+ int | None,
970
+ ]:
971
+ """Return keyframe, page, index, offset, and bytecount from key.
972
+
973
+ Raise KeyError if key is not valid.
974
+
975
+ """
976
+ if self._multiscales:
977
+ try:
978
+ level, chunk_key = key.split('/', 1)
979
+ series = self._data[int(level)]
980
+ except (ValueError, IndexError) as exc:
981
+ raise KeyError(key) from exc
982
+ key = chunk_key
983
+ else:
984
+ series = self._data[0]
985
+ keyframe = series.keyframe
986
+ page: TiffPage | TiffFrame | None = None
987
+ offset: int | None = None
988
+ pageindex, chunkindex = self._indices(key, series)
989
+ if series.dataoffset is not None:
990
+ # contiguous or truncated
991
+ page = series[0]
992
+ if page is None or page.dtype is None or page.keyframe is None:
993
+ return keyframe, None, chunkindex, 0, 0
994
+ offset = pageindex * page.size * page.dtype.itemsize
995
+ try:
996
+ offset += page.dataoffsets[chunkindex]
997
+ except IndexError as exc:
998
+ raise KeyError(key) from exc
999
+ if self._chunkmode:
1000
+ bytecount = page.size * page.dtype.itemsize
1001
+ return page.keyframe, page, chunkindex, offset, bytecount
1002
+ elif self._chunkmode:
1003
+ with self._filecache.lock:
1004
+ page = series[pageindex]
1005
+ if page is None or page.keyframe is None:
1006
+ return keyframe, None, None, 0, 0
1007
+ return page.keyframe, page, None, None, None
1008
+ else:
1009
+ with self._filecache.lock:
1010
+ page = series[pageindex]
1011
+ if page is None or page.keyframe is None:
1012
+ return keyframe, None, chunkindex, 0, 0
1013
+ try:
1014
+ offset = page.dataoffsets[chunkindex]
1015
+ except IndexError:
1016
+ # raise KeyError(key) from exc
1017
+ # issue #249: Philips may be missing last row of tiles
1018
+ return page.keyframe, page, chunkindex, 0, 0
1019
+ try:
1020
+ bytecount = page.databytecounts[chunkindex]
1021
+ except IndexError as exc:
1022
+ raise KeyError(key) from exc
1023
+ return page.keyframe, page, chunkindex, offset, bytecount
1024
+
1025
+ def _indices(self, key: str, series: TiffPageSeries, /) -> tuple[int, int]:
1026
+ """Return page and strile indices from Zarr chunk index."""
1027
+ keyframe = series.keyframe
1028
+ shape = series.get_shape(self._squeeze)
1029
+ try:
1030
+ indices = [int(i) for i in key.split('.')]
1031
+ except ValueError as exc:
1032
+ raise KeyError(key) from exc
1033
+ assert len(indices) == len(shape)
1034
+ if self._chunkmode:
1035
+ chunked = (1,) * len(keyframe.shape)
1036
+ else:
1037
+ chunked = keyframe.chunked
1038
+ p = 1
1039
+ for j, s in enumerate(shape[::-1]):
1040
+ p *= s
1041
+ if p == keyframe.size:
1042
+ i = len(indices) - j - 1
1043
+ frames_indices = indices[:i]
1044
+ strile_indices = indices[i:]
1045
+ frames_chunked = shape[:i]
1046
+ strile_chunked = list(shape[i:]) # updated later
1047
+ break
1048
+ else:
1049
+ msg = 'shape does not match keyframe size'
1050
+ raise RuntimeError(msg)
1051
+ if len(strile_chunked) == len(keyframe.shape):
1052
+ strile_chunked = list(chunked)
1053
+ else:
1054
+ # get strile_chunked including singleton dimensions
1055
+ i = len(strile_indices) - 1
1056
+ j = len(keyframe.shape) - 1
1057
+ while True:
1058
+ if strile_chunked[i] == keyframe.shape[j]:
1059
+ strile_chunked[i] = chunked[j]
1060
+ i -= 1
1061
+ j -= 1
1062
+ elif strile_chunked[i] == 1:
1063
+ i -= 1
1064
+ else:
1065
+ msg = 'shape does not match page shape'
1066
+ raise RuntimeError(msg)
1067
+ if i < 0 or j < 0:
1068
+ break
1069
+ assert product(strile_chunked) == product(chunked)
1070
+ frameindex = 0
1071
+ strileindex = 0
1072
+ if frames_indices:
1073
+ frameindex = int(
1074
+ numpy.ravel_multi_index(frames_indices, frames_chunked)
1075
+ )
1076
+ if strile_indices:
1077
+ strileindex = int(
1078
+ numpy.ravel_multi_index(strile_indices, strile_chunked)
1079
+ )
1080
+ return frameindex, strileindex
1081
+
1082
+
1083
+ class ZarrFileSequenceStore(ZarrStore):
1084
+ """Zarr 3 store interface to image array in FileSequence.
1085
+
1086
+ Parameters:
1087
+ filesequence:
1088
+ FileSequence instance to wrap as Zarr store.
1089
+ Files in containers are not supported.
1090
+ fillvalue:
1091
+ Value to use for missing chunks. The default is 0.
1092
+ chunkmode:
1093
+ Currently only one chunk per file is supported.
1094
+ chunkshape:
1095
+ Shape of chunk in each file.
1096
+ Must match ``FileSequence.imread(file, **imreadargs).shape``.
1097
+ chunkdtype:
1098
+ Data type of chunk in each file.
1099
+ Must match ``FileSequence.imread(file, **imreadargs).dtype``.
1100
+ axestiled:
1101
+ Axes to be tiled. Map stacked sequence axis to chunk axis.
1102
+ zattrs:
1103
+ Additional attributes to store in `.zattrs`.
1104
+ ioworkers:
1105
+ If not 1, asynchronously run `imread` function in separate thread.
1106
+ If enabled, internal threading for the `imread` function
1107
+ should be disabled.
1108
+ read_only:
1109
+ Passed to :py:class:`zarr.abc.store.Store`.
1110
+ imreadargs:
1111
+ Arguments passed to :py:attr:`FileSequence.imread`.
1112
+ **kwargs:
1113
+ Arguments passed to :py:attr:`FileSequence.imread` in addition
1114
+ to `imreadargs`.
1115
+
1116
+ Notes:
1117
+ If `chunkshape` or `chunkdtype` are *None* (default), their values
1118
+ are determined by reading the first file with
1119
+ ``FileSequence.imread(arg.files[0], **imreadargs)``.
1120
+
1121
+ """
1122
+
1123
+ _imread: Callable[..., NDArray[Any]]
1124
+ _lookup: dict[tuple[int, ...], str]
1125
+ _chunks: tuple[int, ...]
1126
+ _dtype: numpy.dtype[Any]
1127
+ _tiled: TiledSequence
1128
+ _commonpath: str
1129
+ _ioworkers: int
1130
+ _kwargs: dict[str, Any]
1131
+
1132
+ def __init__(
1133
+ self,
1134
+ filesequence: FileSequence,
1135
+ /,
1136
+ *,
1137
+ fillvalue: float | None = None,
1138
+ chunkmode: CHUNKMODE | int | str | None = None,
1139
+ chunkshape: Sequence[int] | None = None,
1140
+ chunkdtype: DTypeLike | None = None,
1141
+ axestiled: dict[int, int] | Sequence[tuple[int, int]] | None = None,
1142
+ zattrs: dict[str, Any] | None = None,
1143
+ ioworkers: int | None = 1,
1144
+ imreadargs: dict[str, Any] | None = None,
1145
+ read_only: bool = True,
1146
+ **kwargs: Any,
1147
+ ) -> None:
1148
+ if not isinstance(filesequence, FileSequence):
1149
+ msg = 'not a FileSequence' # type: ignore[unreachable]
1150
+ raise TypeError(msg)
1151
+
1152
+ if filesequence._container:
1153
+ msg = 'cannot open container as Zarr store'
1154
+ raise NotImplementedError(msg)
1155
+
1156
+ if len(filesequence) == 0:
1157
+ msg = 'filesequence is empty'
1158
+ raise ValueError(msg)
1159
+
1160
+ super().__init__(
1161
+ fillvalue=fillvalue, chunkmode=chunkmode, read_only=read_only
1162
+ )
1163
+
1164
+ if self._chunkmode not in {0, 3}:
1165
+ msg = f'invalid chunkmode {self._chunkmode!r}'
1166
+ raise ValueError(msg)
1167
+
1168
+ # TODO: deprecate kwargs?
1169
+ if imreadargs is not None:
1170
+ kwargs |= imreadargs
1171
+
1172
+ self._ioworkers = 1 if ioworkers is None else ioworkers
1173
+
1174
+ self._kwargs = kwargs
1175
+ self._imread = filesequence.imread
1176
+ self._commonpath = filesequence.commonpath()
1177
+
1178
+ if chunkshape is None or chunkdtype is None:
1179
+ chunk = filesequence.imread(filesequence[0], **kwargs)
1180
+ self._chunks = chunk.shape
1181
+ self._dtype = chunk.dtype
1182
+ else:
1183
+ self._chunks = tuple(chunkshape)
1184
+ self._dtype = numpy.dtype(chunkdtype)
1185
+
1186
+ self._tiled = TiledSequence(
1187
+ filesequence.shape, self._chunks, axestiled=axestiled
1188
+ )
1189
+ self._lookup = dict(
1190
+ zip(
1191
+ self._tiled.indices(filesequence.indices),
1192
+ filesequence,
1193
+ strict=True,
1194
+ )
1195
+ )
1196
+
1197
+ zattrs = {} if zattrs is None else dict(zattrs)
1198
+ # TODO: add _ARRAY_DIMENSIONS to ZarrFileSequenceStore
1199
+ # if '_ARRAY_DIMENSIONS' not in zattrs:
1200
+ # zattrs['_ARRAY_DIMENSIONS'] = list(...)
1201
+
1202
+ self._store['.zattrs'] = _json_dumps(zattrs)
1203
+ self._store['.zarray'] = _json_dumps(
1204
+ {
1205
+ 'zarr_format': 2,
1206
+ 'shape': self._tiled.shape,
1207
+ 'chunks': self._tiled.chunks,
1208
+ 'dtype': _dtype_str(self._dtype),
1209
+ 'compressor': None,
1210
+ 'fill_value': _json_value(fillvalue, self._dtype),
1211
+ 'order': 'C',
1212
+ 'filters': None,
1213
+ }
1214
+ )
1215
+
1216
+ async def exists(self, key: str) -> bool:
1217
+ """Return whether key exists in store."""
1218
+ # print(f'exists({key=})')
1219
+ if key in self._store:
1220
+ return True
1221
+ assert isinstance(key, str)
1222
+ try:
1223
+ indices = tuple(int(i) for i in key.split('.'))
1224
+ except ValueError:
1225
+ return False
1226
+ return indices in self._lookup
1227
+
1228
+ async def get(
1229
+ self,
1230
+ key: str,
1231
+ prototype: BufferPrototype,
1232
+ byte_range: ByteRequest | None = None,
1233
+ ) -> Buffer | None:
1234
+ """Return value associated with key."""
1235
+ if byte_range is not None:
1236
+ msg = f'{byte_range=!r} not supported'
1237
+ raise NotImplementedError(msg)
1238
+
1239
+ if key in self._store:
1240
+ return prototype.buffer.from_bytes(self._store[key])
1241
+
1242
+ if (
1243
+ key == 'zarr.json'
1244
+ or key[-10:] == '.zmetadata'
1245
+ or key[-7:] == '.zarray'
1246
+ or key[-7:] == '.zgroup'
1247
+ ):
1248
+ # catch '.zarray' and 'attribute/.zarray'
1249
+ return None
1250
+
1251
+ try:
1252
+ indices = tuple(int(i) for i in key.split('.'))
1253
+ except ValueError:
1254
+ return None
1255
+ filename = self._lookup.get(indices)
1256
+ if filename is None:
1257
+ return None
1258
+ if self._ioworkers != 1:
1259
+ chunk = await asyncio.to_thread(
1260
+ self._imread, filename, **self._kwargs
1261
+ )
1262
+ else:
1263
+ chunk = self._imread(filename, **self._kwargs)
1264
+ return prototype.buffer.from_array_like(chunk.reshape(-1).view('B'))
1265
+
1266
+ def write_fsspec(
1267
+ self,
1268
+ jsonfile: str | os.PathLike[Any] | TextIO,
1269
+ /,
1270
+ url: str | None,
1271
+ *,
1272
+ quote: bool | None = None,
1273
+ groupname: str | None = None,
1274
+ templatename: str | None = None,
1275
+ codec_id: str | None = None,
1276
+ version: int | None = None,
1277
+ _append: bool = False,
1278
+ _close: bool = True,
1279
+ ) -> None:
1280
+ """Write fsspec ReferenceFileSystem as JSON to file.
1281
+
1282
+ Parameters:
1283
+ jsonfile:
1284
+ Name or open file handle of output JSON file.
1285
+ url:
1286
+ Remote location of TIFF file(s) without file name(s).
1287
+ quote:
1288
+ Quote file names, that is, replace ' ' with '%20'.
1289
+ The default is True.
1290
+ groupname:
1291
+ Zarr group name.
1292
+ templatename:
1293
+ Version 1 URL template name. The default is 'u'.
1294
+ codec_id:
1295
+ Name of Numcodecs codec to decode files or chunks.
1296
+ version:
1297
+ Version of fsspec file to write. The default is 0.
1298
+ _append, _close:
1299
+ Experimental API.
1300
+
1301
+ References:
1302
+ - `fsspec ReferenceFileSystem format
1303
+ <https://github.com/fsspec/kerchunk>`_
1304
+
1305
+ """
1306
+ from urllib.parse import quote as quote_
1307
+
1308
+ kwargs = self._kwargs.copy()
1309
+
1310
+ if codec_id is not None:
1311
+ pass
1312
+ elif self._imread is imread:
1313
+ codec_id = 'tifffile'
1314
+ elif 'imagecodecs' in self._imread.__module__:
1315
+ if (
1316
+ self._imread.__name__ != 'imread'
1317
+ or 'codec' not in self._kwargs
1318
+ ):
1319
+ msg = 'cannot determine codec_id'
1320
+ raise ValueError(msg)
1321
+ codec = kwargs.pop('codec')
1322
+ if isinstance(codec, (list, tuple)):
1323
+ codec = codec[0]
1324
+ if callable(codec):
1325
+ codec = codec.__name__.split('_')[0]
1326
+ try:
1327
+ codec_id = {
1328
+ 'apng': 'imagecodecs_apng',
1329
+ 'avif': 'imagecodecs_avif',
1330
+ 'gif': 'imagecodecs_gif',
1331
+ 'heif': 'imagecodecs_heif',
1332
+ 'jpeg': 'imagecodecs_jpeg',
1333
+ 'jpeg8': 'imagecodecs_jpeg',
1334
+ 'jpeg12': 'imagecodecs_jpeg',
1335
+ 'jpeg2k': 'imagecodecs_jpeg2k',
1336
+ 'jpegls': 'imagecodecs_jpegls',
1337
+ 'jpegxl': 'imagecodecs_jpegxl',
1338
+ 'jpegxr': 'imagecodecs_jpegxr',
1339
+ 'ljpeg': 'imagecodecs_ljpeg',
1340
+ 'lerc': 'imagecodecs_lerc',
1341
+ # 'npy': 'imagecodecs_npy',
1342
+ 'png': 'imagecodecs_png',
1343
+ 'qoi': 'imagecodecs_qoi',
1344
+ 'tiff': 'imagecodecs_tiff',
1345
+ 'webp': 'imagecodecs_webp',
1346
+ 'zfp': 'imagecodecs_zfp',
1347
+ }[codec]
1348
+ except KeyError:
1349
+ msg = f'unknown {codec=!r}'
1350
+ raise ValueError(msg) from None
1351
+ else:
1352
+ # TODO: choose codec from filename
1353
+ msg = 'cannot determine codec_id'
1354
+ raise ValueError(msg)
1355
+
1356
+ if url is None:
1357
+ url = ''
1358
+ elif url and url[-1] != '/':
1359
+ url += '/'
1360
+
1361
+ if groupname is None:
1362
+ groupname = ''
1363
+ elif groupname and groupname[-1] != '/':
1364
+ groupname += '/'
1365
+
1366
+ refs: dict[str, Any] = {}
1367
+ if version == 1:
1368
+ if _append:
1369
+ msg = 'cannot append to version 1 files'
1370
+ raise ValueError(msg)
1371
+ if templatename is None:
1372
+ templatename = 'u'
1373
+ refs['version'] = 1
1374
+ refs['templates'] = {templatename: url}
1375
+ refs['gen'] = []
1376
+ refs['refs'] = refzarr = {}
1377
+ url = f'{{{{{templatename}}}}}'
1378
+ else:
1379
+ refzarr = refs
1380
+
1381
+ if groupname and not _append:
1382
+ refzarr['.zgroup'] = _json_dumps({'zarr_format': 2}).decode()
1383
+
1384
+ for item in self._store.items():
1385
+ key, value = item
1386
+ if '.zarray' in key:
1387
+ value = json.loads(value)
1388
+ # TODO: make kwargs serializable
1389
+ value['compressor'] = {'id': codec_id, **kwargs}
1390
+ value = _json_dumps(value)
1391
+ refzarr[groupname + key] = value.decode()
1392
+
1393
+ fh: TextIO
1394
+ with contextlib.ExitStack() as stack:
1395
+ if hasattr(jsonfile, 'write'):
1396
+ fh = jsonfile # type: ignore[assignment]
1397
+ else:
1398
+ fh = stack.enter_context(open(jsonfile, 'w', encoding='utf-8'))
1399
+
1400
+ if version == 1:
1401
+ fh.write(json.dumps(refs, indent=1).rsplit('}"', 1)[0] + '}"')
1402
+ indent = ' '
1403
+ elif _append:
1404
+ fh.write(',\n')
1405
+ fh.write(json.dumps(refs, indent=1)[2:-2])
1406
+ indent = ' '
1407
+ else:
1408
+ fh.write(json.dumps(refs, indent=1)[:-2])
1409
+ indent = ' '
1410
+
1411
+ for item in self._store.items():
1412
+ key, value = item
1413
+ if '.zarray' in key:
1414
+ value = json.loads(value)
1415
+ for index, fname in sorted(
1416
+ self._lookup.items(), key=lambda x: x[0]
1417
+ ):
1418
+ filename = fname.removeprefix(self._commonpath)
1419
+ filename = filename.replace('\\', '/')
1420
+ if quote is None or quote:
1421
+ filename = quote_(filename)
1422
+ if filename and filename[0] == '/':
1423
+ filename = filename[1:]
1424
+ indexstr = '.'.join(str(i) for i in index)
1425
+ fh.write(
1426
+ f',\n{indent}"{groupname}{indexstr}": '
1427
+ f'["{url}{filename}"]'
1428
+ )
1429
+
1430
+ if version == 1:
1431
+ fh.write('\n }\n}')
1432
+ elif _close:
1433
+ fh.write('\n}')
1434
+
1435
+
1436
+ def zarr_selection(
1437
+ store: ZarrStore,
1438
+ selection: BasicSelection,
1439
+ /,
1440
+ *,
1441
+ groupindex: str | None = None,
1442
+ close: bool = True,
1443
+ out: OutputType = None,
1444
+ ) -> NDArray[Any]:
1445
+ """Return selection from Zarr store.
1446
+
1447
+ Parameters:
1448
+ store:
1449
+ ZarrStore instance to read selection from.
1450
+ selection:
1451
+ Subset of image to be extracted and returned.
1452
+ Refer to the Zarr documentation for valid selections.
1453
+ groupindex:
1454
+ Index of array if store is Zarr group.
1455
+ close:
1456
+ Close store before returning.
1457
+ out:
1458
+ Specifies how image array is returned.
1459
+ By default, create a new array.
1460
+ If a *numpy.ndarray*, a writable array to which the images
1461
+ are copied.
1462
+ If *'memmap'*, create a memory-mapped array in a temporary
1463
+ file.
1464
+ If a *string* or *open file*, the file used to create a
1465
+ memory-mapped array.
1466
+
1467
+ """
1468
+ zarray: zarr.Array[Any]
1469
+
1470
+ try:
1471
+ z = zarr.open(store, mode='r', zarr_format=2)
1472
+ if isinstance(z, zarr.Group):
1473
+ if groupindex is None:
1474
+ groupindex = '0'
1475
+ zarray = z[groupindex] # type: ignore[assignment]
1476
+ else:
1477
+ zarray = z
1478
+ if out is not None:
1479
+ shape = BasicIndexer(
1480
+ selection,
1481
+ shape=zarray.shape,
1482
+ chunk_grid=RegularChunkGrid(chunk_shape=zarray.chunks),
1483
+ ).shape
1484
+ ndbuffer = NDBuffer.from_numpy_array(
1485
+ create_output(out, shape, zarray.dtype)
1486
+ )
1487
+ else:
1488
+ ndbuffer = None
1489
+ result = zarray.get_basic_selection(selection, out=ndbuffer)
1490
+ del zarray
1491
+ finally:
1492
+ if close:
1493
+ store.close()
1494
+ return result # type: ignore[return-value]
1495
+
1496
+
1497
+ def _empty_chunk(
1498
+ shape: tuple[int, ...],
1499
+ dtype: DTypeLike | None,
1500
+ fillvalue: float | None,
1501
+ /,
1502
+ ) -> NDArray[Any]:
1503
+ """Return empty chunk."""
1504
+ if fillvalue is None or fillvalue == 0:
1505
+ # return bytes(product(shape) * dtype.itemsize)
1506
+ return numpy.zeros(shape, dtype)
1507
+ chunk = numpy.empty(shape, dtype)
1508
+ chunk[:] = fillvalue
1509
+ return chunk # .tobytes()
1510
+
1511
+
1512
+ def _dtype_str(dtype: numpy.dtype[Any], /) -> str:
1513
+ """Return dtype as string with native byte order."""
1514
+ if dtype.itemsize == 1:
1515
+ byteorder = '|'
1516
+ else:
1517
+ byteorder = {'big': '>', 'little': '<'}[sys.byteorder]
1518
+ return byteorder + dtype.str[1:]
1519
+
1520
+
1521
+ def _json_dumps(obj: Any, /) -> bytes:
1522
+ """Serialize object to JSON formatted bytes."""
1523
+ return json.dumps(
1524
+ obj,
1525
+ indent=1,
1526
+ sort_keys=True,
1527
+ ensure_ascii=True,
1528
+ separators=(',', ': '),
1529
+ ).encode('ascii')
1530
+
1531
+
1532
+ def _json_value(value: Any, dtype: numpy.dtype[Any], /) -> Any:
1533
+ """Return value which is serializable to JSON."""
1534
+ if value is None:
1535
+ return value
1536
+ if dtype.kind == 'b':
1537
+ return bool(value)
1538
+ if dtype.kind in 'ui':
1539
+ return int(value)
1540
+ if dtype.kind == 'f':
1541
+ if numpy.isnan(value):
1542
+ return 'NaN'
1543
+ if numpy.isposinf(value):
1544
+ return 'Infinity'
1545
+ if numpy.isneginf(value):
1546
+ return '-Infinity'
1547
+ return float(value)
1548
+ if dtype.kind == 'c':
1549
+ value = numpy.array(value, dtype)
1550
+ return (
1551
+ _json_value(value.real, value.real.dtype),
1552
+ _json_value(value.imag, value.imag.dtype),
1553
+ )
1554
+ return value
1555
+
1556
+
1557
+ def _ndindex(
1558
+ shape: tuple[int, ...], chunks: tuple[int, ...], /
1559
+ ) -> Iterator[str]:
1560
+ """Return iterator over all chunk index strings."""
1561
+ assert len(shape) == len(chunks)
1562
+ chunked = tuple(
1563
+ (i + j - 1) // j for i, j in zip(shape, chunks, strict=True)
1564
+ )
1565
+ for indices in numpy.ndindex(chunked):
1566
+ yield '.'.join(str(index) for index in indices)
1567
+
1568
+
1569
+ def _is_writable(keyframe: TiffPage) -> bool:
1570
+ """Return True if chunks are writable."""
1571
+ return (
1572
+ keyframe.compression == 1
1573
+ and keyframe.fillorder == 1
1574
+ and keyframe.sampleformat in {1, 2, 3, 6}
1575
+ and keyframe.bitspersample in {8, 16, 32, 64, 128}
1576
+ # and (
1577
+ # keyframe.rowsperstrip == 0
1578
+ # or keyframe.imagelength % keyframe.rowsperstrip == 0
1579
+ # )
1580
+ )
1581
+
1582
+
1583
+ def _chunks(
1584
+ chunks: tuple[int, ...],
1585
+ shape: tuple[int, ...],
1586
+ shaped: tuple[int, int, int, int, int],
1587
+ /,
1588
+ ) -> tuple[int, ...]:
1589
+ """Return chunks with same length as shape."""
1590
+ ndim = len(shape)
1591
+ if ndim == 0:
1592
+ return () # empty array
1593
+ if 0 in shape:
1594
+ return (1,) * ndim
1595
+ d = 0 if shaped[1] == 1 else 1
1596
+ i = min(ndim, 3 + d)
1597
+ if (
1598
+ len(chunks) == 2 + d
1599
+ and i != 2 + d
1600
+ and shape[-1] == 1
1601
+ and shape[-i:] == shaped[-i:]
1602
+ ):
1603
+ # planarconfig=contig with one sample
1604
+ chunks = (*chunks, 1)
1605
+ if ndim < len(chunks):
1606
+ # remove leading dimensions of size 1 from chunks
1607
+ i = 0
1608
+ for size in chunks:
1609
+ if size > 1:
1610
+ break
1611
+ i += 1
1612
+ chunks = chunks[i:]
1613
+ if ndim < len(chunks):
1614
+ msg = f'{shape=!r} is shorter than {chunks=!r}'
1615
+ raise ValueError(msg)
1616
+ # prepend size 1 dimensions to chunks to match length of shape
1617
+ return (1,) * (ndim - len(chunks)) + chunks
envs/simpy.freeze.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cffi==2.1.0
2
+ imageio==2.37.0
3
+ lazy-loader==0.5
4
+ networkx==3.6.1
5
+ numpy==1.26.0
6
+ packaging==26.0
7
+ pillow==12.3.0
8
+ pycparser==3.0
9
+ PyYAML==6.0.2
10
+ scikit-image==0.26.0
11
+ scipy==1.15.3
12
+ soundfile==0.14.0
13
+ tifffile==2026.3.3
14
+ trimesh==4.5.1
15
+ typing_extensions==4.16.0