Lunar moon change #309
Replies: 2 comments 10 replies
-
The ephemeris you referenced from astro.com appears to be showing the Moon's ecliptic longitude at exactly 00:00 UTC. However, in the Javascript code you posted, you are searching for the next time the Moon crosses through the ecliptic plane, which is not the same time. In fact, it can be as many as 15 days later. Can you try adding this line of code? console.log(`Node at ${node.time}`); This will show the time for which you are finding the Moon's ecliptic longitude. I think what you meant to do is: const eclip = Astronomy.EclipticGeoMoon(date); |
Beta Was this translation helpful? Give feedback.
-
Hi again. I wanna update this discussion. I shared my human design program https://github.com/arumdyaharum/hdkit if you wanna know how I use this. if you run the program, you'll get gate, line, color, tone, and base. basically what it does is dividing gates into lines, lines into colors, etc. so the accuracy of the degree or longitude is crucial. tbh I'm confused when I wrote this answer of mine. so I refactor it like this. function lunarNode (date) {
const node = Astronomy.SearchMoonNode(date);
const eclip = Astronomy.EclipticGeoMoon(node.time);
const eclipLon = node.kind < 0 ? (eclip.lon + 180) % 360 : eclip.lon
if (node.time.date === date) return eclipLon;
let tempDate = new Date(date);
let flag = true;
let nodeBefore = node;
while(flag) {
tempDate.setDate(tempDate.getDate() - 10);
nodeBefore = Astronomy.SearchMoonNode(tempDate);
if (nodeBefore.time.date.getDate() !== node.time.date.getDate()) flag = false;
}
const eclipBefore = Astronomy.EclipticGeoMoon(nodeBefore.time);
const eclipBeforeLon = nodeBefore.kind < 0 ? (eclipBefore.lon + 180) % 360 : eclipBefore.lon
const d = Math.abs(node.time.date - nodeBefore.time.date);
const a = Math.abs(node.time.date - date);
const fraction = (a/d);
let angle = eclipBeforeLon - eclipLon;
angle = angle * fraction;
const currentEclip = eclipLon + angle;
// version 2 : with the constant of lunar nodes regression's rate
// const time = a / (365.25 * 24 * 60 * 60 * 1000);
// const angle = 19.32 * time;
// const currentEclip = eclipLon + angle;
return currentEclip;
} it's getting the lunar node's gates and line right, but if I wanna get the color and tone, the accuracy is not consistent especially before 2000. I know it's accurate or not by comparing my data to www.humdes.com data. lunar node's color and tone is used for creating the direction of bottom arrow. it also applies to the top arrow with sun's color and tone which if you see it's already accurate. |
Beta Was this translation helpful? Give feedback.
-
In astrology we have north node and south node that change the longitude almost every day. I tried code like this
the output was this
but after I check on the astrology empheris (https://www.astro.com/tmpd/c8yhfileyS5iO5-u1687025000/astro_d5eph_d.65025.59325.pdf), the actual degree (with adding 150 because it's in virgo) is this
How can I get the correct lunar node longitude like astrology empheris?
Beta Was this translation helpful? Give feedback.
All reactions