Skip to main content

No project description provided

Project description

Prost: Probabilistic Host Galaxy Association

Prost is a library for rapidly associating transients with their host galaxies.

The code calculates the posterior probability that each galaxy in a search region is the true host galaxy, by considering the transient's fractional offset, redshift (or the prior for the survey), and brightness. The code can query from the following catalogs:

The code also estimates the posterior probability that the true host lies outside of the search cone or is missing from the search catalog. The priors and likelihoods for each property can be customized according to the transient survey. Using the code is straightforward:

import pandas as pd
from astro_prost import associate_sample
from scipy.stats import gamma, halfnorm, uniform

# define a transient catalog 
transient_catalog = pd.DataFrame({
    'name': ['MyTransient'],
    'ra': [237.1981094],
    'dec': [9.2000414]
})

# define a catalog to search -- options are glade, decals, and panstarrs
catalogs = ["decals"]

# define priors and likelihoods
priorfunc_offset = uniform(loc=0, scale=10)
likefunc_offset = gamma(a=0.75)

priors = {"offset": priorfunc_offset}
likes = {"offset": likefunc_offset}

# associate
hosts = \
    associate_sample(
        transient_catalog,
        priors=priors,
        likes=likes,
        catalogs=catalogs,
        name_col='name',
        coord_cols=('ra', 'dec'),
        save=False
)

Template

PyPI GitHub Workflow Status Read The Docs

Questions? Functionality you'd like to see? Report an issue or reach out at gaglian2[at]mit.edu.

This project was automatically generated using the LINCC-Frameworks python-project-template.

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_prost-1.2.8.tar.gz (82.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astro_prost-1.2.8-py3-none-any.whl (82.4 MB view details)

Uploaded Python 3

File details

Details for the file astro_prost-1.2.8.tar.gz.

File metadata

  • Download URL: astro_prost-1.2.8.tar.gz
  • Upload date:
  • Size: 82.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for astro_prost-1.2.8.tar.gz
Algorithm Hash digest
SHA256 93f075a5b54e5c87b6976a1d29b4dd4a4e870e5cd122bb5ab318c3282be0de6c
MD5 4341438e5c1d85b9807f6e0ec212456d
BLAKE2b-256 865c0e9b36ddc5e72fa1164828bf8f9d857053058d6eddf1b2f89fa1ec56bfa3

See more details on using hashes here.

File details

Details for the file astro_prost-1.2.8-py3-none-any.whl.

File metadata

  • Download URL: astro_prost-1.2.8-py3-none-any.whl
  • Upload date:
  • Size: 82.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for astro_prost-1.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 afad8d8bb0d67e09c18cc7f2243bf5e1633bb726058c3684e7fd813ba727f02b
MD5 5b20160fe2f7b2555cc0b748940b0ea7
BLAKE2b-256 fff5b0db704909ef59fbef2cdbd00c1129f9ac33cab797f60d1efeb6e3a951eb

See more details on using hashes here.

Supported by

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