xmatcher 0.5.1__py3-none-any.whl
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.
- xmatcher/__init__.py +78 -0
- xmatcher/__main__.py +6 -0
- xmatcher/association.py +2410 -0
- xmatcher/astro_utils.py +446 -0
- xmatcher/auth.py +70 -0
- xmatcher/bayes.py +395 -0
- xmatcher/candidates.py +562 -0
- xmatcher/cli.py +2729 -0
- xmatcher/crossmatch.py +2656 -0
- xmatcher/discovery.py +385 -0
- xmatcher/exceptions.py +50 -0
- xmatcher/fixtures/association_v1.json +126 -0
- xmatcher/hats_native.py +448 -0
- xmatcher/io_utils.py +407 -0
- xmatcher/matchers.py +3605 -0
- xmatcher/mirror.py +1985 -0
- xmatcher/observations.py +652 -0
- xmatcher/out_of_core.py +909 -0
- xmatcher/ray_engine.py +456 -0
- xmatcher/ray_union.py +1873 -0
- xmatcher/remote_cds.py +163 -0
- xmatcher/remote_tap.py +223 -0
- xmatcher/request.py +315 -0
- xmatcher/sources.py +142 -0
- xmatcher/stilts.py +257 -0
- xmatcher/storage.py +549 -0
- xmatcher/tap.py +102 -0
- xmatcher/user_config.py +192 -0
- xmatcher/xmatcher.yaml +847 -0
- xmatcher-0.5.1.dist-info/METADATA +207 -0
- xmatcher-0.5.1.dist-info/RECORD +35 -0
- xmatcher-0.5.1.dist-info/WHEEL +5 -0
- xmatcher-0.5.1.dist-info/entry_points.txt +2 -0
- xmatcher-0.5.1.dist-info/licenses/LICENSE +21 -0
- xmatcher-0.5.1.dist-info/top_level.txt +1 -0
xmatcher/__init__.py
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"""xmatcher: cross-match astronomical catalogues (local files, remote archives, HATS).
|
|
2
|
+
|
|
3
|
+
Key high-level operations:
|
|
4
|
+
|
|
5
|
+
* :meth:`CrossMatch.crossmatch` — classic two-catalogue match.
|
|
6
|
+
* :meth:`CrossMatch.crossmatch_multi` — N-catalogue pairwise intersection.
|
|
7
|
+
* :meth:`CrossMatch.union_match` — build a master union catalogue (full outer joins).
|
|
8
|
+
* :meth:`CrossMatch.nway_match` — Bayesian N-way simultaneous crossmatching.
|
|
9
|
+
* :meth:`CrossMatch.fof_match` — Friends-of-Friends transitive closure merging
|
|
10
|
+
multi-survey detections into object bundles.
|
|
11
|
+
* :meth:`CrossMatch.crossmatch_request` — typed entry point for new code.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from .candidates import (
|
|
15
|
+
normalize_candidate_hypotheses,
|
|
16
|
+
verify_candidate_release,
|
|
17
|
+
write_candidate_release,
|
|
18
|
+
)
|
|
19
|
+
from .crossmatch import CrossMatch
|
|
20
|
+
from .exceptions import ConfigError, CrossMatchError, InputError, StiltsError, TapError
|
|
21
|
+
from .io_utils import (
|
|
22
|
+
FrameLike,
|
|
23
|
+
astropy_table_to_polars,
|
|
24
|
+
is_hats_dir,
|
|
25
|
+
polars_to_astropy,
|
|
26
|
+
scan_frame,
|
|
27
|
+
write_frame,
|
|
28
|
+
)
|
|
29
|
+
from .matchers import MatchSpec
|
|
30
|
+
from .observations import (
|
|
31
|
+
namespaced_source_id,
|
|
32
|
+
normalize_photometry,
|
|
33
|
+
normalize_property_evidence,
|
|
34
|
+
required_observation_columns,
|
|
35
|
+
source_inventory,
|
|
36
|
+
validate_source_inventory,
|
|
37
|
+
verify_observation_release,
|
|
38
|
+
write_observation_release,
|
|
39
|
+
)
|
|
40
|
+
from .request import MatchRequest, SideOverrides # noqa: F401
|
|
41
|
+
from .sources import CatalogueSource
|
|
42
|
+
|
|
43
|
+
__version__ = "0.5.1"
|
|
44
|
+
|
|
45
|
+
__all__ = [
|
|
46
|
+
# Main entry points
|
|
47
|
+
"CrossMatch",
|
|
48
|
+
"CatalogueSource",
|
|
49
|
+
"MatchSpec",
|
|
50
|
+
"MatchRequest",
|
|
51
|
+
"SideOverrides",
|
|
52
|
+
"source_inventory",
|
|
53
|
+
"namespaced_source_id",
|
|
54
|
+
"normalize_photometry",
|
|
55
|
+
"normalize_property_evidence",
|
|
56
|
+
"required_observation_columns",
|
|
57
|
+
"validate_source_inventory",
|
|
58
|
+
"write_observation_release",
|
|
59
|
+
"verify_observation_release",
|
|
60
|
+
"write_candidate_release",
|
|
61
|
+
"verify_candidate_release",
|
|
62
|
+
"normalize_candidate_hypotheses",
|
|
63
|
+
# Exceptions
|
|
64
|
+
"CrossMatchError",
|
|
65
|
+
"ConfigError",
|
|
66
|
+
"InputError",
|
|
67
|
+
"TapError",
|
|
68
|
+
"StiltsError",
|
|
69
|
+
# I/O helpers (Arrow interop)
|
|
70
|
+
"FrameLike",
|
|
71
|
+
"is_hats_dir",
|
|
72
|
+
"scan_frame",
|
|
73
|
+
"write_frame",
|
|
74
|
+
"astropy_table_to_polars",
|
|
75
|
+
"polars_to_astropy",
|
|
76
|
+
# Meta
|
|
77
|
+
"__version__",
|
|
78
|
+
]
|