empyrean.download_data¶
- download_data(*, data_dir=None)[source]¶
Provision a usable data directory with the required SPICE kernels.
Provisions the OS-appropriate XDG data directory by default (see
default_data_dir()); passdata_dirto target another. Idempotent: files already present are kept; only missing files are downloaded.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 explicitdata_diris given, their kernels are staged from the installed wheels with zero network access, and only what they do not supply (e.g.bias.dat) is downloaded.- Parameters:
data_dir (
str|Path|None) – Target directory. Defaults to the value returned bydefault_data_dir()(honorsEMPYREAN_DATA_DIR).- Return type:
- Returns:
str – Path to the provisioned data directory.