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

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file bettermoments-1.0.0.macosx-10.7-x86_64.tar.gz.

File metadata

  • Download URL: bettermoments-1.0.0.macosx-10.7-x86_64.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.4 setuptools/40.3.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.0

File hashes

Hashes for bettermoments-1.0.0.macosx-10.7-x86_64.tar.gz
Algorithm Hash digest
SHA256 da26cd684860c3b882eccbb9b28820dde2a1ef2e60ee1d5f65ae80ecf8d84c25
MD5 5bf8c65f16bbec0c73b51e586793e0b1
BLAKE2b-256 f4870eff6d414c402822b19dc760ccb4d0f359fa4e94be1b590d834d4db85711

See more details on using hashes here.

Provenance

File details

Details for the file bettermoments-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: bettermoments-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.4 setuptools/40.3.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.0

File hashes

Hashes for bettermoments-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 26acf3219eeb38357b4eb61ce4cd34b7cb867a84d25ee7b6df405e64140ae4e6
MD5 cb431d5c91e6b5f6cb0a64f064469639
BLAKE2b-256 5bf6cc6e9ad6e2fbaeffe6c36a10ca68af94787653b8628af7023e2f17759324

See more details on using hashes here.

Provenance

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