Safe Haskell | None |
---|---|
Language | Haskell2010 |
The types defined here are exported publicly for convenience, but at least in versions <= 2.x, they're likely to evolve.
Synopsis
- data Planet
- data HouseSystem
- data ZodiacSignName
- data NakshatraName
- data SplitDegreesOption
- newtype JulianTime = JulianTime {}
- newtype SiderealTime = SiderealTime {}
- type HouseCusp = Double
- data EclipticPosition = EclipticPosition {}
- data GeographicPosition = GeographicPosition {}
- data EquatorialPosition = EquatorialPosition {}
- data ObliquityInformation = ObliquityInformation {}
- data HousePosition = HousePosition {}
- data Angles = Angles {}
- data CuspsCalculation = CuspsCalculation {
- houseCusps :: [HouseCusp]
- angles :: Angles
- systemUsed :: HouseSystem
- data LongitudeComponents = LongitudeComponents {}
- mkCalculationOptions :: [CalcFlag] -> CalcFlag
- defaultCalculationOptions :: [CalcFlag]
- foldSplitDegOptions :: [SplitDegFlag] -> SplitDegFlag
- splitOptionToFlag :: SplitDegreesOption -> SplitDegFlag
- defaultSplitDegreesOptions :: [SplitDegreesOption]
- toHouseSystemFlag :: HouseSystem -> Int
- coordinatesFromList :: [Double] -> EclipticPosition
- eclipticFromList :: [Double] -> EclipticPosition
- eclipticToList :: EclipticPosition -> [Double]
- equatorialFromList :: [Double] -> EquatorialPosition
- equatorialToList :: EquatorialPosition -> [Double]
- obliquityNutationFromList :: [Double] -> ObliquityInformation
- anglesFromList :: [Double] -> Angles
- planetNumber :: Planet -> PlanetNumber
Documentation
All bodies for which a position can be calculated. Covers planets in the solar system, points between the Earth and the Moon, and astrologically significant asteroids (currently, only Chiron, but ephemerides data is available for others.) More at 2.1 Planetary and lunar ephemerides and 3.2 bodies
Sun | |
Moon | |
Mercury | |
Venus | |
Mars | |
Jupiter | |
Saturn | |
Uranus | |
Neptune | |
Pluto | |
MeanNode | |
TrueNode | |
MeanApog | |
OscuApog | |
Earth | |
Chiron |
Instances
data HouseSystem Source #
The major house systems. The underlying library supports many more, including the 36-cusp outlier Gauquelin. More info at 6.2 Astrological house systems and 14. House cusp calculation
Instances
data ZodiacSignName Source #
Represents western zodiac signs. Unless otherwise stated, they correspond to tropical divisions of the ecliptic, vs. the actual constellations.
Instances
data NakshatraName Source #
Nakshatras, provided for thoroughness, please excuse any misspellings! List from: https://en.wikipedia.org/wiki/List_of_Nakshatras note that the underlying library uses 27 nakshatras, so Abhijit is omitted.
Instances
data SplitDegreesOption Source #
Options to split a Double
representing degrees:
RoundSeconds -- round at the seconds granularity (omits seconds fraction.)
RoundMinutes -- round at the minutes granularity.
RoundDegrees -- round at the degrees granularity.
SplitZodiacal -- relative to zodiac signs.
SplitNakshatra -- relative to nakshatra.
KeepSign -- when rounding, don't round if it'll move it to the next zodiac/nakshatra sector.
KeepDegrees -- when rounding, don't round if it'll move it to the next degree.
Instances
newtype JulianTime Source #
Represents an instant in Julian time.
see:
8. Date and time conversion functions
also cf. julianDay
Instances
Eq JulianTime Source # | |
Defined in SwissEphemeris.Internal (==) :: JulianTime -> JulianTime -> Bool # (/=) :: JulianTime -> JulianTime -> Bool # | |
Ord JulianTime Source # | |
Defined in SwissEphemeris.Internal compare :: JulianTime -> JulianTime -> Ordering # (<) :: JulianTime -> JulianTime -> Bool # (<=) :: JulianTime -> JulianTime -> Bool # (>) :: JulianTime -> JulianTime -> Bool # (>=) :: JulianTime -> JulianTime -> Bool # max :: JulianTime -> JulianTime -> JulianTime # min :: JulianTime -> JulianTime -> JulianTime # | |
Show JulianTime Source # | |
Defined in SwissEphemeris.Internal showsPrec :: Int -> JulianTime -> ShowS # show :: JulianTime -> String # showList :: [JulianTime] -> ShowS # |
newtype SiderealTime Source #
Represents an instant in sidereal time
Instances
Eq SiderealTime Source # | |
Defined in SwissEphemeris.Internal (==) :: SiderealTime -> SiderealTime -> Bool # (/=) :: SiderealTime -> SiderealTime -> Bool # | |
Ord SiderealTime Source # | |
Defined in SwissEphemeris.Internal compare :: SiderealTime -> SiderealTime -> Ordering # (<) :: SiderealTime -> SiderealTime -> Bool # (<=) :: SiderealTime -> SiderealTime -> Bool # (>) :: SiderealTime -> SiderealTime -> Bool # (>=) :: SiderealTime -> SiderealTime -> Bool # max :: SiderealTime -> SiderealTime -> SiderealTime # min :: SiderealTime -> SiderealTime -> SiderealTime # | |
Show SiderealTime Source # | |
Defined in SwissEphemeris.Internal showsPrec :: Int -> SiderealTime -> ShowS # show :: SiderealTime -> String # showList :: [SiderealTime] -> ShowS # |
type HouseCusp = Double Source #
The cusp of a given "house" or "sector". It is an ecliptic longitude. see: 14.1 House cusp calculation and 6.2 Astrological house systems
data EclipticPosition Source #
Position data for a celestial body on the ecliptic, includes rotational speeds. see: 3.4 Position and speed
Instances
data GeographicPosition Source #
Represents a point on Earth, with negative values for latitude meaning South, and negative values for longitude meaning West. No speed information is included (or needed,) because all calculations are geocentric.
Instances
data EquatorialPosition Source #
Represents a position on the celestial sphere, with speed information included.
EquatorialPosition | |
|
Instances
data ObliquityInformation Source #
Includes the obliquity of the ecliptic, the Nutation as longitude as well as mean values.
Instances
data HousePosition Source #
The house a celestial body is in.
Instances
Eq HousePosition Source # | |
Defined in SwissEphemeris.Internal (==) :: HousePosition -> HousePosition -> Bool # (/=) :: HousePosition -> HousePosition -> Bool # | |
Show HousePosition Source # | |
Defined in SwissEphemeris.Internal showsPrec :: Int -> HousePosition -> ShowS # show :: HousePosition -> String # showList :: [HousePosition] -> ShowS # | |
Generic HousePosition Source # | |
Defined in SwissEphemeris.Internal type Rep HousePosition :: Type -> Type # from :: HousePosition -> Rep HousePosition x # to :: Rep HousePosition x -> HousePosition # | |
type Rep HousePosition Source # | |
Defined in SwissEphemeris.Internal type Rep HousePosition = D1 (MetaData "HousePosition" "SwissEphemeris.Internal" "swiss-ephemeris-1.2.0.0-JDXT6ozMaY2D0XcAJvWZrZ" False) (C1 (MetaCons "HousePosition" PrefixI True) (S1 (MetaSel (Just "houseNumber") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "houseCuspDistance") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double))) |
Relevant angles: ascendant and MC, plus other "exotic" ones: 14. House cusp calculation
Angles | |
|
Instances
data CuspsCalculation Source #
Result of calculating the cusps for a given event; will include a list of cusps (most systems use 12 cusps, Gauquelin uses 36.)
CuspsCalculation | |
|
Instances
data LongitudeComponents Source #
A longitude expressed in its constituent parts.
Instances
mkCalculationOptions :: [CalcFlag] -> CalcFlag Source #
defaultSplitDegreesOptions :: [SplitDegreesOption] Source #
Convenient defaults when using splitDegrees
:
Omit rounding if it would bring it over the next sign or degree.
toHouseSystemFlag :: HouseSystem -> Int Source #
coordinatesFromList :: [Double] -> EclipticPosition Source #
eclipticFromList :: [Double] -> EclipticPosition Source #
eclipticToList :: EclipticPosition -> [Double] Source #
equatorialToList :: EquatorialPosition -> [Double] Source #
anglesFromList :: [Double] -> Angles Source #
planetNumber :: Planet -> PlanetNumber Source #