radar.utils.calculate.convert
Module Contents
Functions
Polars expression equivalent of your from_db function. |
|
Polars expression equivalent of your to_db function. |
|
Data
API
- radar.utils.calculate.convert.__all__ = ['from_db', 'to_db', 'cf_to_min_dist']
- radar.utils.calculate.convert.from_db(col_name: str) polars.Expr[source]
Polars expression equivalent of your from_db function.
- radar.utils.calculate.convert.to_db(col_expr: polars.Expr) polars.Expr[source]
Polars expression equivalent of your to_db function.
Uses pl.when().then().otherwise() to mimic np.maximum(arr, 1e-10) without breaking the Polars execution graph.
- radar.utils.calculate.convert.cf_to_min_dist(frequency: radar.utils.typing.units.Frequency) radar.utils.typing.units.Distance[source]