nicolasfauchereau / fit_rain_levels

fit a function to some data relating rain to arbitrary levels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

find the best parameters for a logarithmic function fit of the form

f(x) = a * ln( b (x + c) ) + d

For determining rainfall levels for rainfall forecasts display

uses:

  • numpy
  • curve_fit from scipy.optimize

About

fit a function to some data relating rain to arbitrary levels