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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stelspec-0.0.5.tar.gz | 7.0 kB | Without provenance | Details for stelspec-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stelspec-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for stelspec-0.0.5-py3-none-any.whl |
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
|
Security for stelspec 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.