load_mojito_orbits§
- typed_lisa_toolkit.load_mojito_orbits(file_path, time_interval=(None, None)) InterpolatedOrbits[source]§
Load the orbits from the Mojito data.
The downloading and cache management of Mojito is handled by mojito. Especially, we recommend using mojito API to feed the file path to this loader. If requested data is missing on the machine, mojito will automatically download it from the server and cache it locally. See this page for more details.
- Parameters:
file_path (
str | pathlib.Path | Sequence[str | pathlib.Path]) – The file path(s) to the Mojito data file(s). If a sequence of file paths is provided, they are combined in a meaningful way (see this section for more details).time_interval (
tuple[float|None,float|None], optional) –A tuple specifying the start and end time (relative to the start of the data, in seconds) of the data segment to load.
If the start time is
None, it defaults to the start of the data. If the end time isNone, it defaults to the end of the data. If both areNone, or if time_interval is not provided, the entire data will be loaded.We recommend using
year2second(),month2second(), etc. to convert time units to seconds.
Example
>>> import mojito.download >>> import typed_lisa_tools as tlt >>> >>> orbits = tlt.load_mojito_orbits(mojito.download.download-brick("combined"))