API reference
AstroParams
Astro parameter configuration for ayanamsa and house-system selection.
The AstroParams namespace defines the astronomical configuration used by
chart generation. Configuration is separate from the Moment and location:
the moment says when and the coordinates say where, while these
parameters say which sidereal reference frame and house system to use.
import { AstroParams, Chart, Swisseph } from "astro-ascendant";
import { BunServices } from "@effect/platform-bun";
import { Effect, Layer } from "effect";
const runtimeLayer = Layer.mergeAll(
BunServices.layer,
Swisseph.SwissephLayer,
AstroParams.DefaultAstroParams,
);
const runnable = program.pipe(Effect.provide(runtimeLayer));
BunRuntime.runMain(runnable);Exports
| Export | Description |
|---|---|
Ayanamsa | Schema and type for the supported sidereal ayanamsas |
HouseSystem | Schema and type for supported house systems |
Options | { ayanamsa, houseSystem } configuration object |
AstroParams | Effect service consumed by chart generation |
layer(options) | Builds a layer providing the supplied configuration |
DefaultAstroParams | KrishnamurtiVP291 ayanamsa with Placidus houses (library default; pass explicit options to change it) |
Supported house systems:
PlacidusKochPorphyriusRegiomontanusCampanusEqualVehlowEqualWholeSignMeridianAzimuthalPolichPageAlcabitusMorinus
Supported ayanamsas:
FaganBradleyLahiriDeLuceRamanUshashashiKrishnamurtiDjwhalKhulYukteshwarJNBhasinBabylKugler1BabylKugler2BabylKugler3BabylHuberBabylEtPSCAldebaran15TauHipparchosSassanianGalacticCenter0SagJ2000J1900B1950SuryaSiddhantaSuryaSiddhantaMeanSunAryabhataAryabhataMeanSunSSRevatiSSCitraTrueCitraTrueRevatiTruePushyaGalacticCenterGilBrandGalacticEquatorIAU1958GalacticEquatorGalacticEquatorMidMulaSkydramTrueMulaDhruvaGalCenterMulaWilhelmAryabhata522BabylBrittonTrueSheoranGalacticCenterCochraneGalacticEquatorFiorenzaValensMoonLahiri1940LahiriVP285KrishnamurtiVP291LahiriICRC
Use the schema as the authoritative list when presenting a selection to users.