empyrean.initialize¶
- initialize(*, data_dir=None, de440_path=None, gm_path=None)[source]¶
Initialize empyrean with SPICE kernel data.
On first call, loads ephemeris data into a global context. Subsequent calls are no-ops.
If the B612 Foundation data packages (
naif-de440,jpl-small-bodies-de441-n16,naif-eop-high-prec,naif-eop-historical,naif-eop-predict,mpc-obscodes) are installed and no explicit paths are provided, empyrean stages a symlinked cache under the platform XDG data directory ($XDG_DATA_HOME/empyrean/data/on Linux,~/Library/Application Support/empyrean/data/on macOS,%APPDATA%\empyrean\data\on Windows; honorsEMPYREAN_DATA_DIR) and uses that as the data directory — zero network access required. Falls back todata_dir(default: the same XDG.../empyrean/data/location) plusdownload_data()otherwise.