Skip to main content

A python package for GW-EM Followup Optimization

Project description


Gravitational-wave Electromagnetic Optimization

Coverage Status CI PyPI version

The code currently can:

  • interact with gracedb, download the skymaps, read them etc.
  • read telescope configuration files with location, FOV, limiting magnitude, exposure times, etc.
  • create the tiling based on telescope configuration (MOC, Shaon's method).
  • generate exposure time as a function of tile, which accounts for number of hours available.
  • perform scheduling to include most of the requested exposures
  • test the efficiency of the tiling, exposure time method choices, for a given lightcurve.

Current planned improvements / open questions:

  • Include moon and sky brightness when scheduling
  • How to improve scheduling when multiple (and different numbers of exposures are expected)
  • How to use WAW when inclination is not immediately available
  • How to include distance estimates as function of sky location in PEM

Related repositories:


Setting up the environment

If you want the latest version, we recommend creating a clean environment:

conda create -n gwemopt python=3.11
git clone
pip install -e gwemopt
pre-commit install

or if you just want the latest version on Github:

pip install gwemopt

If you run into dependency issues, you can try installing dependencies via conda:

conda install numpy scipy matplotlib astropy h5py shapely
conda install -c astropy astroquery
conda install -c conda-forge voeventlib astropy-healpix python-ligo-lw ligo-segments ligo.skymap ffmpeg

And then run pip install -e gwemopt again.


Once installed, You can use gwemopt via the command line:

gwemopt-run ....

where ... corresponds to the various arguments.

Project details

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gwemopt-0.1.6.tar.gz (113.2 MB view hashes)

Uploaded source

Built Distribution

gwemopt-0.1.6-py3-none-any.whl (114.0 MB view hashes)

Uploaded py3

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