Skip to main content

No project description provided

Project description

Logo

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 supports 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 set of catalogs to search -- options are glade, decals, panstarrs, and skymapper
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 DOI PyPI GitHub Workflow Status Read The Docs

If you find Prost useful for your work, please cite the Zenodo release:

@software{Gagliano2025_Prost,
  author       = {Alex Gagliano and
                  Kaylee de Soto and
                  Adam Boesky and
                  T. Andrew Manning},
  title        = {alexandergagliano/Prost: v1.2.11},
  month        = may,
  year         = 2025,
  publisher    = {Zenodo},
  version      = {v1.2.11},
  doi          = {10.5281/zenodo.15397886},
  url          = {https://doi.org/10.5281/zenodo.15397886},
}

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.12.tar.gz (84.7 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.12-py3-none-any.whl (82.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: astro_prost-1.2.12.tar.gz
  • Upload date:
  • Size: 84.7 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.12.tar.gz
Algorithm Hash digest
SHA256 fd9a078e0c00e2f60659336ae5292bfb7eff15d783649c795a2f80b0dff9bce1
MD5 33bdaab572e7a4910ffb3c524130d49e
BLAKE2b-256 5d4805e1f1332966f3d08b94758b34868a665ea695798a71b697299406617b87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: astro_prost-1.2.12-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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 e20636b208c12f61bcd19c3ebd40e81dd429948692596c553cdda1f43bc59c29
MD5 05f89cf4853a8100368c1da4b22d56e1
BLAKE2b-256 901fde3b8bca7258f08c4456b14868f900c000eb68163ba301f3332326a7df28

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