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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file stelspec-0.0.5.tar.gz.

File metadata

  • Download URL: stelspec-0.0.5.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for stelspec-0.0.5.tar.gz
Algorithm Hash digest
SHA256 f53dc302a6bece137a3c9ae3ef0aaf074a0053eba406bfcd7ed25c511e12f4f5
MD5 d394dc258c1e3baf3bab08f0c9d1b831
BLAKE2b-256 34511524bab79ff22f2e36ffaefccdec89ead205699639eab0a2d5d81134d313

See more details on using hashes here.

File details

Details for the file stelspec-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: stelspec-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for stelspec-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b295214ff9a140a7eb8d052806ca99eb58f98b76bebf5ef56ecce16f7a70b271
MD5 d785641eb8cc8e424920a0eea92cc6b1
BLAKE2b-256 e6855f0f992efcdd646d2e33e73cd80b5bef5847e3414df9b62a5de6893a031b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page