Skip to main content

A robust method for inferring line-of-sight velocities from Doppler shifted spectra

Project description

bettermoments

DOI

Measuring precise line-of-sight velocities is essential when looking for small scale deviations indicative of, for example, embedded planets. bettermoments helps you measure such velocities.

Approach

Rather than fitting the full line profile with an analytical expression, we fit a quadratic to the the peak pixel and its two adjacent pixels. For a single component, this has been shown om Vakili & Hogg (2016) to provide comparable precision to fitting the full spectrum with the true underlying profile. Thus, in the extremely likely scenario where the underlying profile is not known, this method will out perform more common methods, such as the intensity weighted average.

Usage

To start, install the bettermoments package by executing

pip install bettermoments

Then you can execute this module using

import bettermoments as bm

x_max, x_max_sigma, y_max, y_max_sigma = pm.quadratic(data, uncertainties)

See the docstring for the bettermoments.quadratic function for more information on the available options.

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

bettermoments-1.0.0.macosx-10.7-x86_64.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

bettermoments-1.0.0-py2.py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 2 Python 3

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