Skip to main content

Deep Learning Identification of Galaxy Hosts in Transients, a package to automatically identify host galaxies of transient candidates

Project description

drawing        drawing

The Deep Learning Identification of Galaxy Hosts in Transients (DELIGHT, Förster et al. 2022) is a library created by the ALeRCE broker to automatically identify host galaxies of transient candidates using multi-resolution images and a convolutional neural network (you can test it with our example notebook, that you can run in Colab). The initial idea for DELIGHT started as a project proposed for the La Serena School of Data Science in 2021.

You can install it using pip install astro-delight, but we recommend cloning this repository and pip install . from there.

The library has a class with several methods that allow you to get the most likely host coordinates starting from given transient coordinates. In order to do this, the delight object needs a list of object identifiers and coordinates (oid, ra, dec). With this information, it downloads PanSTARRS images centered around the position of the transients (2 arcmin x 2 arcmin), gets their WCS solutions, creates the multi-resolution images, does some extra preprocessing of the data, and finally predicts the position of the hosts using a multi-resolution image and a convolutional neural network. It can also estimate the host's semi-major axis if requested taking advantage of the multi-resolution images.

Note that DELIGHT's prediction time is currently dominated by the time to download PanSTARRS images using HiPS2fits HiPS2fits service. In the future, we expect that there will be services that directly provide multi-resolution images, which should be more lightweight with no significant loss of information. Once these images are obtained, the processing times are only milliseconds per host.

If you cannot install some of the dependencies, e.g. tensorflow, you can try running DELIGHT directly from Google Colab (test in this link).


Classes:

  • Delight: the main class containing the methods to predict host galaxy positions starting from transient coordinates

Methods (most important):

  • init: class constructor, it requires a list of object identifiers, a list of right ascensions, and a list of declinations
  • download: downloads PanSTARRS fits files using the panstamps servive.
  • get_pix_coords: gets the WCS solution in the fits files to move from pixel to celestial coordinates.
  • compute_multiresolution: transform the PanSTARRS images to multi-resolution images
  • load_model: load DELIGHT's Tensorflow model
  • predict: predict the host positions
  • plot_host: plot the original host image, the multi-resolution images, and the transient and predicted host position
  • get_hostsize: estimate the host semi-major axis
  • save: save the resulting dataframe
  • load: load the resulting dataframe

Requirements:


DELIGHT's multi-resolution images and prediction vector:

drawing

DELIGHT's neural network architecture:

drawing

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

astro_delight-0.0.11.tar.gz (9.7 MB view details)

Uploaded Source

Built Distribution

astro_delight-0.0.11-py3-none-any.whl (8.6 MB view details)

Uploaded Python 3

File details

Details for the file astro_delight-0.0.11.tar.gz.

File metadata

  • Download URL: astro_delight-0.0.11.tar.gz
  • Upload date:
  • Size: 9.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.8

File hashes

Hashes for astro_delight-0.0.11.tar.gz
Algorithm Hash digest
SHA256 269353cc32dc8fa20735387b7dfc12c3aa3c355f1338def8bd661f431884a33f
MD5 ea50ef06a0ba016095748c624db2e177
BLAKE2b-256 60e746b855692c75413942590f81618db24661d895707ac3402d3720c9a6cf4a

See more details on using hashes here.

File details

Details for the file astro_delight-0.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for astro_delight-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 211ba2a6b2de8253b408145c72916d59fc4df46490348591416c45ca1d9c050d
MD5 8938520b9636772faf57d4d886d4f34b
BLAKE2b-256 c720e67057bcd08bbe3b13a940b7365b5da7c5be415d616f1d9dcc59912d9d70

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page