lime_tbx.application.simulation.moon_data_factory module
Module containing the factory class for MoonData.
- class lime_tbx.application.simulation.moon_data_factory.MoonDataFactory[source]
Bases:
object
Class for creating MoonData objects from points.
- static get_md(point: Point, eocfi_path: EocfiPath, kernels_path: KernelsPath) MoonData | List[MoonData] [source]
Create a MoonData from a generic point, whatever subclass it is.
- Parameters:
point (Point) – Point from which to create the MoonData.
eocfi_path (EocfiPath) – Path to the folder with the needed eocfi data files.
kernels_path (KernelsPath) – Path to the folder with the needed SPICE kernel files.
- Returns:
md – MoonData generated from the given data. If parameter point.dt exists and it is a list, it will be a list. Otherwise not.
- Return type:
- static get_md_and_surfaces_from_satellite(sp: SatellitePoint, eocfi_path: EocfiPath, kernels_path: KernelsPath) Tuple[MoonData, SurfacePoint] | Tuple[List[MoonData], List[SurfacePoint]] [source]
Create a MoonData from a satellite point.
- Parameters:
sp (SatellitePoint) – SatellitePoint from which to create the MoonData.
eocfi_path (EocfiPath) – Path to the folder with the needed eocfi data files.
kernels_path (KernelsPath) – Path to the folder with the needed SPICE kernel files.
- Returns:
md (MoonData | list of MoonData) – MoonData generated from the given data. It will be a list if sp.dt is a list.
srp (SurfacePoint | list of SurfacePoint) – SurfacePoint generated from the position of the SatellitePoint at the given datetimes.
- static get_md_from_custom(cp: CustomPoint) MoonData [source]
Create a MoonData from a custom point.
- Parameters:
cp (CustomPoint) – CustomPoint from which to create the MoonData.
- Returns:
md – MoonData generated from the given data.
- Return type:
- static get_md_from_satellite(sp: SatellitePoint, eocfi_path: EocfiPath, kernels_path: KernelsPath) MoonData | List[MoonData] [source]
Create a MoonData from a satellite point.
- Parameters:
sp (SatellitePoint) – SatellitePoint from which to create the MoonData.
eocfi_path (EocfiPath) – Path to the folder with the needed eocfi data files.
kernels_path (KernelsPath) – Path to the folder with the needed SPICE kernel files.
- Returns:
md – MoonData generated from the given data. It will be a list if sp.dt is a list.
- Return type:
- static get_md_from_surface(sp: SurfacePoint, kernels_path: KernelsPath) MoonData | List[MoonData] [source]
Create a MoonData from a surface point.
- Parameters:
sp (SurfacePoint) – SurfacePoint from which to create the MoonData.
kernels_path (KernelsPath) – Path to the folder with the needed SPICE kernel files.
- Returns:
md – MoonData generated from the given data. If the parameter dt was a list, this will be a list. Otherwise not.
- Return type: