estimateForMissingValues()

Signature:

estimate_missing_values(
    max_missing_count: int,
    accumulation: bool = False,
    estimate_rejected: bool = True,
    set_questioned: bool = True,
    in_place: bool = False
) -> TimeSeries

Detailed Documentation

The hec-python-library equivalent of Jython method estimateForMissingValues():

Unless estimating accumulated precipitation, set the accumulation parameter to False.

If in_place=True, the instance itself is modified. In this case the returned value (which can be ignored in python) is the modified instance, which can be used in chaining methods.

Example:

ts2 = ts1.estimate_missing_values(12)

Signature:

iestimate_missing_values(
    max_missing_count: int,
    accumulation: bool = False,
    estimate_rejected: bool = True,
    set_questioned: bool = True,
) -> TimeSeries

Convenience method for executing estimate_missing_values(...) with in_place=True.

Example:

ts1.estimate_missing_values(12)