Skip to content

swi_calc_cy_noise doesn't handle nans #2

@Adeaem

Description

@Adeaem

calc_swi_ts() takes a nan parameter and passes it to the underlying swi_calc_cy() function
https://github.com/TUW-GEO/pyswi/blob/independent_swi_calc/src/pyswi/swi_ts/swi_ts.py#L212

but in presence of 'sm_noise' field, the nan is not passed to swi_calc_cy_noise() and just treats the nan value as soil moisture
https://github.com/TUW-GEO/pyswi/blob/independent_swi_calc/src/pyswi/swi_ts/swi_ts.py#L206

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions