Library of astronomical calculations specific to astrology. Aimed at astrological software and services.
- 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.
Add to pubspec.yaml of your project
dependencies:
stardart:
git:
url: https://github.com/ilbagatto/stardart.git
ref: master
Then run:
$ dart pub update
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.
All the calculations are based on AstroPC library of astronomical calculations.