Skip to main content

Annotate transient sources or galaxies with the percentage credibility region they reside within on a given HealPix sky map.

Project description

skytag

Annotate transient sources or galaxies with the percentage credibility region they reside within on a given HealPix sky map.

Documentation for skytag is hosted by Read the Docs (development version and main version). The code lives on github. Please report any issues you find here. If you want to contribute, pull requests are welcomed! true

Features

  • A command-line tool to report the credibility region a sky-location is found within on a HealPix skymap.
  • Providing a MJD will also return the time since the map event.
  • A python interface to provide the same functionality reported above, but can handle large lists of sky-locations or transient events.
  • works well in conjunction with gocart.

Installation

The easiest way to install skytag is to use conda:

conda create -n skytag python=3.11 pip skytag -c conda-forge
conda activate skytag

To upgrade to the latest version of skytag use the command:

conda upgrade skytag -c conda-forge

It is also possible to install via pip if required:

pip install skytag

To check installation was successful run skytag -v. This should return the version number of the install.

Command-Line

Here is the command-line usage:

Usage:
    skytag <ra> <dec> <mapPath>
    skytag <ra> <dec> <mjd> <mapPath>

If you need an example skymap, download one from here.

For example, to find the probability of the location RA=170.343532, Dec=-40.532255 then run:

skytag 170.343532 -40.532255 bayestar.multiorder.fits

This returns:

This location is found in the 74.55 credibility region of the map.

If you also supply an MJD:

skytag 170.343532 -40.532255 60065.2232 bayestar.multiorder.fits

We get:

This transient is found in the 74.55 credibility region, and occurred 2.85564 days after the map event.

Finally, we can request the localised event distance for this specific sky-position be returned:

skytag -d 170.343532 -40.532255 bayestar.multiorder.fits

This transient is found in the 74.55% credibility region. At this sky-position the map event is localised to a distance of 75.03 (±19.72) Mpc.

Python API

To use skytag in your own Python code, see here.

gocart

skyTag works very well in conjunction with gocart, a tool to consume GCN Kafka alert streams and convert HealPix skymaps.

How to cite skytag

If you use skytag in your work, please cite using the following BibTeX entry:

@software{Young_skytag,
    author = {Young, David R.},
    doi = {10.5281/zenodo.7977905},
    license = {GPL-3.0-only},
    title = {{skytag. Annotate transient sources or galaxies with the percentage credibility region they reside within on a given HealPix sky map.}},
    url = {https://zenodo.org/doi/10.5281/zenodo.7977905}
}

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

skytag-0.3.3.tar.gz (32.0 kB view details)

Uploaded Source

Built Distribution

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

skytag-0.3.3-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

Details for the file skytag-0.3.3.tar.gz.

File metadata

  • Download URL: skytag-0.3.3.tar.gz
  • Upload date:
  • Size: 32.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.13

File hashes

Hashes for skytag-0.3.3.tar.gz
Algorithm Hash digest
SHA256 1a0a4d9762f4e7c88f330d7cdd3f846ed0d2266adf13dff9bae90813d1a83ebd
MD5 7f7e7162fdcc00e4f872af2367f12726
BLAKE2b-256 65c39bfc31626527cd8bc70e8a3494f6da2df1f8b49ceb72498ddcb715e9fbfa

See more details on using hashes here.

File details

Details for the file skytag-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: skytag-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 32.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.13

File hashes

Hashes for skytag-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 58da1b74c6aa2544d78f4623a8b9c906d06b01df1e6e0736163f62f22e1bade1
MD5 a1a84b22493ec96c7e02382785bbc82c
BLAKE2b-256 5d20ae328fa54207baf058ef9faa6b1c2f8f0c67605704f2707fa1cb5468a887

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