Skip to content

Confusion about ExtremeValues adjustment #177

@bweeding

Description

@bweeding

Hi xclim team, I have gotten myself quite confused about the ExtremeValues function and I'm hoping for some clarity and help.

Here is an example workflow, where I'm bias adjusting daily rainfall from a CORDEX CMIP5 model over South East Asia using ERA5-LAND as the reference data. In the example I've selected a single location to make things quick and easy to plot. I've bias adjusted the daily rainfall already (monthly grouping, multiplicative quantile delta mapping, 100 quantiles) and now want to adjust the extremes.

ex_ad = xsdba.adjustment.ExtremeValues.train(ref=era5_data,hist=hist_adj_data,q_thresh=0.95,cluster_thresh='1 mm/day')

pr_hist_adj_ex = ex_ad.adjust(sim=hist_data,scen=hist_adj_data).compute()

"hist_data" is the raw model data, "hist_adj_data" has undergone bias correction.

However, when I sort each of the datasets and plot them against the ERA5 data, extreme adjust has made things worse... What am I doing wrong? Should both sim and scen in ex_ad.adjust be hist_adj_data?

Image

Cheers
Ben

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