radar.utils.calculate.convert

Module Contents

Functions

from_db

Polars expression equivalent of your from_db function.

to_db

Polars expression equivalent of your to_db function.

cf_to_min_dist

Data

__all__

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]