Function reference

Solar spectra and brightness

Bundled solar irradiance and small-body magnitude models; no network or kernels.

solspect.get_solspect Load all source columns, optionally interpolate, and add derived flux columns.
solspect.solspect_addcols Add or refresh selected derived columns in place from wl and flam.
ssoflux.iau_hg_model The IAU HG phase function model in intensity (1 at alpha=0).
ssoflux.iau_hg_mag The IAU HG phase function model in magnitudes scale.
ssoflux.comet_mag Calculate the apparent magnitude of a comet.

Geometry

Coordinate frames, spin models, and subpoints from supplied vectors.

geometry.Pole Spin-axis pole in an inertial spherical coordinate frame.
geometry.IAUSpin IAU pole and prime-meridian rotation model.
geometry.IAUSpin.has_longitude Whether this spin model can define surface longitudes.
geometry.calc_subpoints Calculate subpoints and the observer’s rotational local hour angle.
geometry.ecl2eq Rotate ecliptic J2000 Cartesian coordinates to equatorial J2000.
geometry.eq2ecl Rotate equatorial J2000 Cartesian coordinates to ecliptic J2000.
geometry.eq2gal Rotate equatorial J2000 Cartesian coordinates to galactic.
geometry.gal2eq Rotate galactic Cartesian coordinates to equatorial J2000.

WCS and ephemeris storage

Transform pixels and sky coordinates, then store and filter local ephemeris tables.

ioutils.wcs.FastTanSipWCS Lightweight, Numba-optimized WCS implementation for tangent (TAN) projection
ioutils.wcs.all_world2pix_infov
ioutils.wcs.infov2d Create a 2-D boolean array indicating if the points are within the image
keteutils.fov.make_rect_fov Create a rectangular field of view and its observer state.
keteutils.fov.make_cone_fov Create a conical field of view and its observer state.
keteutils.fov.make_omni_fov Create an all-sky field of view and its observer state.
ioutils.headerdb.HeaderDBBase Base class for FITS header databases stored in parquet or CSV.
ioutils.ephemeris.compact_ephem_parq_cols Compacts ephemeris DataFrame columns for efficient parquet storage.
ioutils.ephemeris.parse_compact_ephem Decompress a compacted ephemeris DataFrame.
ioutils.ephemeris.load_compact_parq_ephem Loads a compacted ephemeris parquet file and decompresses it.
ioutils.ephemeris.filter_ephem Filter ephemeris parquet files and optionally save the result.

External queries

Explicit requests to JPL services; review the external-data guide first.

query.fetch_orb Fetch the orbit data from API and save it to a parquet file.
query.query_orb_by_desig Query SBDB for one/few designation strings.
jplsbdb.SBDBQuery Class to handle SBDB queries.
jplhorizons.horizons_quick Quick query for the object ID from JPL Horizons to compare with kete.
jplhorizons.horizons_vector Get the state vector from JPL Horizons (“vector query”).
jplhorizons.download_jpl_de Download JPL development ephemeris file (intended to be used one time).
jplhorizons.HorizonsSPKQuery Class to handle JPL Horizons SPK queries.

Locators and propagation

Workflows that require the optional kete backend and prepared ephemeris inputs.

keteutils.propagate.CachedOrbPropagator Prepare a fixed orbit catalog for repeated n-body propagation.
keteutils.propagate.calc_geometries Calculate phase angle alpha, elongations, distances, and lon/lats.
keteutils.propagate.nongrav_parameters Normalize the non-gravitational parameters used to construct Kete models.
keteutils.propagate.make_nongravs_models Build Kete comet models from normalized orbit-table parameters.
core.locator_twice Find the objects in FOVs in 2 stages, and compute their ephemerides.
core.SSOLocator A class to locate Solar System Objects (SSOs) in a given Field of View (FOV).
core.SpiceLocator A class to locate objects in a given Field of View (FOV) using SPICE.
core.StarLocator A class to locate sidereal objects (fixed RA/Dec) in a given Field of View.
core.calc_ephems Calculate ephemerides for the objects in the FOV.
keteutils.fov.FOVCollection A convenience tool for FOVList

SPICE utilities

spicetools.timeutil.times2et Convert time to ET (seconds past J2000 TDB).
spicetools.kernelutil.make_meta Create a kernel meta file from a list of kernel paths.

Logging

logging.set_log_level Set the logging level for the skyloc package.