Skip to content

Latest commit

 

History

History
70 lines (50 loc) · 1.65 KB

README.md

File metadata and controls

70 lines (50 loc) · 1.65 KB

StarDart

Library of astronomical calculations specific to astrology. Aimed at astrological software and services.

Features

  • Accurate positions of Sun, Moon and the 10 planets.
  • Sensitive points: Ascendant, Midheaven, Vertex, East Point, Lunar Node.
  • Houses:
    • Placidus
    • Koch
    • Regio-Montanus
    • Campanus
    • Topocentric
    • Morinus
    • Equal systems
  • Aspects, calculated using flexible orbs options.
  • Astrological Chart, based on all of the above.

Getting started

Add to pubspec.yaml of your project

dependencies:
  stardart:
    git:
      url: https://github.com/ilbagatto/stardart.git
      ref: master

Then run:

$ dart pub update

Usage

import 'package:astropc/timeutils.dart';
import 'package:stardart/charts.dart';



final birthChart = BirthChart(
    name: 'Birth Chart',
    djd: julDay(2024, 5, 9.5); // Julian date for epoch 1900.0,
    place: (name: 'Sofia, Bulgaria', coords: Point(-23.32, 42.698)));

final sun = chart.objects[ChartObjectType.sun]; // Sun
final lng = sun.position.lambda; // longitude
final motion = sun.dailyMotion; // mean daily 
final house = sun.house; // in which house, Placidus system by default

For more detailed example see example directory.

Additional information

All the calculations are based on AstroPC library of astronomical calculations.