lime_tbx.business.eocfi_adapter.eocfi_adapter module

This module contains the abstractions and interfaces that call EO-CFI libraries and perform satellite functions.

It exports the following classes:
  • EOCFIConverter - Class that implements the methods exported by this module.

class lime_tbx.business.eocfi_adapter.eocfi_adapter.EOCFIConverter(eocfi_path: EocfiPath, kernels_path: KernelsPath)[source]

Bases: object

Class that implements the methods of this module.

It exports the following functions:
  • get_sat_names() - Obtain the list of satellite names, that are the keys that can be used in

    get_satellite_position

  • get_sat_list() - Obtain a list of the satellite data objects that are available in LIME TBX.

  • get_satellite_position() - Get the geographic satellite position for a concrete datetime.

add_sat(sat: Satellite)[source]

Add satellite data to the LIME TBX database.

Parameters:

sat (Satellite) – Satellite data to add to LIME’s satellite database.

check_data_file_works(sat: Satellite, dts: List[datetime], orbit_path: str) bool[source]

Check if the file in orbit_path can be used to calculate the satellite position for the datetimes specified in dts.

Parameters:
  • sat (Satellite) – Satellite for which the file is going to be checked

  • dts (List of datetime) – Datetimes for which the position will be calculated

  • orbit_path (str) – Path of the data file used for position calculation

Returns:

works – True if the file works, False if it doesn’t

Return type:

bool

get_default_timefile() str[source]

Get the default time file for TLEs when it’s not known.

Returns:

time_file – Default time_file path value for TLEs

Return type:

str

get_sat_list() List[Satellite][source]

Obtain a list of the satellite data objects that are available in LIME TBX.

Returns:

sat_list – List of Satellites available in LIME TBX.

Return type:

list of Satellite

get_sat_names() List[str][source]

Obtain the list of satellite names, that are the keys that can be used in get_satellite_position

Returns:

sat_names – List of the satellite names

Return type:

list of str

get_satellite_position(sat: str, dts: List[datetime]) List[Tuple[float, float, float]][source]

Get the geographic satellite position for a concrete datetime.

Parameters:
  • sat (str) – Satellite name. Should be present in get_sat_names

  • dts (List of datetime) – Datetimes for which the position will be calculated

Returns:

positions – List of tuples of 3 floats, representing: latitude: float

Geocentric latitude of the satellite

longitude: float

Geocentric longitude of the satellite

height: float

Height of the satellite over sea level in meters.

Return type:

list of tuples of floats

get_satellite_position_rectangular(sat: str, dts: List[datetime]) List[Tuple[float, float, float]][source]

Get the geographic satellite position for a concrete datetime.

Parameters:
  • sat (str) – Satellite name. Should be present in get_sat_names

  • dts (List of datetime) – Datetimes for which the position will be calculated

Returns:

positions – List of tuples of 3 floats, representing xyz in meters, in the ITRF93 frame.

Return type:

list of tuples of floats