sup3r.bias.bias_calc

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

LinearCorrection(base_fps, bias_fps, ...[, ...])

Calculate linear correction *scalar +adder factors to bias correct data

MonthlyLinearCorrection(base_fps, bias_fps, ...)

Calculate linear correction *scalar +adder factors to bias correct data

MonthlyScalarCorrection(base_fps, bias_fps, ...)

Calculate linear correction *scalar factors for each month

ScalarCorrection(base_fps, bias_fps, ...[, ...])

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.

SkillAssessment(base_fps, bias_fps, ...[, ...])

Calculate historical skill of one dataset compared to another.