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 (float) – Frequency in Hz
- Returns:
Free-space path loss in dB
- Return type:
float
- ephemerista.comms.utils.frequency_band(freq)¶
Return the corresponding frequency band for a given frequency.
- Return type:
Optional
[Literal
['HF'
,'VHF'
,'UHF'
,'L'
,'S'
,'C'
,'X'
,'Ku'
,'K'
,'Ka'
,'V'
,'W'
]]
- 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
[Union
[bool
,int
,float
,complex
,str
,bytes
]]]
- ephemerista.comms.utils.wavelength(frequency)¶
Return the wavelength of electromagnetic radiation of a given frequency.
- Return type:
float