Utilities - ephemerista.comms.utils¶
The utils.py module.
This module provides various utilities and physical constants for link budget calculations.
- ephemerista.comms.utils.BOLTZMANN_CONSTANT: float = 1.38064852e-23¶
Average room temperature in K
- ephemerista.comms.utils.ROOM_TEMPERATURE = 290¶
The speed of light in vacuum in m/s
- ephemerista.comms.utils.free_space_path_loss(distance, frequency)¶
Calculate the free-space path loss for a given frequency and distance.
- Parameters:
distance (
float) – Distance in kmfrequency (
float|Frequency) – Frequency in Hz or Frequency object
- Returns:
Free-space path loss in dB
- Return type:
float
- ephemerista.comms.utils.from_db(val)¶
Convert from decibel.
- Overloads:
val (
float) →floatval (
ndarray) →ndarray
- ephemerista.comms.utils.to_db(val)¶
Convert a given value to decibel.
- Overloads:
val (
float) →floatval (
ArrayLike) →ArrayLike
- ephemerista.comms.utils.wavelength(frequency)¶
Return the wavelength of electromagnetic radiation of a given frequency.
- Return type:
float