Skip to main content

CL-tools for PanSTARRS & ATLAS LIGO-VIRGO (PSAT) group to aid surveys of the likely sky-locations of LIGO-VIRGO discovered Gravitational Waves

Project description

Documentation Status Coverage Status

A python package and command-line tools for the PanSTARRS & ATLAS LIGO-VIRGO (PSAT) group to aid surveys of the likely sky-locations of LIGO-VIRGO discovered Gravitational Waves.

Command-Line Usage

*The CL tools for breaker*

:Author:
    David Young

:Date Created:
    October 29, 2015

Usage:
    breaker init
    breaker update [-n] [-s <pathToSettingsFile>]
    breaker skymap <gwid> <pathToLVMap>
    breaker plot [-a] (timeline|history|sources) [-w <gwid>] [-t <telescope>] [-p <projection>] [-s <pathToSettingsFile>]
    breaker plot comparison <gwid> <pathToMapDirectory> [-s <pathToSettingsFile>]
    breaker faker <ps1ExpId> [-s <pathToSettingsFile>]
    breaker stats <gwid> [<telescope>] [-s <pathToSettingsFile>]
    breaker listen <far> (<mjdStart> <mjdEnd> | <inLastNMins>) [-s <pathToSettingsFile>]
    breaker listen -d <far> [<sec>] [-s <pathToSettingsFile>]

    COMMANDS
    --------
    init                  setup the breaker settings file for the first time
    update                update the PS1 footprint table in breaker database and associate with GW-IDs. Optionally download overlapping NED source and also add to the database
    skymap                generate an all sky FITS & PDF image map given the path to the LV likeihood map (Meractor and Mollweide projections respectively)
    plot                  enter plotting mode
    timeline              plot from the epoch of the wave detection forward in time
    history               plot from now back in time over the last days, weeks and months
    comparison            produce a multi-panel plot to compare wave maps
    stats                 generate some coverage stats for a given wave survey campaign
    sources               overplot map with NED sources found within the wave campaign footprint
    faker                 generate a catalogue of simulated transient sources in PS1 exposure ID footprint
    listen                connect to grace DB and download maps found within the given time range

    ARGUMENTS
    ---------
    far                   false alarm rate limit in Hz (1e-5 Hz ~= 1 per day)
    -w <gwid>             the gravitational wave ID
    pathToSettingsFile    path to the yaml settings file
    pathToMapDirectory    path to a directory containing localisation maps
    ps1ExpId              a panstarrs exposure ID
    mjdStart              start of an MJD range
    mjdEnd                end of the MJD range
    inLastNMins           in the last N number of minutes
    pathToLVMap           path to the LV likelihood map
    sec                   time in seconds
    -t <telescope>        select an individual telescope (default is all telescopes) [ps1|atlas]
    -p <projection>       skymap projection. Default *mercator*. [mercator|gnomonic|mollweide]

    FLAGS
    -----
    -h, --help            show this help message
    -s, --settings        the settings file
    -n, --updateNed       update the NED database steam
    -d, --daemon          listen in daemon mode
    -a, --all             plot all timeline plot (including the CPU intensive -21-0 days and all transients/footprints plots)

Documentation

Documentation for breaker is hosted by Read the Docs (last stable version and latest version).

Installation

The easiest way to install breaker is to use pip:

pip install breaker

Or you can clone the github repo and install from a local version of the code:

git clone git@github.com:thespacedoctor/breaker.git
cd breaker
python setup.py install

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

pip install breaker --upgrade

Troubleshooting

If you’re having trouble with the installation here are a few things to try:

Astropy and Clang. On Mac OS you may have to set your C-compiler to clang before astropy will install. So before the breaker installation, try:

setenv CC clang

or, for bash:

export CC=clang

Then try and install breaker again.

healpy. If you’re having trouble installing healpy try installing the latest version from github. Download and extract the tarball.

Untar, set your MACOSX_DEPLOYMENT_TARGET environment variable and install:

tar -xvf healpy-1.9.0.tar.gz
cd healpy-1.9.0
setenv MACOSX_DEPLOYMENT_TARGET 10.11
python setup.py install

Development

If you want to tinker with the code, then install in development mode. This means you can modify the code from your cloned repo:

git clone git@github.com:thespacedoctor/breaker.git
cd breaker
python setup.py develop

Pull requests are welcomed!

Issues

Please report any issues here.

License

Copyright (c) 2016 David Young

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

breaker-1.9.3.tar.gz (1.6 MB view details)

Uploaded Source

Built Distributions

breaker-1.9.3-py2.7.egg (1.7 MB view details)

Uploaded Source

breaker-1.9.3-py2-none-any.whl (1.6 MB view details)

Uploaded Python 2

File details

Details for the file breaker-1.9.3.tar.gz.

File metadata

  • Download URL: breaker-1.9.3.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for breaker-1.9.3.tar.gz
Algorithm Hash digest
SHA256 3d718a81b2c6bcf5f024acef15d937c614ff51e3ced3775250b32d4cd005a73d
MD5 588788ab0564c46bc1c064e18067ab78
BLAKE2b-256 4c526f436511234bda2315b36dbaf82daaaf33ac360fd794fc911de5ea2dd61d

See more details on using hashes here.

File details

Details for the file breaker-1.9.3-py2.7.egg.

File metadata

  • Download URL: breaker-1.9.3-py2.7.egg
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for breaker-1.9.3-py2.7.egg
Algorithm Hash digest
SHA256 69d1506bba6f883c1ea0579025259c65bcb55d596de7ca23d30983f93bd05c52
MD5 f571d6df03ca623c22515dc346cf8a3c
BLAKE2b-256 4d0b454cd91b2f67bf777232172174da1a684360e01f257f16cd342cb92f11d5

See more details on using hashes here.

File details

Details for the file breaker-1.9.3-py2-none-any.whl.

File metadata

File hashes

Hashes for breaker-1.9.3-py2-none-any.whl
Algorithm Hash digest
SHA256 c509b6d0fe843a167d2503b0bebd37ba5b9a558815ee95f92741dc044e356b4f
MD5 847c17de39e9b2b8aef37cb958d4da87
BLAKE2b-256 fd31e20b95363f00ae547d512eba6d31bd625904e78534875908b417fd9f607c

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