-
Notifications
You must be signed in to change notification settings - Fork 1
initKernels
github-actions[bot] edited this page May 30, 2026
·
1 revision
moon-sighting / initKernels
initKernels(
config?):Promise<void>
Defined in: api/index.ts:121
Initialize the kernel engine from an already-downloaded kernel. Must be called before getMoonSightingReport() or getSunMoonEvents().
Supports three source modes:
- File path (Node.js): initKernels({ planetary: { type: 'file', path: '/path/to/de442s.bsp' } })
- ArrayBuffer (browser): initKernels({ planetary: { type: 'buffer', data: buf, name: 'de442s.bsp' } })
- Auto (Node.js): initKernels() — downloads and caches automatically
Kernel source configuration. Defaults to auto-download.
Promise<void>
moon-sighting · MIT License · npm · Issues
Guides
Examples
API Reference
- getMoonSightingReport
- getMoonPhase
- getMoonPosition
- getMoonIllumination
- getMoonVisibilityEstimate
- getMoon
- getSunMoonEvents
- initKernels
- downloadKernels
- verifyKernels
Domain Reference
Package Reference
Community