sup3r.bias.bias_calc#
Utilities to calculate the bias correction factors for biased data that is going to be fed into the sup3r downscaling models. This is typically used to bias correct GCM data vs. some historical record like the WTK or NSRDB.
TODO: Generalize the with ProcessPoolExecutor() as exe: ...
so we don’t
need to duplicate this wherever we kickoff a process or thread pool
Classes
|
Calculate linear correction *scalar +adder factors to bias correct data |
|
Calculate linear correction *scalar +adder factors to bias correct data |
|
Calculate linear correction *scalar factors for each month |
|
Calculate annual linear correction *scalar factors to bias correct data. This typically used when base data is just monthly or annual means and standard deviations cannot be computed. This is case for vortex data, for example. Thus, just scalar factors are computed as mean(base_data) / mean(bias_data). Adder factors are still written but are exactly zero. |
|
Calculate historical skill of one dataset compared to another. |