Skip to content
Discussion options

You must be logged in to vote

Makes sense. In case it proves useful to anyone else, here's an implementation of the Meeus formulas for ascendant and midheaven using astronomy-engine to get the ecliptic obliquity and sidereal time:

import * as Astronomy from 'astronomy-engine';

function calculateAscendant(params: {
  latitude: number;
  longitude: number;
  date: Date;
}) {
  const {date, latitude} = params;
  const localSiderealRadians = localSiderealTimeRadians(params);
  const eclipticObliquity = degreesToRadians(
    Astronomy.e_tilt(new Astronomy.AstroTime(date)).tobl
  );
  const x =
    Math.sin(localSiderealRadians) * Math.cos(eclipticObliquity) +
    Math.tan(degreesToRadians(latitude)) * Math.sin(eclipticObl…

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
7 replies
@gsvjk
Comment options

@cosinekitty
Comment options

@KurtPreston
Comment options

@cosinekitty
Comment options

@cosinekitty
Comment options

Comment options

You must be logged in to vote
2 replies
@ebraminio
Comment options

@ebraminio
Comment options

Answer selected by KurtPreston
Comment options

You must be logged in to vote
3 replies
@gsvjk
Comment options

@KurtPreston
Comment options

@ebraminio
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants