Skip to content

Turc for negative Tmean close to 15 gives strange PET value #80

@raoulcollenteur

Description

@raoulcollenteur

Describe the bug
I encountered an issue when using Turc to compute the PET for the following values:

idx = pd.to_datetime(["2000"])
rs = pd.Series(5.0976, index=idx)
rh = pd.Series(76.9, index=idx)
tmean = pd.Series(-15.1, index=idx)

pyet.turc(rs=rs, rh=rh, tmean=tmean)

> 337.10734054400115

To Reproduce

Run example above.

Expected behavior

I guess PET should simply be zero? Cut of for when tmean < 0, which I think is recommended for Turc.

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