View Source SpaceDust.Data.EOPCache (Space Dust v0.3.0)

ETS-based cache for Earth Orientation Parameters (EOP) data.

This cache loads and parses EOP data once, then provides fast lookups with interpolation for any requested MJD (Modified Julian Date).

The cache uses binary search for O(log n) lookups instead of linear search, and keeps the parsed data in ETS to avoid repeated file I/O and parsing.

The cache initializes lazily on first access - no supervisor required.

Summary

Functions

Get EOP data at a given MJD with interpolation. Uses cached data for fast lookups. Initializes cache on first call.

Check if the cache is initialized.

Force reload of EOP data from source.

Get cache statistics.

Functions

get(mjd)

@spec get(float()) ::
  {:ok, SpaceDust.Data.EarthOrientationParameters.t()} | {:error, term()}

Get EOP data at a given MJD with interpolation. Uses cached data for fast lookups. Initializes cache on first call.

initialized?()

Check if the cache is initialized.

reload()

Force reload of EOP data from source.

stats()

Get cache statistics.