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.
Files changed (203) hide show
  1. moczarr-0.1.0/.gitignore +17 -0
  2. moczarr-0.1.0/CHANGELOG.md +53 -0
  3. moczarr-0.1.0/LICENSE +21 -0
  4. moczarr-0.1.0/PKG-INFO +133 -0
  5. moczarr-0.1.0/README.md +79 -0
  6. moczarr-0.1.0/pyproject.toml +115 -0
  7. moczarr-0.1.0/src/moczarr/__init__.py +101 -0
  8. moczarr-0.1.0/src/moczarr/_version.py +24 -0
  9. moczarr-0.1.0/src/moczarr/convention.py +385 -0
  10. moczarr-0.1.0/src/moczarr/coverage.py +232 -0
  11. moczarr-0.1.0/src/moczarr/dggs.py +331 -0
  12. moczarr-0.1.0/src/moczarr/exceptions.py +24 -0
  13. moczarr-0.1.0/src/moczarr/fabricate.py +118 -0
  14. moczarr-0.1.0/src/moczarr/join.py +210 -0
  15. moczarr-0.1.0/src/moczarr/moc_index.py +432 -0
  16. moczarr-0.1.0/src/moczarr/open.py +447 -0
  17. moczarr-0.1.0/src/moczarr/ranges.py +393 -0
  18. moczarr-0.1.0/src/moczarr/store.py +439 -0
  19. moczarr-0.1.0/tests/conftest.py +188 -0
  20. moczarr-0.1.0/tests/data/serc_cell_ids_golden.npy +0 -0
  21. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/count/c/0 +0 -0
  22. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/count/zarr.json +36 -0
  23. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_max/c/0 +1 -0
  24. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_max/zarr.json +36 -0
  25. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_mean/c/0 +0 -0
  26. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_mean/zarr.json +36 -0
  27. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_min/c/0 +0 -0
  28. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_min/zarr.json +36 -0
  29. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_q25/c/0 +1 -0
  30. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_q25/zarr.json +36 -0
  31. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_q50/c/0 +0 -0
  32. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_q50/zarr.json +36 -0
  33. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_q75/c/0 +1 -0
  34. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_q75/zarr.json +36 -0
  35. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_sigma/c/0 +1 -0
  36. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_sigma/zarr.json +36 -0
  37. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_variance/c/0 +0 -0
  38. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/h_variance/zarr.json +36 -0
  39. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/morton/c/0 +0 -0
  40. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/morton/zarr.json +36 -0
  41. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/8/zarr.json +34 -0
  42. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/coverage.moc +0 -0
  43. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/2/4/4/4331244.zarr/zarr.json +28 -0
  44. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/count/c/0 +0 -0
  45. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/count/zarr.json +36 -0
  46. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_max/c/0 +0 -0
  47. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_max/zarr.json +36 -0
  48. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_mean/c/0 +0 -0
  49. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_mean/zarr.json +36 -0
  50. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_min/c/0 +0 -0
  51. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_min/zarr.json +36 -0
  52. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_q25/c/0 +0 -0
  53. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_q25/zarr.json +36 -0
  54. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_q50/c/0 +0 -0
  55. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_q50/zarr.json +36 -0
  56. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_q75/c/0 +0 -0
  57. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_q75/zarr.json +36 -0
  58. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_sigma/c/0 +0 -0
  59. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_sigma/zarr.json +36 -0
  60. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_variance/c/0 +0 -0
  61. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/h_variance/zarr.json +36 -0
  62. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/morton/c/0 +0 -0
  63. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/morton/zarr.json +36 -0
  64. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/8/zarr.json +34 -0
  65. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/coverage.moc +0 -0
  66. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/1/4331421.zarr/zarr.json +28 -0
  67. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/count/c/0 +0 -0
  68. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/count/zarr.json +36 -0
  69. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_max/c/0 +0 -0
  70. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_max/zarr.json +36 -0
  71. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_mean/c/0 +0 -0
  72. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_mean/zarr.json +36 -0
  73. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_min/c/0 +0 -0
  74. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_min/zarr.json +36 -0
  75. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_q25/c/0 +0 -0
  76. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_q25/zarr.json +36 -0
  77. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_q50/c/0 +0 -0
  78. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_q50/zarr.json +36 -0
  79. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_q75/c/0 +0 -0
  80. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_q75/zarr.json +36 -0
  81. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_sigma/c/0 +0 -0
  82. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_sigma/zarr.json +36 -0
  83. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_variance/c/0 +0 -0
  84. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/h_variance/zarr.json +36 -0
  85. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/morton/c/0 +0 -0
  86. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/morton/zarr.json +36 -0
  87. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/8/zarr.json +34 -0
  88. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/coverage.moc +0 -0
  89. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/2/4331422.zarr/zarr.json +28 -0
  90. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/count/c/0 +0 -0
  91. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/count/zarr.json +36 -0
  92. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_max/c/0 +1 -0
  93. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_max/zarr.json +36 -0
  94. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_mean/c/0 +0 -0
  95. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_mean/zarr.json +36 -0
  96. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_min/c/0 +0 -0
  97. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_min/zarr.json +36 -0
  98. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_q25/c/0 +1 -0
  99. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_q25/zarr.json +36 -0
  100. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_q50/c/0 +0 -0
  101. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_q50/zarr.json +36 -0
  102. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_q75/c/0 +1 -0
  103. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_q75/zarr.json +36 -0
  104. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_sigma/c/0 +1 -0
  105. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_sigma/zarr.json +36 -0
  106. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_variance/c/0 +0 -0
  107. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/h_variance/zarr.json +36 -0
  108. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/morton/c/0 +0 -0
  109. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/morton/zarr.json +36 -0
  110. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/8/zarr.json +34 -0
  111. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/coverage.moc +0 -0
  112. moczarr-0.1.0/tests/data/serc_hive/4/3/3/1/4/2/4/4331424.zarr/zarr.json +28 -0
  113. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/count/c/0 +0 -0
  114. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/count/zarr.json +36 -0
  115. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_max/c/0 +0 -0
  116. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_max/zarr.json +36 -0
  117. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_mean/c/0 +0 -0
  118. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_mean/zarr.json +36 -0
  119. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_min/c/0 +0 -0
  120. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_min/zarr.json +36 -0
  121. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_q25/c/0 +0 -0
  122. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_q25/zarr.json +36 -0
  123. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_q50/c/0 +0 -0
  124. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_q50/zarr.json +36 -0
  125. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_q75/c/0 +0 -0
  126. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_q75/zarr.json +36 -0
  127. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_sigma/c/0 +0 -0
  128. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_sigma/zarr.json +36 -0
  129. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_variance/c/0 +0 -0
  130. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/h_variance/zarr.json +36 -0
  131. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/morton/c/0 +0 -0
  132. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/morton/zarr.json +36 -0
  133. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/8/zarr.json +34 -0
  134. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/coverage.moc +0 -0
  135. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/1/3/3/4332133.zarr/zarr.json +28 -0
  136. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/count/c/0 +0 -0
  137. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/count/zarr.json +36 -0
  138. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_max/c/0 +0 -0
  139. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_max/zarr.json +36 -0
  140. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_mean/c/0 +0 -0
  141. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_mean/zarr.json +36 -0
  142. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_min/c/0 +0 -0
  143. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_min/zarr.json +36 -0
  144. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_q25/c/0 +0 -0
  145. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_q25/zarr.json +36 -0
  146. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_q50/c/0 +0 -0
  147. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_q50/zarr.json +36 -0
  148. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_q75/c/0 +0 -0
  149. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_q75/zarr.json +36 -0
  150. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_sigma/c/0 +0 -0
  151. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_sigma/zarr.json +36 -0
  152. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_variance/c/0 +0 -0
  153. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/h_variance/zarr.json +36 -0
  154. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/morton/c/0 +0 -0
  155. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/morton/zarr.json +36 -0
  156. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/8/zarr.json +34 -0
  157. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/coverage.moc +0 -0
  158. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/1/4332311.zarr/zarr.json +28 -0
  159. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/count/zarr.json +36 -0
  160. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_max/zarr.json +36 -0
  161. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_mean/zarr.json +36 -0
  162. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_min/zarr.json +36 -0
  163. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_q25/zarr.json +36 -0
  164. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_q50/zarr.json +36 -0
  165. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_q75/zarr.json +36 -0
  166. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_sigma/zarr.json +36 -0
  167. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/h_variance/zarr.json +36 -0
  168. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/morton/zarr.json +36 -0
  169. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/8/zarr.json +34 -0
  170. moczarr-0.1.0/tests/data/serc_hive/4/3/3/2/3/1/3/4332313.zarr/zarr.json +5 -0
  171. moczarr-0.1.0/tests/data/serc_hive/coverage.moc +29 -0
  172. moczarr-0.1.0/tests/data/serc_hive/morton_hive.json +24 -0
  173. moczarr-0.1.0/tests/data/serc_hive_pg3/-4/334/122/14/-433412214.zarr/10/count/c/0 +0 -0
  174. moczarr-0.1.0/tests/data/serc_hive_pg3/-4/334/122/14/-433412214.zarr/10/count/zarr.json +1 -0
  175. moczarr-0.1.0/tests/data/serc_hive_pg3/-4/334/122/14/-433412214.zarr/10/morton/c/0 +0 -0
  176. moczarr-0.1.0/tests/data/serc_hive_pg3/-4/334/122/14/-433412214.zarr/10/morton/zarr.json +1 -0
  177. moczarr-0.1.0/tests/data/serc_hive_pg3/-4/334/122/14/-433412214.zarr/10/zarr.json +1 -0
  178. moczarr-0.1.0/tests/data/serc_hive_pg3/-4/334/122/14/-433412214.zarr/zarr.json +25 -0
  179. moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/41/433142241.zarr/10/count/c/0 +0 -0
  180. moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/41/433142241.zarr/10/count/zarr.json +1 -0
  181. moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/41/433142241.zarr/10/morton/c/0 +0 -0
  182. moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/41/433142241.zarr/10/morton/zarr.json +1 -0
  183. moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/41/433142241.zarr/10/zarr.json +1 -0
  184. moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/41/433142241.zarr/zarr.json +25 -0
  185. moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/42/433142242.zarr/10/count/c/0 +0 -0
  186. moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/42/433142242.zarr/10/count/zarr.json +1 -0
  187. moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/42/433142242.zarr/10/morton/c/0 +0 -0
  188. moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/42/433142242.zarr/10/morton/zarr.json +1 -0
  189. moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/42/433142242.zarr/10/zarr.json +1 -0
  190. moczarr-0.1.0/tests/data/serc_hive_pg3/4/331/422/42/433142242.zarr/zarr.json +25 -0
  191. moczarr-0.1.0/tests/data/serc_hive_pg3/coverage.moc +17 -0
  192. moczarr-0.1.0/tests/data/serc_hive_pg3/morton_hive.json +25 -0
  193. moczarr-0.1.0/tests/test_concurrency.py +132 -0
  194. moczarr-0.1.0/tests/test_convention.py +320 -0
  195. moczarr-0.1.0/tests/test_coverage.py +252 -0
  196. moczarr-0.1.0/tests/test_dggs.py +411 -0
  197. moczarr-0.1.0/tests/test_fabricate.py +203 -0
  198. moczarr-0.1.0/tests/test_join.py +241 -0
  199. moczarr-0.1.0/tests/test_moc_index.py +334 -0
  200. moczarr-0.1.0/tests/test_open.py +623 -0
  201. moczarr-0.1.0/tests/test_path_grouping.py +101 -0
  202. moczarr-0.1.0/tests/test_ranges.py +335 -0
  203. moczarr-0.1.0/tests/test_store.py +210 -0
@@ -0,0 +1,17 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ .eggs/
5
+ build/
6
+ dist/
7
+ site/
8
+ .venv/
9
+ .pytest_cache/
10
+ .mypy_cache/
11
+ .ruff_cache/
12
+ .coverage
13
+ coverage.xml
14
+ src/moczarr/_version.py
15
+ .DS_Store
16
+ uv.lock
17
+ .cache/
@@ -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
+ [![Binder](https://mybinder.org/badge_logo.svg)](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
@@ -0,0 +1,79 @@
1
+ # moczarr
2
+
3
+ [![Binder](https://mybinder.org/badge_logo.svg)](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