astro-data-lake 0.10.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 (249) hide show
  1. astro_data_lake-0.10.0/LICENSE +21 -0
  2. astro_data_lake-0.10.0/PKG-INFO +178 -0
  3. astro_data_lake-0.10.0/README.md +121 -0
  4. astro_data_lake-0.10.0/astro_data_lake.egg-info/PKG-INFO +178 -0
  5. astro_data_lake-0.10.0/astro_data_lake.egg-info/SOURCES.txt +247 -0
  6. astro_data_lake-0.10.0/astro_data_lake.egg-info/dependency_links.txt +1 -0
  7. astro_data_lake-0.10.0/astro_data_lake.egg-info/entry_points.txt +52 -0
  8. astro_data_lake-0.10.0/astro_data_lake.egg-info/requires.txt +42 -0
  9. astro_data_lake-0.10.0/astro_data_lake.egg-info/top_level.txt +1 -0
  10. astro_data_lake-0.10.0/data_lake/__init__.py +34 -0
  11. astro_data_lake-0.10.0/data_lake/admin/__init__.py +1 -0
  12. astro_data_lake-0.10.0/data_lake/admin/init_lake.py +350 -0
  13. astro_data_lake-0.10.0/data_lake/admin/set_ingest_token.py +111 -0
  14. astro_data_lake-0.10.0/data_lake/bench/__main__.py +99 -0
  15. astro_data_lake-0.10.0/data_lake/cli_utils.py +689 -0
  16. astro_data_lake-0.10.0/data_lake/config.py +373 -0
  17. astro_data_lake-0.10.0/data_lake/cutouts/__init__.py +5 -0
  18. astro_data_lake-0.10.0/data_lake/cutouts/generate_fits.py +392 -0
  19. astro_data_lake-0.10.0/data_lake/demo.py +507 -0
  20. astro_data_lake-0.10.0/data_lake/discovery/__init__.py +21 -0
  21. astro_data_lake-0.10.0/data_lake/discovery/area_cli.py +321 -0
  22. astro_data_lake-0.10.0/data_lake/discovery/area_plan.py +622 -0
  23. astro_data_lake-0.10.0/data_lake/discovery/areas.py +303 -0
  24. astro_data_lake-0.10.0/data_lake/discovery/ds9_region.py +317 -0
  25. astro_data_lake-0.10.0/data_lake/discovery/ds9_region_cli.py +177 -0
  26. astro_data_lake-0.10.0/data_lake/discovery/engine.py +299 -0
  27. astro_data_lake-0.10.0/data_lake/discovery/gather.py +737 -0
  28. astro_data_lake-0.10.0/data_lake/discovery/gather_cli.py +387 -0
  29. astro_data_lake-0.10.0/data_lake/discovery/moc_export.py +520 -0
  30. astro_data_lake-0.10.0/data_lake/discovery/moc_export_cli.py +284 -0
  31. astro_data_lake-0.10.0/data_lake/discovery/partner_tile_cache.py +149 -0
  32. astro_data_lake-0.10.0/data_lake/discovery/region.py +326 -0
  33. astro_data_lake-0.10.0/data_lake/discovery/region_cli.py +271 -0
  34. astro_data_lake-0.10.0/data_lake/discovery/selection.py +213 -0
  35. astro_data_lake-0.10.0/data_lake/discovery/tile_index.py +221 -0
  36. astro_data_lake-0.10.0/data_lake/doc_index.py +203 -0
  37. astro_data_lake-0.10.0/data_lake/export/__init__.py +0 -0
  38. astro_data_lake-0.10.0/data_lake/export/catalog_extract.py +2718 -0
  39. astro_data_lake-0.10.0/data_lake/export/cutout_subset.py +339 -0
  40. astro_data_lake-0.10.0/data_lake/export/link_id_embed.py +152 -0
  41. astro_data_lake-0.10.0/data_lake/export/row_filter.py +190 -0
  42. astro_data_lake-0.10.0/data_lake/export/samp_send.py +88 -0
  43. astro_data_lake-0.10.0/data_lake/export/samp_send_cli.py +336 -0
  44. astro_data_lake-0.10.0/data_lake/export/spectra_calibration.py +121 -0
  45. astro_data_lake-0.10.0/data_lake/export/spectra_subset.py +590 -0
  46. astro_data_lake-0.10.0/data_lake/export/spplate_catalog.py +409 -0
  47. astro_data_lake-0.10.0/data_lake/export/target_id_bridge.py +307 -0
  48. astro_data_lake-0.10.0/data_lake/export/to_fits.py +311 -0
  49. astro_data_lake-0.10.0/data_lake/export/to_spectrum_fits.py +892 -0
  50. astro_data_lake-0.10.0/data_lake/healpix_order.py +71 -0
  51. astro_data_lake-0.10.0/data_lake/homogenize/__init__.py +6 -0
  52. astro_data_lake-0.10.0/data_lake/homogenize/bandpass.json +56 -0
  53. astro_data_lake-0.10.0/data_lake/homogenize/bandpass.py +153 -0
  54. astro_data_lake-0.10.0/data_lake/homogenize/bandpasses/Gaia_G.ecsv +30 -0
  55. astro_data_lake-0.10.0/data_lake/homogenize/bandpasses/README.md +74 -0
  56. astro_data_lake-0.10.0/data_lake/homogenize/bandpasses/WISE_W1.ecsv +28 -0
  57. astro_data_lake-0.10.0/data_lake/homogenize/engine.py +737 -0
  58. astro_data_lake-0.10.0/data_lake/homogenize/homogenize_cli.py +360 -0
  59. astro_data_lake-0.10.0/data_lake/homogenize/phot_ab_coverage.py +195 -0
  60. astro_data_lake-0.10.0/data_lake/homogenize/product.py +90 -0
  61. astro_data_lake-0.10.0/data_lake/homogenize/registry.py +69 -0
  62. astro_data_lake-0.10.0/data_lake/homogenize/survey_registry.py +240 -0
  63. astro_data_lake-0.10.0/data_lake/homogenize/surveys/2MASS_PSC.json +37 -0
  64. astro_data_lake-0.10.0/data_lake/homogenize/surveys/2MASS_XSC.json +37 -0
  65. astro_data_lake-0.10.0/data_lake/homogenize/surveys/ALLWISE.json +43 -0
  66. astro_data_lake-0.10.0/data_lake/homogenize/surveys/ASSEF18_C75.json +45 -0
  67. astro_data_lake-0.10.0/data_lake/homogenize/surveys/ASSEF18_C75_extended.json +45 -0
  68. astro_data_lake-0.10.0/data_lake/homogenize/surveys/ASSEF18_R90.json +45 -0
  69. astro_data_lake-0.10.0/data_lake/homogenize/surveys/ASSEF18_R90_extended.json +45 -0
  70. astro_data_lake-0.10.0/data_lake/homogenize/surveys/DESI_DR1.json +13 -0
  71. astro_data_lake-0.10.0/data_lake/homogenize/surveys/GAIA_DR3_source.json +36 -0
  72. astro_data_lake-0.10.0/data_lake/homogenize/surveys/SDSS_DR17.json +13 -0
  73. astro_data_lake-0.10.0/data_lake/homogenize/surveys/UNWISE_W1.json +25 -0
  74. astro_data_lake-0.10.0/data_lake/homogenize/surveys/UNWISE_W2.json +25 -0
  75. astro_data_lake-0.10.0/data_lake/homogenize/surveys/VHS_DR3.json +45 -0
  76. astro_data_lake-0.10.0/data_lake/homogenize/surveys/VIDEO_DR5.json +53 -0
  77. astro_data_lake-0.10.0/data_lake/homogenize/surveys/VIKING_DR4.json +53 -0
  78. astro_data_lake-0.10.0/data_lake/homogenize/surveys/synthetic.json +21 -0
  79. astro_data_lake-0.10.0/data_lake/homogenize/surveys/ultraVISTA_DR6.json +45 -0
  80. astro_data_lake-0.10.0/data_lake/homogenize/transforms/cutout_njy_v1.json +7 -0
  81. astro_data_lake-0.10.0/data_lake/homogenize/transforms/phot_ab_v1.json +7 -0
  82. astro_data_lake-0.10.0/data_lake/homogenize/transforms/spec_observed_v1.json +7 -0
  83. astro_data_lake-0.10.0/data_lake/homogenize/transforms.py +665 -0
  84. astro_data_lake-0.10.0/data_lake/homogenize/validate_cli.py +97 -0
  85. astro_data_lake-0.10.0/data_lake/homogenize/validate_homogenization.py +292 -0
  86. astro_data_lake-0.10.0/data_lake/homogenize/zarr_engine.py +342 -0
  87. astro_data_lake-0.10.0/data_lake/ingest/__init__.py +0 -0
  88. astro_data_lake-0.10.0/data_lake/ingest/catalog_cli_options.py +93 -0
  89. astro_data_lake-0.10.0/data_lake/ingest/catalog_ingest_cli.py +273 -0
  90. astro_data_lake-0.10.0/data_lake/ingest/catalog_mef_ingest.py +232 -0
  91. astro_data_lake-0.10.0/data_lake/ingest/catalog_parallel_ingest.py +761 -0
  92. astro_data_lake-0.10.0/data_lake/ingest/catalog_shard_ingest.py +1316 -0
  93. astro_data_lake-0.10.0/data_lake/ingest/check_fits_table_format.py +359 -0
  94. astro_data_lake-0.10.0/data_lake/ingest/checkpoint_sidecars.py +78 -0
  95. astro_data_lake-0.10.0/data_lake/ingest/cutout_parallel_ingest.py +364 -0
  96. astro_data_lake-0.10.0/data_lake/ingest/desi_coadd_characterize.py +210 -0
  97. astro_data_lake-0.10.0/data_lake/ingest/desi_parallel_ingest.py +1243 -0
  98. astro_data_lake-0.10.0/data_lake/ingest/duplicate_policy.py +62 -0
  99. astro_data_lake-0.10.0/data_lake/ingest/file_list_ingest.py +929 -0
  100. astro_data_lake-0.10.0/data_lake/ingest/fits_to_parquet.py +4009 -0
  101. astro_data_lake-0.10.0/data_lake/ingest/fits_to_spectra_zarr.py +3934 -0
  102. astro_data_lake-0.10.0/data_lake/ingest/fits_to_zarr.py +587 -0
  103. astro_data_lake-0.10.0/data_lake/ingest/parallel_file_batch.py +54 -0
  104. astro_data_lake-0.10.0/data_lake/ingest/recommend_healpix_order.py +423 -0
  105. astro_data_lake-0.10.0/data_lake/ingest/repair_catalog_metadata.py +597 -0
  106. astro_data_lake-0.10.0/data_lake/ingest/sdss_specobj_lookup.py +783 -0
  107. astro_data_lake-0.10.0/data_lake/ingest/sdss_specobj_lookup_debug.py +602 -0
  108. astro_data_lake-0.10.0/data_lake/ingest/spectra_ingest_cli.py +223 -0
  109. astro_data_lake-0.10.0/data_lake/ingest/spectra_parallel_ingest.py +517 -0
  110. astro_data_lake-0.10.0/data_lake/ingest/spplate_parallel_ingest.py +836 -0
  111. astro_data_lake-0.10.0/data_lake/ingest/update_catalog_indices.py +811 -0
  112. astro_data_lake-0.10.0/data_lake/ingest/validate_catalog_ingest.py +236 -0
  113. astro_data_lake-0.10.0/data_lake/ingest/validate_catalog_spectra_link.py +1205 -0
  114. astro_data_lake-0.10.0/data_lake/ingest/validate_cli.py +132 -0
  115. astro_data_lake-0.10.0/data_lake/ingest/validate_cutout_ingest.py +261 -0
  116. astro_data_lake-0.10.0/data_lake/ingest/validate_spectra_ingest.py +346 -0
  117. astro_data_lake-0.10.0/data_lake/ingest/widen_spectrum_tiles.py +285 -0
  118. astro_data_lake-0.10.0/data_lake/ingest/zarr_ids.py +21 -0
  119. astro_data_lake-0.10.0/data_lake/ingest_advisor.py +693 -0
  120. astro_data_lake-0.10.0/data_lake/io/__init__.py +0 -0
  121. astro_data_lake-0.10.0/data_lake/io/catalog.py +802 -0
  122. astro_data_lake-0.10.0/data_lake/io/crossmatch.py +3858 -0
  123. astro_data_lake-0.10.0/data_lake/io/crossmatch_b_cache.py +224 -0
  124. astro_data_lake-0.10.0/data_lake/io/crossmatch_cli.py +757 -0
  125. astro_data_lake-0.10.0/data_lake/io/crossmatch_matchers.py +159 -0
  126. astro_data_lake-0.10.0/data_lake/io/cutouts.py +934 -0
  127. astro_data_lake-0.10.0/data_lake/io/duckdb_limits.py +274 -0
  128. astro_data_lake-0.10.0/data_lake/io/fits_read.py +308 -0
  129. astro_data_lake-0.10.0/data_lake/io/id_lookup.py +160 -0
  130. astro_data_lake-0.10.0/data_lake/io/preview.py +319 -0
  131. astro_data_lake-0.10.0/data_lake/io/spectra.py +1739 -0
  132. astro_data_lake-0.10.0/data_lake/io/zarr_batch.py +70 -0
  133. astro_data_lake-0.10.0/data_lake/io/zarr_close.py +24 -0
  134. astro_data_lake-0.10.0/data_lake/knobs.py +129 -0
  135. astro_data_lake-0.10.0/data_lake/lake_registry.py +1397 -0
  136. astro_data_lake-0.10.0/data_lake/mcp_common.py +25 -0
  137. astro_data_lake-0.10.0/data_lake/mcp_inventory.py +123 -0
  138. astro_data_lake-0.10.0/data_lake/mcp_lake_server.py +892 -0
  139. astro_data_lake-0.10.0/data_lake/mcp_server.py +151 -0
  140. astro_data_lake-0.10.0/data_lake/ml/__init__.py +0 -0
  141. astro_data_lake-0.10.0/data_lake/ml/dataset.py +361 -0
  142. astro_data_lake-0.10.0/data_lake/ml/spectrum_dataset.py +346 -0
  143. astro_data_lake-0.10.0/data_lake/mp_context.py +31 -0
  144. astro_data_lake-0.10.0/data_lake/plot/__init__.py +1 -0
  145. astro_data_lake-0.10.0/data_lake/plot/plot_cli.py +199 -0
  146. astro_data_lake-0.10.0/data_lake/plot/sed.py +173 -0
  147. astro_data_lake-0.10.0/data_lake/plot/source_figure.py +366 -0
  148. astro_data_lake-0.10.0/data_lake/plot/spectrum_cli.py +163 -0
  149. astro_data_lake-0.10.0/data_lake/query_from_master.py +395 -0
  150. astro_data_lake-0.10.0/data_lake/schema_registry.py +821 -0
  151. astro_data_lake-0.10.0/data_lake/share/__init__.py +0 -0
  152. astro_data_lake-0.10.0/data_lake/share/pack_tile.py +429 -0
  153. astro_data_lake-0.10.0/pyproject.toml +149 -0
  154. astro_data_lake-0.10.0/setup.cfg +4 -0
  155. astro_data_lake-0.10.0/tests/test_2df_ingest.py +588 -0
  156. astro_data_lake-0.10.0/tests/test_6df_ingest.py +356 -0
  157. astro_data_lake-0.10.0/tests/test_area_cli.py +190 -0
  158. astro_data_lake-0.10.0/tests/test_areas.py +115 -0
  159. astro_data_lake-0.10.0/tests/test_bandpass_registry.py +163 -0
  160. astro_data_lake-0.10.0/tests/test_bench_cli.py +21 -0
  161. astro_data_lake-0.10.0/tests/test_catalog_accessor_schema.py +95 -0
  162. astro_data_lake-0.10.0/tests/test_catalog_cli_options.py +30 -0
  163. astro_data_lake-0.10.0/tests/test_catalog_extract.py +1129 -0
  164. astro_data_lake-0.10.0/tests/test_catalog_extract_region.py +151 -0
  165. astro_data_lake-0.10.0/tests/test_catalog_id_lookup.py +34 -0
  166. astro_data_lake-0.10.0/tests/test_catalog_ingest.py +1621 -0
  167. astro_data_lake-0.10.0/tests/test_catalog_mef_ingest.py +334 -0
  168. astro_data_lake-0.10.0/tests/test_catalog_parallel_ingest.py +242 -0
  169. astro_data_lake-0.10.0/tests/test_catalog_shard_ingest.py +992 -0
  170. astro_data_lake-0.10.0/tests/test_check_fits_table_format.py +152 -0
  171. astro_data_lake-0.10.0/tests/test_cli_utils.py +386 -0
  172. astro_data_lake-0.10.0/tests/test_config.py +215 -0
  173. astro_data_lake-0.10.0/tests/test_crossmatch.py +1591 -0
  174. astro_data_lake-0.10.0/tests/test_crossmatch_b_cache.py +261 -0
  175. astro_data_lake-0.10.0/tests/test_crossmatch_matchers.py +95 -0
  176. astro_data_lake-0.10.0/tests/test_crossmatch_tile_order.py +179 -0
  177. astro_data_lake-0.10.0/tests/test_cutout_ingest.py +128 -0
  178. astro_data_lake-0.10.0/tests/test_cutout_lookup.py +59 -0
  179. astro_data_lake-0.10.0/tests/test_cutout_subset.py +408 -0
  180. astro_data_lake-0.10.0/tests/test_demo_lake.py +109 -0
  181. astro_data_lake-0.10.0/tests/test_desi_coadd_characterize.py +124 -0
  182. astro_data_lake-0.10.0/tests/test_desi_ingest.py +280 -0
  183. astro_data_lake-0.10.0/tests/test_desi_parallel_ingest.py +599 -0
  184. astro_data_lake-0.10.0/tests/test_discovery_engine.py +247 -0
  185. astro_data_lake-0.10.0/tests/test_doc_drift.py +43 -0
  186. astro_data_lake-0.10.0/tests/test_doc_index.py +66 -0
  187. astro_data_lake-0.10.0/tests/test_ds9_region.py +190 -0
  188. astro_data_lake-0.10.0/tests/test_duckdb_limits.py +200 -0
  189. astro_data_lake-0.10.0/tests/test_duplicate_policy.py +24 -0
  190. astro_data_lake-0.10.0/tests/test_extract_subset.py +1167 -0
  191. astro_data_lake-0.10.0/tests/test_fits_hdu_selection.py +264 -0
  192. astro_data_lake-0.10.0/tests/test_fits_read.py +65 -0
  193. astro_data_lake-0.10.0/tests/test_gama_ingest.py +108 -0
  194. astro_data_lake-0.10.0/tests/test_gather.py +440 -0
  195. astro_data_lake-0.10.0/tests/test_generate_cutout_fits.py +174 -0
  196. astro_data_lake-0.10.0/tests/test_generic_spectrum_ingest.py +107 -0
  197. astro_data_lake-0.10.0/tests/test_healpix_order.py +186 -0
  198. astro_data_lake-0.10.0/tests/test_homogenize.py +850 -0
  199. astro_data_lake-0.10.0/tests/test_ingest_advisor.py +150 -0
  200. astro_data_lake-0.10.0/tests/test_ingest_guardrails.py +96 -0
  201. astro_data_lake-0.10.0/tests/test_init_lake.py +168 -0
  202. astro_data_lake-0.10.0/tests/test_lake_registry.py +647 -0
  203. astro_data_lake-0.10.0/tests/test_link_id_embed.py +96 -0
  204. astro_data_lake-0.10.0/tests/test_live_finalize.py +73 -0
  205. astro_data_lake-0.10.0/tests/test_mcp_lake_server.py +389 -0
  206. astro_data_lake-0.10.0/tests/test_mcp_server.py +101 -0
  207. astro_data_lake-0.10.0/tests/test_ml_dataset_lookup.py +137 -0
  208. astro_data_lake-0.10.0/tests/test_moc_export.py +325 -0
  209. astro_data_lake-0.10.0/tests/test_mp_context.py +20 -0
  210. astro_data_lake-0.10.0/tests/test_ozdes_ingest.py +85 -0
  211. astro_data_lake-0.10.0/tests/test_partner_tile_cache.py +131 -0
  212. astro_data_lake-0.10.0/tests/test_phot_ab_coverage.py +38 -0
  213. astro_data_lake-0.10.0/tests/test_plot_cli.py +270 -0
  214. astro_data_lake-0.10.0/tests/test_plot_sed.py +195 -0
  215. astro_data_lake-0.10.0/tests/test_preview_sources.py +149 -0
  216. astro_data_lake-0.10.0/tests/test_query_from_master.py +113 -0
  217. astro_data_lake-0.10.0/tests/test_recommend_healpix_order.py +133 -0
  218. astro_data_lake-0.10.0/tests/test_region.py +115 -0
  219. astro_data_lake-0.10.0/tests/test_region_cli.py +113 -0
  220. astro_data_lake-0.10.0/tests/test_repair_catalog_metadata.py +145 -0
  221. astro_data_lake-0.10.0/tests/test_repair_column_names.py +131 -0
  222. astro_data_lake-0.10.0/tests/test_row_filter.py +169 -0
  223. astro_data_lake-0.10.0/tests/test_samp_send.py +174 -0
  224. astro_data_lake-0.10.0/tests/test_schema_registry.py +279 -0
  225. astro_data_lake-0.10.0/tests/test_sdss_specobj_lookup.py +236 -0
  226. astro_data_lake-0.10.0/tests/test_sdss_specobj_lookup_debug.py +132 -0
  227. astro_data_lake-0.10.0/tests/test_sdss_spectrum_ingest.py +152 -0
  228. astro_data_lake-0.10.0/tests/test_sdss_spplate_ingest.py +933 -0
  229. astro_data_lake-0.10.0/tests/test_selection.py +130 -0
  230. astro_data_lake-0.10.0/tests/test_set_ingest_token.py +76 -0
  231. astro_data_lake-0.10.0/tests/test_spectra_calibration.py +89 -0
  232. astro_data_lake-0.10.0/tests/test_spectra_lookup.py +173 -0
  233. astro_data_lake-0.10.0/tests/test_spectra_parallel_ingest.py +196 -0
  234. astro_data_lake-0.10.0/tests/test_spplate_catalog_export.py +128 -0
  235. astro_data_lake-0.10.0/tests/test_suggest_crossmatch_plan.py +315 -0
  236. astro_data_lake-0.10.0/tests/test_target_id_bridge.py +87 -0
  237. astro_data_lake-0.10.0/tests/test_tile_index.py +102 -0
  238. astro_data_lake-0.10.0/tests/test_update_catalog_indices.py +739 -0
  239. astro_data_lake-0.10.0/tests/test_validate_catalog_spectra_link.py +566 -0
  240. astro_data_lake-0.10.0/tests/test_validate_cli.py +178 -0
  241. astro_data_lake-0.10.0/tests/test_validate_spectra_ingest.py +167 -0
  242. astro_data_lake-0.10.0/tests/test_vandels_ingest.py +81 -0
  243. astro_data_lake-0.10.0/tests/test_vipers_ingest.py +87 -0
  244. astro_data_lake-0.10.0/tests/test_vuds_ingest.py +72 -0
  245. astro_data_lake-0.10.0/tests/test_vvds_ingest.py +150 -0
  246. astro_data_lake-0.10.0/tests/test_widen_spectrum_tiles.py +151 -0
  247. astro_data_lake-0.10.0/tests/test_wig_ingest.py +110 -0
  248. astro_data_lake-0.10.0/tests/test_zarr_batch.py +76 -0
  249. astro_data_lake-0.10.0/tests/test_zcosmos_ingest.py +102 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sotiria Fotopoulou
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.
@@ -0,0 +1,178 @@
1
+ Metadata-Version: 2.4
2
+ Name: astro-data-lake
3
+ Version: 0.10.0
4
+ Summary: Astronomy data lake: wide multi-survey catalogs (HATS-style Parquet) + galaxy cutout stacks (Zarr v3)
5
+ Author: Sotiria Fotopoulou
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/SFotopoulou/astro-data-lake
8
+ Project-URL: Repository, https://github.com/SFotopoulou/astro-data-lake
9
+ Project-URL: Issues, https://github.com/SFotopoulou/astro-data-lake/issues
10
+ Project-URL: Documentation, https://github.com/SFotopoulou/astro-data-lake/tree/main/docs
11
+ Project-URL: Changelog, https://github.com/SFotopoulou/astro-data-lake/blob/main/CHANGELOG.md
12
+ Keywords: astronomy,data lake,HEALPix,catalogs,Parquet,Zarr,cross-match,FITS
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Topic :: Scientific/Engineering :: Astronomy
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Requires-Python: >=3.12
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: pyarrow>=15.0
23
+ Requires-Dist: zarr>=3.0
24
+ Requires-Dist: numcodecs>=0.13
25
+ Requires-Dist: duckdb>=0.10
26
+ Requires-Dist: polars>=0.20
27
+ Requires-Dist: astropy>=6.0
28
+ Requires-Dist: scipy>=1.11
29
+ Requires-Dist: healpy>=1.16
30
+ Requires-Dist: mocpy[plots]>=0.13
31
+ Requires-Dist: numpy>=1.26
32
+ Requires-Dist: h5py>=3.10
33
+ Requires-Dist: tqdm>=4.66
34
+ Requires-Dist: click>=8.1
35
+ Provides-Extra: desi
36
+ Requires-Dist: desispec>=0.62; extra == "desi"
37
+ Provides-Extra: fitsio
38
+ Requires-Dist: fitsio>=1.2; extra == "fitsio"
39
+ Provides-Extra: dev
40
+ Requires-Dist: pytest>=8.0; extra == "dev"
41
+ Requires-Dist: pytest-cov; extra == "dev"
42
+ Requires-Dist: ipykernel; extra == "dev"
43
+ Requires-Dist: jupyterlab; extra == "dev"
44
+ Requires-Dist: matplotlib; extra == "dev"
45
+ Requires-Dist: napari; extra == "dev"
46
+ Provides-Extra: mcp
47
+ Requires-Dist: mcp>=1.0; extra == "mcp"
48
+ Provides-Extra: ml
49
+ Requires-Dist: torch>=2.2; extra == "ml"
50
+ Provides-Extra: moc
51
+ Requires-Dist: mocpy[plots]>=0.13; extra == "moc"
52
+ Provides-Extra: viz
53
+ Requires-Dist: matplotlib>=3.7; extra == "viz"
54
+ Provides-Extra: rapids
55
+ Requires-Dist: cuml-cu12>=24.08; extra == "rapids"
56
+ Dynamic: license-file
57
+
58
+ # Astronomy Data Lake
59
+
60
+ A local-first data lake for multi-survey astronomy catalogs, galaxy image cutouts, and 1-D spectra. Catalogs are stored as Parquet tiles in a HATS-style layout ([HEALPix Adaptive Tiling Scheme](https://hats.readthedocs.io/en/stable/); this lake uses one fixed order per catalog and does not use the [LSDB](https://lsdb.readthedocs.io/en/stable/) library), and spectra and cutouts are sharded Zarr v3. FITS is the ingest/export format; internal storage is Parquet and Zarr.
61
+
62
+ Each survey lives in its own directory under `catalogs/`, `spectra/`, or `cutouts/` — these three directories are the three **modalities**. Every object carries a `_source_id` integer that links its catalog row to its spectrum and cutout tiles across all modalities.
63
+
64
+ > **New here?** Start with the zero-data smoke test below, then follow the [Day-1 quickstart](docs/quickstart.md) to initialise your own lake, ingest a catalog, and run your first query.
65
+
66
+ ## Quick start (zero data required)
67
+
68
+ ```bash
69
+ # 1. Install uv (https://github.com/astral-sh/uv) and clone
70
+ curl -LsSf https://astral.sh/uv/install.sh | sh
71
+ git clone https://github.com/SFotopoulou/astro-data-lake.git && cd astro-data-lake
72
+
73
+ # 2. Create the environment and run the test suite
74
+ uv venv --python 3.12 .venv && uv sync --extra dev --extra fitsio
75
+ source .venv/bin/activate
76
+ pytest # all tests; no external data needed
77
+
78
+ # 3. Run the self-contained cross-survey demo (synthetic lake, no downloads)
79
+ python examples/cross_survey_lsst_desi_euclid/demo.py
80
+ ```
81
+
82
+ Once the tests pass, follow [docs/quickstart.md](docs/quickstart.md) to create a real lake and ingest your first survey:
83
+
84
+ ```bash
85
+ dl-init /data/lake --ingest-token 'your-secret'
86
+ export DATA_LAKE_CONFIG=/data/lake/lake_config.toml
87
+ dl-ingest-catalog survey.fits --survey MY_SURVEY \
88
+ --ra-col RA --dec-col DEC --link-id-col TARGETID
89
+ dl-describe-lake --count-total
90
+ ```
91
+
92
+ > **Have DESI coadds?** See [ingest/spectra.md](docs/ingest/spectra.md) for `dl-ingest-spectra-batch-desi-coadds` and the `dry_run_desi_ingest.py` smoke script.
93
+
94
+ ## Documentation
95
+
96
+ ### Getting started
97
+
98
+ | Topic | Guide |
99
+ |-------|--------|
100
+ | Install, deployment, ingest token | [quickstart.md](docs/quickstart.md) |
101
+ | All `dl-*` commands | [cli-reference.md](docs/cli-reference.md) |
102
+ | Term definitions (HATS, `_source_id`, modality, …) | [glossary.md](docs/glossary.md) |
103
+ | `lake_config.toml` | [lake-config.md](docs/lake-config.md) |
104
+ | Example notebooks | [notebooks.md](docs/notebooks.md) |
105
+ | MCP access for agents | [mcp.md](docs/mcp.md), [mcp-lake.md](docs/mcp-lake.md) |
106
+ | MCP deployment (team lakes) | [mcp-deploy.md](docs/mcp-deploy.md) |
107
+
108
+ ### Ingest
109
+
110
+ | Topic | Guide |
111
+ |-------|--------|
112
+ | Catalog ingest | [ingest/catalog.md](docs/ingest/catalog.md) |
113
+ | Cutout ingest | [ingest/cutouts.md](docs/ingest/cutouts.md) |
114
+ | Spectrum ingest | [ingest/spectra.md](docs/ingest/spectra.md) |
115
+ | Batch, file-list, checkpoints | [ingest/batch-and-checkpoints.md](docs/ingest/batch-and-checkpoints.md) |
116
+ | Logging and long runs (`-q`, heartbeat) | [ingest/logging.md](docs/ingest/logging.md) |
117
+
118
+ ### Operations
119
+
120
+ | Topic | Guide |
121
+ |-------|--------|
122
+ | Validate and repair | [validate-and-repair.md](docs/validate-and-repair.md) |
123
+ | Export and sharing | [export-and-sharing.md](docs/export-and-sharing.md) |
124
+ | Performance tuning (workers, caches, ML) | [performance.md](docs/performance.md) |
125
+ | Troubleshooting | [troubleshooting.md](docs/troubleshooting.md) |
126
+ | Security and ingest tokens | [security.md](docs/security.md) |
127
+
128
+ ### Discovery and query
129
+
130
+ | Topic | Guide |
131
+ |-------|--------|
132
+ | Lake registry | [discovery/registry.md](docs/discovery/registry.md) |
133
+ | Schema registry (`dl-describe-survey`) | [discovery/schema-registry.md](docs/discovery/schema-registry.md) |
134
+ | Crossmatch and associations | [discovery/crossmatch.md](docs/discovery/crossmatch.md) |
135
+ | Regions, areas, `dl-region` | [discovery/regions-and-areas.md](docs/discovery/regions-and-areas.md) |
136
+ | Area plans (`dl-area`) | [discovery/areas-cli.md](docs/discovery/areas-cli.md) |
137
+ | MOC export (`dl-export-moc`) | [regions-and-areas.md § Export as MOC](docs/discovery/regions-and-areas.md#export-as-moc) |
138
+ | DS9 region export (`dl-export-ds9-region`) | [regions-and-areas.md § Export as DS9 region](docs/discovery/regions-and-areas.md#export-as-ds9-region) |
139
+ | Send catalog to TOPCAT (`dl-samp-send-catalog`) | [export-and-sharing.md § SAMP](docs/export-and-sharing.md#send-to-topcat-via-samp) · [notebook](notebooks/17_region_extract_samp.ipynb) |
140
+ | Gather products (`dl-gather`) | [discovery/gather.md](docs/discovery/gather.md) |
141
+ | **Reference workflow** (region → ML export) | [discovery/workflow.md](docs/discovery/workflow.md) · [notebook](notebooks/14_discovery_workflow.ipynb) |
142
+ | Homogenization (`dl-homogenize`) | [homogenization.md](docs/homogenization.md) |
143
+ | SED + spectrum plot (`dl-plot-source`) | [plotting.md](docs/plotting.md) |
144
+ | DuckDB ID-list queries | [discovery/duckdb-queries.md](docs/discovery/duckdb-queries.md) |
145
+
146
+ ### Layout and design
147
+
148
+ | Topic | Guide |
149
+ |-------|--------|
150
+ | Repository layout | [layout/repository.md](docs/layout/repository.md) |
151
+ | Data on disk (HEALPix tiles) | [layout/data-on-disk.md](docs/layout/data-on-disk.md) |
152
+ | Design decisions | [design-decisions.md](docs/design-decisions.md) |
153
+
154
+ ## Which command for this file?
155
+
156
+ ```
157
+ 1-D spectrum FITS → dl-ingest-spectra / dl-ingest-spectra-from-list / dl-ingest-spectra-batch-desi-coadds
158
+ Catalog table → dl-check-fits-table-format (FITS pre-check)
159
+ → dl-ingest-catalog / dl-ingest-catalog-from-list / dl-ingest-catalog-batch
160
+ Joined MEF tables → dl-ingest-catalog-mef # row-aligned extensions (same NAXIS2)
161
+ Image cutouts → dl-ingest-cutouts / dl-ingest-cutouts-from-list
162
+ What's in the lake → dl-describe-lake --count-total
163
+ Slow crossmatch / I/O → docs/performance.md
164
+ ```
165
+
166
+ See [design-decisions.md](docs/design-decisions.md) for the full decision tree.
167
+
168
+ ## Dependencies
169
+
170
+ Core: `pyarrow`, `zarr>=3`, `numcodecs`, `duckdb`, `polars`, `astropy`, `scipy`, `healpy`, `mocpy[plots]`, `numpy`, `h5py`, `tqdm`, `click`.
171
+
172
+ Optional: `desispec` (`uv sync --extra desi`), `fitsio` (`--extra fitsio`), dev/notebooks (`--extra dev`), MCP server (`--extra mcp`), visualisation (`--extra viz`, adds `matplotlib`), PyTorch datasets (`--extra ml`, adds `torch`).
173
+
174
+ Details: [docs/quickstart.md#dependencies](docs/quickstart.md).
175
+
176
+ ## Contributing
177
+
178
+ See [CONTRIBUTING.md](CONTRIBUTING.md). Documentation edits go in `docs/`; keep this README as a navigation hub.
@@ -0,0 +1,121 @@
1
+ # Astronomy Data Lake
2
+
3
+ A local-first data lake for multi-survey astronomy catalogs, galaxy image cutouts, and 1-D spectra. Catalogs are stored as Parquet tiles in a HATS-style layout ([HEALPix Adaptive Tiling Scheme](https://hats.readthedocs.io/en/stable/); this lake uses one fixed order per catalog and does not use the [LSDB](https://lsdb.readthedocs.io/en/stable/) library), and spectra and cutouts are sharded Zarr v3. FITS is the ingest/export format; internal storage is Parquet and Zarr.
4
+
5
+ Each survey lives in its own directory under `catalogs/`, `spectra/`, or `cutouts/` — these three directories are the three **modalities**. Every object carries a `_source_id` integer that links its catalog row to its spectrum and cutout tiles across all modalities.
6
+
7
+ > **New here?** Start with the zero-data smoke test below, then follow the [Day-1 quickstart](docs/quickstart.md) to initialise your own lake, ingest a catalog, and run your first query.
8
+
9
+ ## Quick start (zero data required)
10
+
11
+ ```bash
12
+ # 1. Install uv (https://github.com/astral-sh/uv) and clone
13
+ curl -LsSf https://astral.sh/uv/install.sh | sh
14
+ git clone https://github.com/SFotopoulou/astro-data-lake.git && cd astro-data-lake
15
+
16
+ # 2. Create the environment and run the test suite
17
+ uv venv --python 3.12 .venv && uv sync --extra dev --extra fitsio
18
+ source .venv/bin/activate
19
+ pytest # all tests; no external data needed
20
+
21
+ # 3. Run the self-contained cross-survey demo (synthetic lake, no downloads)
22
+ python examples/cross_survey_lsst_desi_euclid/demo.py
23
+ ```
24
+
25
+ Once the tests pass, follow [docs/quickstart.md](docs/quickstart.md) to create a real lake and ingest your first survey:
26
+
27
+ ```bash
28
+ dl-init /data/lake --ingest-token 'your-secret'
29
+ export DATA_LAKE_CONFIG=/data/lake/lake_config.toml
30
+ dl-ingest-catalog survey.fits --survey MY_SURVEY \
31
+ --ra-col RA --dec-col DEC --link-id-col TARGETID
32
+ dl-describe-lake --count-total
33
+ ```
34
+
35
+ > **Have DESI coadds?** See [ingest/spectra.md](docs/ingest/spectra.md) for `dl-ingest-spectra-batch-desi-coadds` and the `dry_run_desi_ingest.py` smoke script.
36
+
37
+ ## Documentation
38
+
39
+ ### Getting started
40
+
41
+ | Topic | Guide |
42
+ |-------|--------|
43
+ | Install, deployment, ingest token | [quickstart.md](docs/quickstart.md) |
44
+ | All `dl-*` commands | [cli-reference.md](docs/cli-reference.md) |
45
+ | Term definitions (HATS, `_source_id`, modality, …) | [glossary.md](docs/glossary.md) |
46
+ | `lake_config.toml` | [lake-config.md](docs/lake-config.md) |
47
+ | Example notebooks | [notebooks.md](docs/notebooks.md) |
48
+ | MCP access for agents | [mcp.md](docs/mcp.md), [mcp-lake.md](docs/mcp-lake.md) |
49
+ | MCP deployment (team lakes) | [mcp-deploy.md](docs/mcp-deploy.md) |
50
+
51
+ ### Ingest
52
+
53
+ | Topic | Guide |
54
+ |-------|--------|
55
+ | Catalog ingest | [ingest/catalog.md](docs/ingest/catalog.md) |
56
+ | Cutout ingest | [ingest/cutouts.md](docs/ingest/cutouts.md) |
57
+ | Spectrum ingest | [ingest/spectra.md](docs/ingest/spectra.md) |
58
+ | Batch, file-list, checkpoints | [ingest/batch-and-checkpoints.md](docs/ingest/batch-and-checkpoints.md) |
59
+ | Logging and long runs (`-q`, heartbeat) | [ingest/logging.md](docs/ingest/logging.md) |
60
+
61
+ ### Operations
62
+
63
+ | Topic | Guide |
64
+ |-------|--------|
65
+ | Validate and repair | [validate-and-repair.md](docs/validate-and-repair.md) |
66
+ | Export and sharing | [export-and-sharing.md](docs/export-and-sharing.md) |
67
+ | Performance tuning (workers, caches, ML) | [performance.md](docs/performance.md) |
68
+ | Troubleshooting | [troubleshooting.md](docs/troubleshooting.md) |
69
+ | Security and ingest tokens | [security.md](docs/security.md) |
70
+
71
+ ### Discovery and query
72
+
73
+ | Topic | Guide |
74
+ |-------|--------|
75
+ | Lake registry | [discovery/registry.md](docs/discovery/registry.md) |
76
+ | Schema registry (`dl-describe-survey`) | [discovery/schema-registry.md](docs/discovery/schema-registry.md) |
77
+ | Crossmatch and associations | [discovery/crossmatch.md](docs/discovery/crossmatch.md) |
78
+ | Regions, areas, `dl-region` | [discovery/regions-and-areas.md](docs/discovery/regions-and-areas.md) |
79
+ | Area plans (`dl-area`) | [discovery/areas-cli.md](docs/discovery/areas-cli.md) |
80
+ | MOC export (`dl-export-moc`) | [regions-and-areas.md § Export as MOC](docs/discovery/regions-and-areas.md#export-as-moc) |
81
+ | DS9 region export (`dl-export-ds9-region`) | [regions-and-areas.md § Export as DS9 region](docs/discovery/regions-and-areas.md#export-as-ds9-region) |
82
+ | Send catalog to TOPCAT (`dl-samp-send-catalog`) | [export-and-sharing.md § SAMP](docs/export-and-sharing.md#send-to-topcat-via-samp) · [notebook](notebooks/17_region_extract_samp.ipynb) |
83
+ | Gather products (`dl-gather`) | [discovery/gather.md](docs/discovery/gather.md) |
84
+ | **Reference workflow** (region → ML export) | [discovery/workflow.md](docs/discovery/workflow.md) · [notebook](notebooks/14_discovery_workflow.ipynb) |
85
+ | Homogenization (`dl-homogenize`) | [homogenization.md](docs/homogenization.md) |
86
+ | SED + spectrum plot (`dl-plot-source`) | [plotting.md](docs/plotting.md) |
87
+ | DuckDB ID-list queries | [discovery/duckdb-queries.md](docs/discovery/duckdb-queries.md) |
88
+
89
+ ### Layout and design
90
+
91
+ | Topic | Guide |
92
+ |-------|--------|
93
+ | Repository layout | [layout/repository.md](docs/layout/repository.md) |
94
+ | Data on disk (HEALPix tiles) | [layout/data-on-disk.md](docs/layout/data-on-disk.md) |
95
+ | Design decisions | [design-decisions.md](docs/design-decisions.md) |
96
+
97
+ ## Which command for this file?
98
+
99
+ ```
100
+ 1-D spectrum FITS → dl-ingest-spectra / dl-ingest-spectra-from-list / dl-ingest-spectra-batch-desi-coadds
101
+ Catalog table → dl-check-fits-table-format (FITS pre-check)
102
+ → dl-ingest-catalog / dl-ingest-catalog-from-list / dl-ingest-catalog-batch
103
+ Joined MEF tables → dl-ingest-catalog-mef # row-aligned extensions (same NAXIS2)
104
+ Image cutouts → dl-ingest-cutouts / dl-ingest-cutouts-from-list
105
+ What's in the lake → dl-describe-lake --count-total
106
+ Slow crossmatch / I/O → docs/performance.md
107
+ ```
108
+
109
+ See [design-decisions.md](docs/design-decisions.md) for the full decision tree.
110
+
111
+ ## Dependencies
112
+
113
+ Core: `pyarrow`, `zarr>=3`, `numcodecs`, `duckdb`, `polars`, `astropy`, `scipy`, `healpy`, `mocpy[plots]`, `numpy`, `h5py`, `tqdm`, `click`.
114
+
115
+ Optional: `desispec` (`uv sync --extra desi`), `fitsio` (`--extra fitsio`), dev/notebooks (`--extra dev`), MCP server (`--extra mcp`), visualisation (`--extra viz`, adds `matplotlib`), PyTorch datasets (`--extra ml`, adds `torch`).
116
+
117
+ Details: [docs/quickstart.md#dependencies](docs/quickstart.md).
118
+
119
+ ## Contributing
120
+
121
+ See [CONTRIBUTING.md](CONTRIBUTING.md). Documentation edits go in `docs/`; keep this README as a navigation hub.
@@ -0,0 +1,178 @@
1
+ Metadata-Version: 2.4
2
+ Name: astro-data-lake
3
+ Version: 0.10.0
4
+ Summary: Astronomy data lake: wide multi-survey catalogs (HATS-style Parquet) + galaxy cutout stacks (Zarr v3)
5
+ Author: Sotiria Fotopoulou
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/SFotopoulou/astro-data-lake
8
+ Project-URL: Repository, https://github.com/SFotopoulou/astro-data-lake
9
+ Project-URL: Issues, https://github.com/SFotopoulou/astro-data-lake/issues
10
+ Project-URL: Documentation, https://github.com/SFotopoulou/astro-data-lake/tree/main/docs
11
+ Project-URL: Changelog, https://github.com/SFotopoulou/astro-data-lake/blob/main/CHANGELOG.md
12
+ Keywords: astronomy,data lake,HEALPix,catalogs,Parquet,Zarr,cross-match,FITS
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Topic :: Scientific/Engineering :: Astronomy
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Requires-Python: >=3.12
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: pyarrow>=15.0
23
+ Requires-Dist: zarr>=3.0
24
+ Requires-Dist: numcodecs>=0.13
25
+ Requires-Dist: duckdb>=0.10
26
+ Requires-Dist: polars>=0.20
27
+ Requires-Dist: astropy>=6.0
28
+ Requires-Dist: scipy>=1.11
29
+ Requires-Dist: healpy>=1.16
30
+ Requires-Dist: mocpy[plots]>=0.13
31
+ Requires-Dist: numpy>=1.26
32
+ Requires-Dist: h5py>=3.10
33
+ Requires-Dist: tqdm>=4.66
34
+ Requires-Dist: click>=8.1
35
+ Provides-Extra: desi
36
+ Requires-Dist: desispec>=0.62; extra == "desi"
37
+ Provides-Extra: fitsio
38
+ Requires-Dist: fitsio>=1.2; extra == "fitsio"
39
+ Provides-Extra: dev
40
+ Requires-Dist: pytest>=8.0; extra == "dev"
41
+ Requires-Dist: pytest-cov; extra == "dev"
42
+ Requires-Dist: ipykernel; extra == "dev"
43
+ Requires-Dist: jupyterlab; extra == "dev"
44
+ Requires-Dist: matplotlib; extra == "dev"
45
+ Requires-Dist: napari; extra == "dev"
46
+ Provides-Extra: mcp
47
+ Requires-Dist: mcp>=1.0; extra == "mcp"
48
+ Provides-Extra: ml
49
+ Requires-Dist: torch>=2.2; extra == "ml"
50
+ Provides-Extra: moc
51
+ Requires-Dist: mocpy[plots]>=0.13; extra == "moc"
52
+ Provides-Extra: viz
53
+ Requires-Dist: matplotlib>=3.7; extra == "viz"
54
+ Provides-Extra: rapids
55
+ Requires-Dist: cuml-cu12>=24.08; extra == "rapids"
56
+ Dynamic: license-file
57
+
58
+ # Astronomy Data Lake
59
+
60
+ A local-first data lake for multi-survey astronomy catalogs, galaxy image cutouts, and 1-D spectra. Catalogs are stored as Parquet tiles in a HATS-style layout ([HEALPix Adaptive Tiling Scheme](https://hats.readthedocs.io/en/stable/); this lake uses one fixed order per catalog and does not use the [LSDB](https://lsdb.readthedocs.io/en/stable/) library), and spectra and cutouts are sharded Zarr v3. FITS is the ingest/export format; internal storage is Parquet and Zarr.
61
+
62
+ Each survey lives in its own directory under `catalogs/`, `spectra/`, or `cutouts/` — these three directories are the three **modalities**. Every object carries a `_source_id` integer that links its catalog row to its spectrum and cutout tiles across all modalities.
63
+
64
+ > **New here?** Start with the zero-data smoke test below, then follow the [Day-1 quickstart](docs/quickstart.md) to initialise your own lake, ingest a catalog, and run your first query.
65
+
66
+ ## Quick start (zero data required)
67
+
68
+ ```bash
69
+ # 1. Install uv (https://github.com/astral-sh/uv) and clone
70
+ curl -LsSf https://astral.sh/uv/install.sh | sh
71
+ git clone https://github.com/SFotopoulou/astro-data-lake.git && cd astro-data-lake
72
+
73
+ # 2. Create the environment and run the test suite
74
+ uv venv --python 3.12 .venv && uv sync --extra dev --extra fitsio
75
+ source .venv/bin/activate
76
+ pytest # all tests; no external data needed
77
+
78
+ # 3. Run the self-contained cross-survey demo (synthetic lake, no downloads)
79
+ python examples/cross_survey_lsst_desi_euclid/demo.py
80
+ ```
81
+
82
+ Once the tests pass, follow [docs/quickstart.md](docs/quickstart.md) to create a real lake and ingest your first survey:
83
+
84
+ ```bash
85
+ dl-init /data/lake --ingest-token 'your-secret'
86
+ export DATA_LAKE_CONFIG=/data/lake/lake_config.toml
87
+ dl-ingest-catalog survey.fits --survey MY_SURVEY \
88
+ --ra-col RA --dec-col DEC --link-id-col TARGETID
89
+ dl-describe-lake --count-total
90
+ ```
91
+
92
+ > **Have DESI coadds?** See [ingest/spectra.md](docs/ingest/spectra.md) for `dl-ingest-spectra-batch-desi-coadds` and the `dry_run_desi_ingest.py` smoke script.
93
+
94
+ ## Documentation
95
+
96
+ ### Getting started
97
+
98
+ | Topic | Guide |
99
+ |-------|--------|
100
+ | Install, deployment, ingest token | [quickstart.md](docs/quickstart.md) |
101
+ | All `dl-*` commands | [cli-reference.md](docs/cli-reference.md) |
102
+ | Term definitions (HATS, `_source_id`, modality, …) | [glossary.md](docs/glossary.md) |
103
+ | `lake_config.toml` | [lake-config.md](docs/lake-config.md) |
104
+ | Example notebooks | [notebooks.md](docs/notebooks.md) |
105
+ | MCP access for agents | [mcp.md](docs/mcp.md), [mcp-lake.md](docs/mcp-lake.md) |
106
+ | MCP deployment (team lakes) | [mcp-deploy.md](docs/mcp-deploy.md) |
107
+
108
+ ### Ingest
109
+
110
+ | Topic | Guide |
111
+ |-------|--------|
112
+ | Catalog ingest | [ingest/catalog.md](docs/ingest/catalog.md) |
113
+ | Cutout ingest | [ingest/cutouts.md](docs/ingest/cutouts.md) |
114
+ | Spectrum ingest | [ingest/spectra.md](docs/ingest/spectra.md) |
115
+ | Batch, file-list, checkpoints | [ingest/batch-and-checkpoints.md](docs/ingest/batch-and-checkpoints.md) |
116
+ | Logging and long runs (`-q`, heartbeat) | [ingest/logging.md](docs/ingest/logging.md) |
117
+
118
+ ### Operations
119
+
120
+ | Topic | Guide |
121
+ |-------|--------|
122
+ | Validate and repair | [validate-and-repair.md](docs/validate-and-repair.md) |
123
+ | Export and sharing | [export-and-sharing.md](docs/export-and-sharing.md) |
124
+ | Performance tuning (workers, caches, ML) | [performance.md](docs/performance.md) |
125
+ | Troubleshooting | [troubleshooting.md](docs/troubleshooting.md) |
126
+ | Security and ingest tokens | [security.md](docs/security.md) |
127
+
128
+ ### Discovery and query
129
+
130
+ | Topic | Guide |
131
+ |-------|--------|
132
+ | Lake registry | [discovery/registry.md](docs/discovery/registry.md) |
133
+ | Schema registry (`dl-describe-survey`) | [discovery/schema-registry.md](docs/discovery/schema-registry.md) |
134
+ | Crossmatch and associations | [discovery/crossmatch.md](docs/discovery/crossmatch.md) |
135
+ | Regions, areas, `dl-region` | [discovery/regions-and-areas.md](docs/discovery/regions-and-areas.md) |
136
+ | Area plans (`dl-area`) | [discovery/areas-cli.md](docs/discovery/areas-cli.md) |
137
+ | MOC export (`dl-export-moc`) | [regions-and-areas.md § Export as MOC](docs/discovery/regions-and-areas.md#export-as-moc) |
138
+ | DS9 region export (`dl-export-ds9-region`) | [regions-and-areas.md § Export as DS9 region](docs/discovery/regions-and-areas.md#export-as-ds9-region) |
139
+ | Send catalog to TOPCAT (`dl-samp-send-catalog`) | [export-and-sharing.md § SAMP](docs/export-and-sharing.md#send-to-topcat-via-samp) · [notebook](notebooks/17_region_extract_samp.ipynb) |
140
+ | Gather products (`dl-gather`) | [discovery/gather.md](docs/discovery/gather.md) |
141
+ | **Reference workflow** (region → ML export) | [discovery/workflow.md](docs/discovery/workflow.md) · [notebook](notebooks/14_discovery_workflow.ipynb) |
142
+ | Homogenization (`dl-homogenize`) | [homogenization.md](docs/homogenization.md) |
143
+ | SED + spectrum plot (`dl-plot-source`) | [plotting.md](docs/plotting.md) |
144
+ | DuckDB ID-list queries | [discovery/duckdb-queries.md](docs/discovery/duckdb-queries.md) |
145
+
146
+ ### Layout and design
147
+
148
+ | Topic | Guide |
149
+ |-------|--------|
150
+ | Repository layout | [layout/repository.md](docs/layout/repository.md) |
151
+ | Data on disk (HEALPix tiles) | [layout/data-on-disk.md](docs/layout/data-on-disk.md) |
152
+ | Design decisions | [design-decisions.md](docs/design-decisions.md) |
153
+
154
+ ## Which command for this file?
155
+
156
+ ```
157
+ 1-D spectrum FITS → dl-ingest-spectra / dl-ingest-spectra-from-list / dl-ingest-spectra-batch-desi-coadds
158
+ Catalog table → dl-check-fits-table-format (FITS pre-check)
159
+ → dl-ingest-catalog / dl-ingest-catalog-from-list / dl-ingest-catalog-batch
160
+ Joined MEF tables → dl-ingest-catalog-mef # row-aligned extensions (same NAXIS2)
161
+ Image cutouts → dl-ingest-cutouts / dl-ingest-cutouts-from-list
162
+ What's in the lake → dl-describe-lake --count-total
163
+ Slow crossmatch / I/O → docs/performance.md
164
+ ```
165
+
166
+ See [design-decisions.md](docs/design-decisions.md) for the full decision tree.
167
+
168
+ ## Dependencies
169
+
170
+ Core: `pyarrow`, `zarr>=3`, `numcodecs`, `duckdb`, `polars`, `astropy`, `scipy`, `healpy`, `mocpy[plots]`, `numpy`, `h5py`, `tqdm`, `click`.
171
+
172
+ Optional: `desispec` (`uv sync --extra desi`), `fitsio` (`--extra fitsio`), dev/notebooks (`--extra dev`), MCP server (`--extra mcp`), visualisation (`--extra viz`, adds `matplotlib`), PyTorch datasets (`--extra ml`, adds `torch`).
173
+
174
+ Details: [docs/quickstart.md#dependencies](docs/quickstart.md).
175
+
176
+ ## Contributing
177
+
178
+ See [CONTRIBUTING.md](CONTRIBUTING.md). Documentation edits go in `docs/`; keep this README as a navigation hub.