mooncalc icon indicating copy to clipboard operation
mooncalc copied to clipboard

Trajectory is wrong

Open vicesalles opened this issue 8 years ago • 1 comments

Hi, the trajectory has nothing to do with the phase. The moon may stay in a crescent phase while in a descendent trajectory. I noted that you tie the trajectory with the phase and this is not correct.

vicesalles avatar Sep 27 '16 07:09 vicesalles

agreed.

i'm not an expert but, as this is related to the constellation, assuming the mooncalc formula is correct, maybe this is it:

function moonIsAscending (moon) {
  const { ecliptic: { longitude } } = moon;
  return longitude < 93.44 || longitude >= 271.26;
}

gre avatar Feb 08 '17 20:02 gre