Skip to main content

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.

Metadata

Release files for stelspec 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stelspec 0.0.5
File Size Uploaded
stelspec-0.0.5.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stelspec 0.0.5
File Interpreter ABI Platform
stelspec-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 14.3 kB

Release files / stelspec-0.0.5.tar.gz

Download URL stelspec-0.0.5.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f53dc302a6bece137a3c9ae3ef0aaf074a0053eba406bfcd7ed25c511e12f4f5
BLAKE2b-256 checksum
How to use checksums
34511524bab79ff22f2e36ffaefccdec89ead205699639eab0a2d5d81134d313
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / stelspec-0.0.5-py3-none-any.whl

Download URL stelspec-0.0.5-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b295214ff9a140a7eb8d052806ca99eb58f98b76bebf5ef56ecce16f7a70b271
BLAKE2b-256 checksum
How to use checksums
e6855f0f992efcdd646d2e33e73cd80b5bef5847e3414df9b62a5de6893a031b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page