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

ParameterTypeDefault valueDescription
engineEngineundefinedThe engine used to evaluate positions.
jdnumberundefinedJulian Day (UT).
bodiesBodyId[]undefinedThe bodies to include.
nnumberundefinedThe harmonic number, e.g. 5 or 9.
zodiacZodiac"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

Start building

Quickstart →