rileyhales / saber-hbc

The python implementation of the SABER bias correction method for hydrologic models
BSD 3-Clause Clear License
3 stars 3 forks source link

Regional calibration function enhancements #15

Open rileyhales opened 2 years ago

rileyhales commented 2 years ago

Make the calibrate streams function work w/ or w/o having a second station provided.

This should have the effect of replicating the original bias correction function from jorge when there is not a second station provided and applying regional bias correction options when there is. That should make this package supersede the geoglows functions.

rileyhales commented 2 years ago

save to parquet instead of netcdf calculate the flow duration curves as tables with multi-index for month indicator and flow duration curve indicators

rileyhales commented 2 years ago

Rename the function

rileyhales commented 2 years ago

Compartmentalize the bias correction function even more so that it can be adapted to use precomputed sfdc curves.

Probably need 4 functions.

  1. accept Qsim df, Qobs df -> for direct mapping
  2. accept Qsim, FDC_obs df -> for direct mapping
  3. accept Qsim_a, and both Qsim_b and Qobs_b df's -> for SFDC mapping
  4. accept Qsim_a, and SFDC_b -> for SFDC Mapping

We have 3 written, 1 can be copied from the original implementation in the geoglows package. Need 2 and 4.

rileyhales commented 2 years ago

Enhance the functions which calculate SFDC and FDC to calculate the the total, monthly, and quarterly FDC.

rileyhales commented 2 years ago

write results and fdcs to zarr

rileyhales commented 1 year ago

calculate the sfdc/fdc in advance and write to zarr