moczarr 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- moczarr-0.1.0/.gitignore +17 -0
- moczarr-0.1.0/CHANGELOG.md +53 -0
- moczarr-0.1.0/LICENSE +21 -0
- moczarr-0.1.0/PKG-INFO +133 -0
- moczarr-0.1.0/README.md +79 -0
- moczarr-0.1.0/pyproject.toml +115 -0
- moczarr-0.1.0/src/moczarr/__init__.py +101 -0
- moczarr-0.1.0/src/moczarr/_version.py +24 -0
- moczarr-0.1.0/src/moczarr/convention.py +385 -0
- moczarr-0.1.0/src/moczarr/coverage.py +232 -0
- moczarr-0.1.0/src/moczarr/dggs.py +331 -0
- moczarr-0.1.0/src/moczarr/exceptions.py +24 -0
- moczarr-0.1.0/src/moczarr/fabricate.py +118 -0
- moczarr-0.1.0/src/moczarr/join.py +210 -0
- moczarr-0.1.0/src/moczarr/moc_index.py +432 -0
- moczarr-0.1.0/src/moczarr/open.py +447 -0
- moczarr-0.1.0/src/moczarr/ranges.py +393 -0
- moczarr-0.1.0/src/moczarr/store.py +439 -0
- moczarr-0.1.0/tests/conftest.py +188 -0
- moczarr-0.1.0/tests/data/serc_cell_ids_golden.npy +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/count/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/count/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_max/c/0 +1 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_max/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_mean/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_mean/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_min/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_min/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_q25/c/0 +1 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_q25/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_q50/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_q50/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_q75/c/0 +1 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_q75/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_sigma/c/0 +1 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_sigma/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_variance/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_variance/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/morton/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/morton/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/zarr.json +34 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/coverage.moc +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/zarr.json +28 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/count/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/count/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_max/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_max/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_mean/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_mean/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_min/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_min/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_q25/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_q25/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_q50/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_q50/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_q75/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_q75/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_sigma/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_sigma/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_variance/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_variance/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/morton/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/morton/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/zarr.json +34 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/coverage.moc +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/zarr.json +28 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/count/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/count/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_max/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_max/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_mean/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_mean/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_min/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_min/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_q25/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_q25/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_q50/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_q50/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_q75/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_q75/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_sigma/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_sigma/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_variance/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_variance/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/morton/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/morton/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/zarr.json +34 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/coverage.moc +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/zarr.json +28 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/count/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/count/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_max/c/0 +1 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_max/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_mean/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_mean/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_min/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_min/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_q25/c/0 +1 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_q25/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_q50/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_q50/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_q75/c/0 +1 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_q75/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_sigma/c/0 +1 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_sigma/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_variance/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_variance/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/morton/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/morton/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/zarr.json +34 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/coverage.moc +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/zarr.json +28 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/count/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/count/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_max/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_max/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_mean/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_mean/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_min/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_min/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_q25/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_q25/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_q50/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_q50/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_q75/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_q75/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_sigma/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_sigma/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_variance/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_variance/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/morton/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/morton/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/zarr.json +34 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/coverage.moc +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/zarr.json +28 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/count/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/count/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_max/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_max/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_mean/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_mean/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_min/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_min/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_q25/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_q25/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_q50/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_q50/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_q75/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_q75/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_sigma/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_sigma/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_variance/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_variance/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/morton/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/morton/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/zarr.json +34 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/coverage.moc +0 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/zarr.json +28 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/count/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_max/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_mean/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_min/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_q25/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_q50/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_q75/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_sigma/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_variance/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/morton/zarr.json +36 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/zarr.json +34 -0
- moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/zarr.json +5 -0
- moczarr-0.1.0/tests/data/serc_hive/coverage.moc +29 -0
- moczarr-0.1.0/tests/data/serc_hive/morton_hive.json +24 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/-4/334/122/14/-433412214.zarr/10/count/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/-4/334/122/14/-433412214.zarr/10/count/zarr.json +1 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/-4/334/122/14/-433412214.zarr/10/morton/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/-4/334/122/14/-433412214.zarr/10/morton/zarr.json +1 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/-4/334/122/14/-433412214.zarr/10/zarr.json +1 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/-4/334/122/14/-433412214.zarr/zarr.json +25 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/41/433142241.zarr/10/count/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/41/433142241.zarr/10/count/zarr.json +1 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/41/433142241.zarr/10/morton/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/41/433142241.zarr/10/morton/zarr.json +1 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/41/433142241.zarr/10/zarr.json +1 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/41/433142241.zarr/zarr.json +25 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/42/433142242.zarr/10/count/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/42/433142242.zarr/10/count/zarr.json +1 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/42/433142242.zarr/10/morton/c/0 +0 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/42/433142242.zarr/10/morton/zarr.json +1 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/42/433142242.zarr/10/zarr.json +1 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/42/433142242.zarr/zarr.json +25 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/coverage.moc +17 -0
- moczarr-0.1.0/tests/data/serc_hive_pg3/morton_hive.json +25 -0
- moczarr-0.1.0/tests/test_concurrency.py +132 -0
- moczarr-0.1.0/tests/test_convention.py +320 -0
- moczarr-0.1.0/tests/test_coverage.py +252 -0
- moczarr-0.1.0/tests/test_dggs.py +411 -0
- moczarr-0.1.0/tests/test_fabricate.py +203 -0
- moczarr-0.1.0/tests/test_join.py +241 -0
- moczarr-0.1.0/tests/test_moc_index.py +334 -0
- moczarr-0.1.0/tests/test_open.py +623 -0
- moczarr-0.1.0/tests/test_path_grouping.py +101 -0
- moczarr-0.1.0/tests/test_ranges.py +335 -0
- moczarr-0.1.0/tests/test_store.py +210 -0
moczarr-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
First release — the complete phase 0–7 reader from the plan issue
|
|
6
|
+
([#1](https://github.com/espg/moczarr/issues/1)).
|
|
7
|
+
|
|
8
|
+
**`open_hive` defaults to the lazy index**: `index_kind="moc"` is the
|
|
9
|
+
default posture — a whole-store or AOI open reads *no* coordinate chunks,
|
|
10
|
+
holding the row domain as an interval set and fabricating the `morton`
|
|
11
|
+
coordinate on demand. The result is value-identical to the materialized
|
|
12
|
+
open; pass `index_kind="pandas"` to materialize instead. One workflow
|
|
13
|
+
difference to know: `xr.concat` of moc-indexed opens is supported for
|
|
14
|
+
disjoint, ascending domains (the batch-sweep case); overlapping or
|
|
15
|
+
out-of-order concat raises `NotImplementedError` and should open with
|
|
16
|
+
`index_kind="pandas"`.
|
|
17
|
+
|
|
18
|
+
- Scaffold + the morton-hive convention core: hive paths, manifest
|
|
19
|
+
parsing, node invariant, morton decimal↔word helpers
|
|
20
|
+
([#2](https://github.com/espg/moczarr/pull/2)).
|
|
21
|
+
- Store layer (obstore-backed) + `open_hive()`: manifest bootstrap,
|
|
22
|
+
coverage-MOC ∩ AOI shard selection, stamped-leaf opens, discovery-walk
|
|
23
|
+
fallback, time-windowed (`morton-hive/2`) stores; the SERC test fixture
|
|
24
|
+
generated by zagg's real writer
|
|
25
|
+
([#3](https://github.com/espg/moczarr/pull/3)).
|
|
26
|
+
- xdggs integration (`[xdggs]` extra): `grid_name: "morton"` registered
|
|
27
|
+
via `register_dggs` — `ds.dggs.sel_latlon`, `cell_boundaries`,
|
|
28
|
+
`zoom_to` on `open_hive` results
|
|
29
|
+
([#6](https://github.com/espg/moczarr/pull/6)).
|
|
30
|
+
- Exact NESTED `cell_ids` fabrication from packed morton words
|
|
31
|
+
(`fabricate_cell_ids="auto"`) — the reader-side gate for zagg's
|
|
32
|
+
morton-only writer flip (englacial/zagg#262)
|
|
33
|
+
([#7](https://github.com/espg/moczarr/pull/7)).
|
|
34
|
+
- Shared store handle + concurrent metadata: one obstore/zarr pair per
|
|
35
|
+
open, batched stamp GETs and walk LISTs (`concurrency=32`), issue
|
|
36
|
+
[#5](https://github.com/espg/moczarr/issues/5)
|
|
37
|
+
([#9](https://github.com/espg/moczarr/pull/9)).
|
|
38
|
+
- MOC-backed lazy index (`index_kind="moc"`): the row domain held as a
|
|
39
|
+
rank-space interval set (`MortonRanges`) behind a `MortonMocIndex`
|
|
40
|
+
(plain `xarray.Index`, core) — zero coordinate-chunk reads, value-
|
|
41
|
+
identical to the materialized open
|
|
42
|
+
([#10](https://github.com/espg/moczarr/pull/10)).
|
|
43
|
+
- Cross-resolution truncation join: `parent_cells` (fine→coarse groupby
|
|
44
|
+
coordinate) and `join_coarse` (coarse→fine lookup), any index-kind
|
|
45
|
+
pairing ([#12](https://github.com/espg/moczarr/pull/12)).
|
|
46
|
+
- Empty-AOI contract: an AOI/window intersecting no coverage returns a
|
|
47
|
+
schema-correct empty dataset + `UserWarning`; only a store with no
|
|
48
|
+
stamped coverage anywhere raises `NoCoverageError`, issue
|
|
49
|
+
[#4](https://github.com/espg/moczarr/issues/4)
|
|
50
|
+
([#13](https://github.com/espg/moczarr/pull/13)).
|
|
51
|
+
- Documentation site (quickstart, concepts, API reference), the
|
|
52
|
+
binder-runnable example notebook, and the tag-driven publish pipeline
|
|
53
|
+
(TestPyPI → PyPI via trusted publishing).
|
moczarr-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Shane
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
moczarr-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: moczarr
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Sparse-DGGS xarray reader for morton-hive zarr stores (MOC domain, lazy dense views)
|
|
5
|
+
Project-URL: Homepage, https://github.com/espg/moczarr
|
|
6
|
+
Project-URL: Documentation, https://espg.github.io/moczarr/
|
|
7
|
+
Project-URL: Repository, https://github.com/espg/moczarr
|
|
8
|
+
Project-URL: Issues, https://github.com/espg/moczarr/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/espg/moczarr/blob/main/CHANGELOG.md
|
|
10
|
+
Author-email: Shane Grigsby <refuge@rocktalus.com>
|
|
11
|
+
License: MIT License
|
|
12
|
+
|
|
13
|
+
Copyright (c) 2026 Shane
|
|
14
|
+
|
|
15
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
17
|
+
in the Software without restriction, including without limitation the rights
|
|
18
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
19
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
20
|
+
furnished to do so, subject to the following conditions:
|
|
21
|
+
|
|
22
|
+
The above copyright notice and this permission notice shall be included in all
|
|
23
|
+
copies or substantial portions of the Software.
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
+
SOFTWARE.
|
|
32
|
+
License-File: LICENSE
|
|
33
|
+
Classifier: Development Status :: 4 - Beta
|
|
34
|
+
Classifier: Intended Audience :: Science/Research
|
|
35
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
38
|
+
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
39
|
+
Requires-Python: >=3.12
|
|
40
|
+
Requires-Dist: mortie>=0.9.0
|
|
41
|
+
Requires-Dist: numcodecs>=0.14
|
|
42
|
+
Requires-Dist: numpy>=2.0
|
|
43
|
+
Requires-Dist: obstore>=0.8.2
|
|
44
|
+
Requires-Dist: pandas
|
|
45
|
+
Requires-Dist: xarray
|
|
46
|
+
Requires-Dist: zarr>=3.1.5
|
|
47
|
+
Provides-Extra: test
|
|
48
|
+
Requires-Dist: pytest-cov; extra == 'test'
|
|
49
|
+
Requires-Dist: pytest>=8.0; extra == 'test'
|
|
50
|
+
Provides-Extra: xdggs
|
|
51
|
+
Requires-Dist: shapely; extra == 'xdggs'
|
|
52
|
+
Requires-Dist: xdggs>=0.6; extra == 'xdggs'
|
|
53
|
+
Description-Content-Type: text/markdown
|
|
54
|
+
|
|
55
|
+
# moczarr
|
|
56
|
+
|
|
57
|
+
[](https://mybinder.org/v2/gh/espg/moczarr/main?labpath=docs%2Fexamples%2Fquickstart.ipynb)
|
|
58
|
+
|
|
59
|
+
Sparse-DGGS xarray reader for **morton-hive** zarr stores: MOC-declared
|
|
60
|
+
domains, arithmetic shard paths, lazy dense views.
|
|
61
|
+
|
|
62
|
+
`moczarr` opens stores written by [zagg](https://github.com/englacial/zagg)
|
|
63
|
+
under the morton-hive layout convention: a digit tree of self-describing
|
|
64
|
+
zarr v3 leaves keyed by morton decimal ids, with a static manifest and
|
|
65
|
+
hierarchical coverage MOCs declaring where data exists — so a reader
|
|
66
|
+
intersects an area of interest *arithmetically* instead of listing objects
|
|
67
|
+
or materializing a global grid.
|
|
68
|
+
|
|
69
|
+
```python
|
|
70
|
+
import moczarr
|
|
71
|
+
|
|
72
|
+
ds = moczarr.open_hive("s3://bucket/prefix", aoi=["433142"], anonymous=True)
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Features
|
|
76
|
+
|
|
77
|
+
- **`open_hive()`** — one call from store root (local path or
|
|
78
|
+
`s3://bucket/prefix`) to a lazy `xarray.Dataset`; AOI covers (packed
|
|
79
|
+
morton words or decimal strings, mixed orders) and time-window scoping
|
|
80
|
+
resolve through coverage metadata, not object listings. An AOI over no
|
|
81
|
+
coverage is a data answer: a schema-correct empty dataset, not an error.
|
|
82
|
+
- **A MOC-backed lazy index** (the default) — the row domain held as a
|
|
83
|
+
rank-space interval set built from the same coverage arithmetic that
|
|
84
|
+
selected the leaves; the on-disk cell arrays are never read, and the
|
|
85
|
+
`morton` coordinate is fabricated on demand (`sel`/`isel`/alignment as
|
|
86
|
+
interval arithmetic; `index_kind="pandas"` materializes instead).
|
|
87
|
+
- **Exact NESTED fabrication** — HEALPix NESTED `cell_ids` derived exactly
|
|
88
|
+
from the packed morton words ("NESTED is fabricated, never stored").
|
|
89
|
+
- **Cross-resolution joins** — morton truncation makes coarse↔fine work a
|
|
90
|
+
vectorized lookup: `parent_cells` for fine→coarse groupby aggregation,
|
|
91
|
+
`join_coarse` for the coarse→fine broadcast, no I/O.
|
|
92
|
+
- **xdggs integration** (`moczarr[xdggs]`) — a registered `"morton"` grid,
|
|
93
|
+
so `ds.dggs.sel_latlon`, `cell_boundaries`, `zoom_to` work on any
|
|
94
|
+
`open_hive` result.
|
|
95
|
+
|
|
96
|
+
Docs: [espg.github.io/moczarr](https://espg.github.io/moczarr/) —
|
|
97
|
+
quickstart, concepts, API reference, and the
|
|
98
|
+
[example notebook](https://espg.github.io/moczarr/examples/quickstart/)
|
|
99
|
+
(runnable on binder via the badge above).
|
|
100
|
+
|
|
101
|
+
## Install
|
|
102
|
+
|
|
103
|
+
```sh
|
|
104
|
+
pip install moczarr # core reader
|
|
105
|
+
pip install 'moczarr[xdggs]' # + the ds.dggs accessor integration
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Until the first PyPI release lands, install from git:
|
|
109
|
+
|
|
110
|
+
```sh
|
|
111
|
+
pip install 'moczarr[xdggs] @ git+https://github.com/espg/moczarr'
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Development (uses [uv](https://docs.astral.sh/uv/)):
|
|
115
|
+
|
|
116
|
+
```sh
|
|
117
|
+
uv sync --extra test --extra xdggs
|
|
118
|
+
uv run pytest -v
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## The convention
|
|
122
|
+
|
|
123
|
+
moczarr is the read side of a convention owned elsewhere: the morton-hive
|
|
124
|
+
layout and morton decimal ids are specified in the
|
|
125
|
+
[mortie specification](https://github.com/espg/mortie/blob/main/docs/specification.md),
|
|
126
|
+
and the coverage tiers, commit-stamp semantics, and reader architecture in
|
|
127
|
+
[zagg's `sparse_coverage.md`](https://github.com/englacial/zagg/blob/main/docs/design/sparse_coverage.md)
|
|
128
|
+
(§4 coverage, §5 reader, §6 xarray extension). Plan and progress:
|
|
129
|
+
[espg/moczarr#1](https://github.com/espg/moczarr/issues/1).
|
|
130
|
+
|
|
131
|
+
## License
|
|
132
|
+
|
|
133
|
+
MIT
|
moczarr-0.1.0/README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# moczarr
|
|
2
|
+
|
|
3
|
+
[](https://mybinder.org/v2/gh/espg/moczarr/main?labpath=docs%2Fexamples%2Fquickstart.ipynb)
|
|
4
|
+
|
|
5
|
+
Sparse-DGGS xarray reader for **morton-hive** zarr stores: MOC-declared
|
|
6
|
+
domains, arithmetic shard paths, lazy dense views.
|
|
7
|
+
|
|
8
|
+
`moczarr` opens stores written by [zagg](https://github.com/englacial/zagg)
|
|
9
|
+
under the morton-hive layout convention: a digit tree of self-describing
|
|
10
|
+
zarr v3 leaves keyed by morton decimal ids, with a static manifest and
|
|
11
|
+
hierarchical coverage MOCs declaring where data exists — so a reader
|
|
12
|
+
intersects an area of interest *arithmetically* instead of listing objects
|
|
13
|
+
or materializing a global grid.
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
import moczarr
|
|
17
|
+
|
|
18
|
+
ds = moczarr.open_hive("s3://bucket/prefix", aoi=["433142"], anonymous=True)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Features
|
|
22
|
+
|
|
23
|
+
- **`open_hive()`** — one call from store root (local path or
|
|
24
|
+
`s3://bucket/prefix`) to a lazy `xarray.Dataset`; AOI covers (packed
|
|
25
|
+
morton words or decimal strings, mixed orders) and time-window scoping
|
|
26
|
+
resolve through coverage metadata, not object listings. An AOI over no
|
|
27
|
+
coverage is a data answer: a schema-correct empty dataset, not an error.
|
|
28
|
+
- **A MOC-backed lazy index** (the default) — the row domain held as a
|
|
29
|
+
rank-space interval set built from the same coverage arithmetic that
|
|
30
|
+
selected the leaves; the on-disk cell arrays are never read, and the
|
|
31
|
+
`morton` coordinate is fabricated on demand (`sel`/`isel`/alignment as
|
|
32
|
+
interval arithmetic; `index_kind="pandas"` materializes instead).
|
|
33
|
+
- **Exact NESTED fabrication** — HEALPix NESTED `cell_ids` derived exactly
|
|
34
|
+
from the packed morton words ("NESTED is fabricated, never stored").
|
|
35
|
+
- **Cross-resolution joins** — morton truncation makes coarse↔fine work a
|
|
36
|
+
vectorized lookup: `parent_cells` for fine→coarse groupby aggregation,
|
|
37
|
+
`join_coarse` for the coarse→fine broadcast, no I/O.
|
|
38
|
+
- **xdggs integration** (`moczarr[xdggs]`) — a registered `"morton"` grid,
|
|
39
|
+
so `ds.dggs.sel_latlon`, `cell_boundaries`, `zoom_to` work on any
|
|
40
|
+
`open_hive` result.
|
|
41
|
+
|
|
42
|
+
Docs: [espg.github.io/moczarr](https://espg.github.io/moczarr/) —
|
|
43
|
+
quickstart, concepts, API reference, and the
|
|
44
|
+
[example notebook](https://espg.github.io/moczarr/examples/quickstart/)
|
|
45
|
+
(runnable on binder via the badge above).
|
|
46
|
+
|
|
47
|
+
## Install
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
pip install moczarr # core reader
|
|
51
|
+
pip install 'moczarr[xdggs]' # + the ds.dggs accessor integration
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Until the first PyPI release lands, install from git:
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
pip install 'moczarr[xdggs] @ git+https://github.com/espg/moczarr'
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Development (uses [uv](https://docs.astral.sh/uv/)):
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
uv sync --extra test --extra xdggs
|
|
64
|
+
uv run pytest -v
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## The convention
|
|
68
|
+
|
|
69
|
+
moczarr is the read side of a convention owned elsewhere: the morton-hive
|
|
70
|
+
layout and morton decimal ids are specified in the
|
|
71
|
+
[mortie specification](https://github.com/espg/mortie/blob/main/docs/specification.md),
|
|
72
|
+
and the coverage tiers, commit-stamp semantics, and reader architecture in
|
|
73
|
+
[zagg's `sparse_coverage.md`](https://github.com/englacial/zagg/blob/main/docs/design/sparse_coverage.md)
|
|
74
|
+
(§4 coverage, §5 reader, §6 xarray extension). Plan and progress:
|
|
75
|
+
[espg/moczarr#1](https://github.com/espg/moczarr/issues/1).
|
|
76
|
+
|
|
77
|
+
## License
|
|
78
|
+
|
|
79
|
+
MIT
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling", "hatch-vcs"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "moczarr"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Sparse-DGGS xarray reader for morton-hive zarr stores (MOC domain, lazy dense views)"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.12"
|
|
11
|
+
license = {file = "LICENSE"}
|
|
12
|
+
authors = [
|
|
13
|
+
{name = "Shane Grigsby", email = "refuge@rocktalus.com"},
|
|
14
|
+
]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 4 - Beta",
|
|
17
|
+
"Intended Audience :: Science/Research",
|
|
18
|
+
"License :: OSI Approved :: MIT License",
|
|
19
|
+
"Programming Language :: Python :: 3.12",
|
|
20
|
+
"Programming Language :: Python :: 3.13",
|
|
21
|
+
"Topic :: Scientific/Engineering :: GIS",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
dependencies = [
|
|
25
|
+
"numpy>=2.0",
|
|
26
|
+
# Morton/HEALPix kernels: decimal<->word, hive_path, MOC algebra
|
|
27
|
+
# (moc_and), clip2order/children/parents. The layout convention itself is
|
|
28
|
+
# owned by the mortie spec (espg/mortie#62).
|
|
29
|
+
"mortie>=0.9.0",
|
|
30
|
+
# mortie's MortonIndexArray (.decimal_repr()/.hive_path()) imports pandas;
|
|
31
|
+
# a direct runtime dep the reader calls into, not just transitive via xarray.
|
|
32
|
+
"pandas",
|
|
33
|
+
"xarray",
|
|
34
|
+
"zarr>=3.1.5",
|
|
35
|
+
"obstore>=0.8.2",
|
|
36
|
+
# Zstd for the coverage-bitmap sidecar decode (O8 encoding).
|
|
37
|
+
"numcodecs>=0.14",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
[project.optional-dependencies]
|
|
41
|
+
# xdggs integration (MortonInfo/MortonIndex via register_dggs) is an EXTRA:
|
|
42
|
+
# xdggs hard-requires lonboard/matplotlib/h3ronpy/cdshealpix — too heavy for
|
|
43
|
+
# the core reader (see xarray-contrib/xdggs#128).
|
|
44
|
+
xdggs = [
|
|
45
|
+
# Floor 0.6: the surface MortonInfo/MortonIndex ride on
|
|
46
|
+
# (translate_parameters, DGGSInfo.ellipsoid, the conventions decoder)
|
|
47
|
+
# is what 0.6.0 ships; developed and verified against 0.6.0.
|
|
48
|
+
"xdggs>=0.6",
|
|
49
|
+
# xdggs leaves shapely to the caller (all its shapely paths are lazy
|
|
50
|
+
# imports); cell_boundaries returns shapely polygons, so the extra
|
|
51
|
+
# carries it explicitly.
|
|
52
|
+
"shapely",
|
|
53
|
+
]
|
|
54
|
+
test = [
|
|
55
|
+
"pytest>=8.0",
|
|
56
|
+
"pytest-cov",
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
[project.urls]
|
|
60
|
+
Homepage = "https://github.com/espg/moczarr"
|
|
61
|
+
Documentation = "https://espg.github.io/moczarr/"
|
|
62
|
+
Repository = "https://github.com/espg/moczarr"
|
|
63
|
+
Issues = "https://github.com/espg/moczarr/issues"
|
|
64
|
+
Changelog = "https://github.com/espg/moczarr/blob/main/CHANGELOG.md"
|
|
65
|
+
|
|
66
|
+
[tool.hatch.version]
|
|
67
|
+
source = "vcs"
|
|
68
|
+
|
|
69
|
+
[tool.hatch.build.hooks.vcs]
|
|
70
|
+
version-file = "src/moczarr/_version.py"
|
|
71
|
+
|
|
72
|
+
[tool.hatch.build.targets.wheel]
|
|
73
|
+
packages = ["src/moczarr"]
|
|
74
|
+
|
|
75
|
+
[tool.hatch.build.targets.sdist]
|
|
76
|
+
only-include = [
|
|
77
|
+
"src/moczarr",
|
|
78
|
+
"tests",
|
|
79
|
+
"README.md",
|
|
80
|
+
"CHANGELOG.md",
|
|
81
|
+
"LICENSE",
|
|
82
|
+
"pyproject.toml",
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
[tool.pytest.ini_options]
|
|
86
|
+
testpaths = ["tests"]
|
|
87
|
+
python_files = ["test_*.py"]
|
|
88
|
+
|
|
89
|
+
[tool.ruff]
|
|
90
|
+
line-length = 100
|
|
91
|
+
target-version = "py312"
|
|
92
|
+
lint.select = ["E", "F", "W", "I", "N"]
|
|
93
|
+
lint.ignore = ["E501"]
|
|
94
|
+
|
|
95
|
+
[tool.ruff.lint.isort]
|
|
96
|
+
known-first-party = ["moczarr"]
|
|
97
|
+
|
|
98
|
+
[tool.mypy]
|
|
99
|
+
python_version = "3.12"
|
|
100
|
+
ignore_missing_imports = true
|
|
101
|
+
|
|
102
|
+
[dependency-groups]
|
|
103
|
+
dev = [
|
|
104
|
+
"pre-commit>=4.5.1",
|
|
105
|
+
"pytest",
|
|
106
|
+
"pytest-cov",
|
|
107
|
+
"ruff",
|
|
108
|
+
]
|
|
109
|
+
docs = [
|
|
110
|
+
"mkdocs>=1.6.1",
|
|
111
|
+
"mkdocs-jupyter>=0.26.3",
|
|
112
|
+
"mkdocs-material>=9.6.14",
|
|
113
|
+
"mkdocstrings>=0.29.1",
|
|
114
|
+
"mkdocstrings-python>=1.16.10",
|
|
115
|
+
]
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"""moczarr: sparse-DGGS xarray reader for morton-hive zarr stores."""
|
|
2
|
+
|
|
3
|
+
from moczarr.convention import (
|
|
4
|
+
COMMIT_ATTR,
|
|
5
|
+
COVERAGE_SIDECAR,
|
|
6
|
+
HIVE_SPEC,
|
|
7
|
+
HIVE_SPEC_V2,
|
|
8
|
+
MANIFEST_NAME,
|
|
9
|
+
MORTON_CONVENTION_ENTRY,
|
|
10
|
+
MORTON_CONVENTION_UUID,
|
|
11
|
+
ROOT_COVERAGE_NAME,
|
|
12
|
+
check_node_invariant,
|
|
13
|
+
is_point_word,
|
|
14
|
+
leaf_path,
|
|
15
|
+
morton_decimal,
|
|
16
|
+
morton_word,
|
|
17
|
+
parse_manifest,
|
|
18
|
+
split_leaf_name,
|
|
19
|
+
)
|
|
20
|
+
from moczarr.coverage import (
|
|
21
|
+
COVERAGE_SPEC,
|
|
22
|
+
aoi_mask,
|
|
23
|
+
box_and,
|
|
24
|
+
box_words,
|
|
25
|
+
decode_bitmap,
|
|
26
|
+
parse_leaf_coverage,
|
|
27
|
+
parse_root_coverage,
|
|
28
|
+
ranges_contain,
|
|
29
|
+
ranges_words,
|
|
30
|
+
root_coverage_and,
|
|
31
|
+
)
|
|
32
|
+
from moczarr.exceptions import NoCoverageError
|
|
33
|
+
from moczarr.fabricate import FLOAT64_EXACT_MAX_ORDER, fabricate_cell_ids
|
|
34
|
+
from moczarr.join import join_coarse, parent_cells
|
|
35
|
+
from moczarr.open import open_hive
|
|
36
|
+
from moczarr.ranges import MortonRanges
|
|
37
|
+
|
|
38
|
+
# moczarr.moc_index (MortonMocIndex) is imported by module path, not here:
|
|
39
|
+
# the package root stays xarray-import-free (the repo's lazy-import posture),
|
|
40
|
+
# and the index reaches most users through open_hive(index_kind="moc").
|
|
41
|
+
from moczarr.store import (
|
|
42
|
+
bitmap_and,
|
|
43
|
+
load_root_coverage,
|
|
44
|
+
open_object_store,
|
|
45
|
+
read_commit,
|
|
46
|
+
read_coverage_bitmap,
|
|
47
|
+
read_leaf_coverage,
|
|
48
|
+
read_manifest,
|
|
49
|
+
walk_leaves,
|
|
50
|
+
warn_if_stale,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
try:
|
|
54
|
+
from moczarr._version import __version__
|
|
55
|
+
except ImportError: # pragma: no cover - version file is generated at build time
|
|
56
|
+
__version__ = "0.0.0+unknown"
|
|
57
|
+
|
|
58
|
+
__all__ = [
|
|
59
|
+
"COMMIT_ATTR",
|
|
60
|
+
"COVERAGE_SIDECAR",
|
|
61
|
+
"COVERAGE_SPEC",
|
|
62
|
+
"FLOAT64_EXACT_MAX_ORDER",
|
|
63
|
+
"HIVE_SPEC",
|
|
64
|
+
"HIVE_SPEC_V2",
|
|
65
|
+
"MANIFEST_NAME",
|
|
66
|
+
"MORTON_CONVENTION_ENTRY",
|
|
67
|
+
"MORTON_CONVENTION_UUID",
|
|
68
|
+
"MortonRanges",
|
|
69
|
+
"NoCoverageError",
|
|
70
|
+
"ROOT_COVERAGE_NAME",
|
|
71
|
+
"__version__",
|
|
72
|
+
"aoi_mask",
|
|
73
|
+
"bitmap_and",
|
|
74
|
+
"box_and",
|
|
75
|
+
"box_words",
|
|
76
|
+
"check_node_invariant",
|
|
77
|
+
"decode_bitmap",
|
|
78
|
+
"fabricate_cell_ids",
|
|
79
|
+
"is_point_word",
|
|
80
|
+
"join_coarse",
|
|
81
|
+
"leaf_path",
|
|
82
|
+
"load_root_coverage",
|
|
83
|
+
"morton_decimal",
|
|
84
|
+
"morton_word",
|
|
85
|
+
"open_hive",
|
|
86
|
+
"open_object_store",
|
|
87
|
+
"parent_cells",
|
|
88
|
+
"parse_leaf_coverage",
|
|
89
|
+
"parse_manifest",
|
|
90
|
+
"parse_root_coverage",
|
|
91
|
+
"ranges_contain",
|
|
92
|
+
"ranges_words",
|
|
93
|
+
"read_commit",
|
|
94
|
+
"read_coverage_bitmap",
|
|
95
|
+
"read_leaf_coverage",
|
|
96
|
+
"read_manifest",
|
|
97
|
+
"root_coverage_and",
|
|
98
|
+
"split_leaf_name",
|
|
99
|
+
"walk_leaves",
|
|
100
|
+
"warn_if_stale",
|
|
101
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# file generated by vcs-versioning
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"__version__",
|
|
7
|
+
"__version_tuple__",
|
|
8
|
+
"version",
|
|
9
|
+
"version_tuple",
|
|
10
|
+
"__commit_id__",
|
|
11
|
+
"commit_id",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
version: str
|
|
15
|
+
__version__: str
|
|
16
|
+
__version_tuple__: tuple[int | str, ...]
|
|
17
|
+
version_tuple: tuple[int | str, ...]
|
|
18
|
+
commit_id: str | None
|
|
19
|
+
__commit_id__: str | None
|
|
20
|
+
|
|
21
|
+
__version__ = version = '0.1.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 1, 0)
|
|
23
|
+
|
|
24
|
+
__commit_id__ = commit_id = None
|