API Reference / harmonicChart · function
Function: harmonicChart()
function harmonicChart(
engine,
jd,
bodies,
n,
zodiac?): Record<string, number>;
The nth-harmonic chart: each body's longitude multiplied by n and wrapped
to [0, 360). The 5th harmonic surfaces quintiles, the 9th the navamsa, and
so on.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
engine | Engine | undefined | The engine used to evaluate positions. |
jd | number | undefined | Julian Day (UT). |
bodies | BodyId[] | undefined | The bodies to include. |
n | number | undefined | The harmonic number, e.g. 5 or 9. |
zodiac | Zodiac | "tropical" | Zodiac for the base longitudes. Defaults to tropical. |
Returns
Record<string, number>
Harmonic longitudes in degrees, keyed by body id.
Example
harmonicChart(engine, jd, ["sun", "moon", "venus"], 5); // quintile harmonic