models.snow¶
Snow model registry.
This module provides access to snow models implemented in the holmes_rs Rust extension.
get_model ¶
get_model(
model: SnowModel,
) -> Callable[
[
NDArray[float64],
NDArray[float64],
NDArray[float64],
NDArray[uintp],
NDArray[float64],
float,
],
NDArray[float64],
]
Get a wrapped snow model simulation function.
The returned function wraps the underlying Rust implementation with error handling and logging.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
SnowModel
|
Model name (see SnowModel for valid options) |
required |
Returns:
| Type | Description |
|---|---|
Callable
|
Simulation function that takes precipitation, temperature, params, day_of_year, altitude_layers, and median_altitude, and returns adjusted precipitation |