No project description provided
Project description
A flexible library for similarity searches of supernovae and their host galaxies.
reLAISS lets you retrieve nearest‑neighbour supernovae (or spot outliers) by combining ZTF $g/r$ light‑curve morphology with Pan‑STARRS host‑galaxy colours. A pre‑built reference index allows users find similar events to a queried object in seconds. reLAISS is designed to be modular; feel free to customize for your own science!
Install
Installation of the package is easy: In a fresh conda environment, run pip install relaiss
Code Demo
import relaiss as rl
client = rl.ReLAISS()
# load reference data
client.load_reference(
path_to_sfd_folder='./sfddata-master', # Directory for SFD dust maps
weight_lc=3, # Upweight lightcurve features for neighbor search
)
# Find the 5 closest matches to a ZTF transient
neigh = client.find_neighbors(
ztf_object_id='ZTF21abbzjeq', # Using the test transient
n=5, # number of neighbors to retrieve
plot=True, # plot and save figures
save_figures=True,
path_to_figure_directory='./figures'
)
# print closest neighbors and their distances
print(neigh[["iau_name", "dist"]])
Citation
If reLAISS helps your research, please cite the following two works:
Research note bibtex to be added here!
@ARTICLE{2024ApJ...974..172A,
author = {{Aleo}, P.~D. and {Engel}, A.~W. and {Narayan}, G. and {Angus}, C.~R. and {Malanchev}, K. and {Auchettl}, K. and {Baldassare}, V.~F. and {Berres}, A. and {de Boer}, T.~J.~L. and {Boyd}, B.~M. and {Chambers}, K.~C. and {Davis}, K.~W. and {Esquivel}, N. and {Farias}, D. and {Foley}, R.~J. and {Gagliano}, A. and {Gall}, C. and {Gao}, H. and {Gomez}, S. and {Grayling}, M. and {Jones}, D.~O. and {Lin}, C. -C. and {Magnier}, E.~A. and {Mandel}, K.~S. and {Matheson}, T. and {Raimundo}, S.~I. and {Shah}, V.~G. and {Soraisam}, M.~D. and {de Soto}, K.~M. and {Vicencio}, S. and {Villar}, V.~A. and {Wainscoat}, R.~J.},
title = "{Anomaly Detection and Approximate Similarity Searches of Transients in Real-time Data Streams}",
journal = {\apj},
keywords = {Supernovae, Transient detection, Astronomical methods, Time domain astronomy, Time series analysis, Astrostatistics techniques, Classification, Light curves, Random Forests, 1668, 1957, 1043, 2109, 1916, 1886, 1907, 918, 1935, Astrophysics - High Energy Astrophysical Phenomena, Astrophysics - Instrumentation and Methods for Astrophysics},
year = 2024,
month = oct,
volume = {974},
number = {2},
eid = {172},
pages = {172},
doi = {10.3847/1538-4357/ad6869},
archivePrefix = {arXiv},
eprint = {2404.01235},
primaryClass = {astro-ph.HE},
adsurl = {https://ui.adsabs.harvard.edu/abs/2024ApJ...974..172A},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file relaiss-1.2.3.tar.gz.
File metadata
- Download URL: relaiss-1.2.3.tar.gz
- Upload date:
- Size: 5.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a85fa0161087392498ee0a2937b5d4a2de5ce788b42c1e014d398bd9285feb4
|
|
| MD5 |
fa35b12c3783b4ec1811bcc8a8a98770
|
|
| BLAKE2b-256 |
baca4b9c8d3e8cb693e76dd0477c3fa7e9f81b1e3fa5b89fb4eba6d5133f47f5
|
File details
Details for the file relaiss-1.2.3-py3-none-any.whl.
File metadata
- Download URL: relaiss-1.2.3-py3-none-any.whl
- Upload date:
- Size: 53.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec4ab40126942dc13b38c078ef949887c989285ec2632509c6704d9eea645283
|
|
| MD5 |
b6c8d6f11d8875187dbe8c41c4a7786b
|
|
| BLAKE2b-256 |
e71abee5bea35dfc0c4f7f0800586daa5bb8ab22a0a5e37c625e34d0fe0e1cff
|