Skip to main content

A python package for retrieving and analysing stellar spectra (ELODIE-SOPHIE Archive)

Project description

Author: Behrouz Safari
License: MIT

stelspec

A python package for retrieving and analysing stellar spectra (ELODIE-SOPHIE Archive)

Installation

Install the latest version of stelspec from PyPI:

pip install stelspec

Requirements are requests, numpy and pandas.

Quick start

Let's start by creating an Elodie instance by passing an object name:

import stelspec as sp

el = sp.Elodie('HD217014')

You can access two tables, CCF and Spectra, as pandas DataFrame.

# table: Cross-Correlation Functions
df_ccf = el.ccf()

# table: Spectra
df_spc = el.spec()

You can also download spectra as FITS file, whether in s1d or s2d format:

# download spectrum FITS file in s1d format
el.get_spec(dataset=19960831, imanum='0017', path='data/', s1d=True)

# download spectrum FITS file in s2d format
el.get_spec(dataset=19960831, imanum='0017', path='data/', s1d=Flase)

The same process can be done for Sophie, except that instead of dataset and imanum, you should pass the seq number.

For a brief help on the structure of FITS files, see ELODIE and SOPHIE.

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

stelspec-0.0.5.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

stelspec-0.0.5-py3-none-any.whl (7.4 kB view hashes)

Uploaded 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