Skip to content

Calculating the ascendant and midheaven #340

Closed Answered by KurtPreston
KurtPreston asked this question in Q&A
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 9 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
0 replies
Answer selected by KurtPreston
Comment options

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

@KurtPreston
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
3 participants