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 km
frequency (Union[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.
- Return type:
ndarray
|float
- ephemerista.comms.utils.to_db(val)¶
Convert a given value to decibel.
- Return type:
Union
[Buffer
,_SupportsArray
[dtype
[Any
]],_NestedSequence
[_SupportsArray
[dtype
[Any
]]],bool
,int
,float
,complex
,str
,bytes
,_NestedSequence
[bool
|int
|float
|complex
|str
|bytes
]]
- ephemerista.comms.utils.wavelength(frequency)¶
Return the wavelength of electromagnetic radiation of a given frequency.
- Return type:
float