Celestine API Documentation - v0.2.0
    Preparing search index...

    Function calculateHouses

    • Calculate house cusps for a given location, time, and house system

      This is the main function for calculating astrological houses. It handles all the complexity of different house systems and provides a unified interface.

      Parameters

      • location: GeographicLocation

        Geographic coordinates (latitude/longitude)

      • lst: number

        Local Sidereal Time in degrees (0-360)

      • julianCenturies: number

        Time in Julian centuries from J2000.0 (for obliquity)

      • system: HouseSystem = 'placidus'

        House system to use (default: 'placidus')

      Returns HouseData

      House data including cusps and angles

      If location is invalid or calculations fail

      import { calculateHouses } from './houses/index.js';

      const location = { latitude: 51.5074, longitude: -0.1278 }; // London
      const lst = 180.5; // Local Sidereal Time
      const T = 0.0; // J2000.0 epoch

      const houses = calculateHouses(location, lst, T, 'placidus');
      console.log(houses.angles.ascendant); // Ascendant degree
      console.log(houses.cusps.cusps[0]); // House 1 cusp (same as ASC)