Skip to content

Unphysical behavior in the altitude correction for precipitation in the aws2cosipy module #97

@simsegoet

Description

@simsegoet

Hi,

I have encountered an issue in the aws2cosipy module on how precipitaion (both liquid and solid) is corrected for different elevations.

Currently, the correction is done in the set_bias function (aws2cosipy line 174) using the folowing formula:

biased_data = data + altitude * _cfg.lapse[lapse_type]

with _cfg.lapse[lapse_type] being a lapse rate.

At locations above the input AWS this leads to an behavior that feels a bit unphysical since it just adds a value to every single timestep resulting in precipitation events at every single timestep, you can see the results in the plot below where the orange line is the data from an aws and the blue line is calculated using aws2cosipy at a location above the aws.

Image

Maybe switching to a multiplicative scheme for precipitation would be a good idea, for example:

biased_data = data + data * altitude * _cfg.lapse[lapse_type]

or something more elaborate.

Thank you!

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