jpl-horizons-api-0.4.0.0: Ephemerides for solar system objects from the JPL Horizons service
Safe HaskellNone
LanguageHaskell2010

API.JPL.Horizons

Description

The JPL Horizons [1] on-line solar system data and ephemeris computation service provides access to key solar system data and flexible production of highly accurate ephemerides for solar system objects (1,180,796 asteroids, 3,789 comets, 211 planetary satellites {includes satellites of Earth and dwarf planet Pluto}, 8 planets, the Sun, L1, L2, select spacecraft, and system barycenters).

Horizons is provided by the Solar System Dynamics Group of the Jet Propulsion Laboratory.

1) https://ssd.jpl.nasa.gov/horizons/

Synopsis

Documentation

saveCsv Source #

Arguments

:: Body

center body (observation site)

-> (Day, Day)

(first, last) day of observation

-> Int

observation interval in minutes

-> Body

solar system body

-> Format

Output format

-> IO () 

Make an API call, parse and save the results as CSV

The resulting file will contain one sample of the state vector per row

data Body Source #

Large bodies in the Solar System

Instances

Instances details
Enum Body Source # 
Instance details

Defined in API.JPL.Horizons

Methods

succ :: Body -> Body #

pred :: Body -> Body #

toEnum :: Int -> Body #

fromEnum :: Body -> Int #

enumFrom :: Body -> [Body] #

enumFromThen :: Body -> Body -> [Body] #

enumFromTo :: Body -> Body -> [Body] #

enumFromThenTo :: Body -> Body -> Body -> [Body] #

Eq Body Source # 
Instance details

Defined in API.JPL.Horizons

Methods

(==) :: Body -> Body -> Bool #

(/=) :: Body -> Body -> Bool #

Show Body Source # 
Instance details

Defined in API.JPL.Horizons

Methods

showsPrec :: Int -> Body -> ShowS #

show :: Body -> String #

showList :: [Body] -> ShowS #

data Format Source #

Output format

Constructors

StdOut 
ToCSV FilePath