Git Product home page Git Product logo

stelspec's Introduction

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.

stelspec's People

Contributors

behrouzz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.