ana5Utils.DFAPathGeneration.getParabolicFit

getParabolicFit(cfg, avaProfile, dem)[source]

fit a parabola on a set of (s, z) points

first and last point match. Last constraint is given by fitOption (see below)

Parameters
  • cfg (configParser) – configuration object with: fitOption: int how to optimize the fit 0 minimize distance between points 1 match the end slope

  • avaProfile (dict) – profile to be extended

  • dem (dict) – dem dict

Returns

parabolicFit – a, b, c coefficients of the parabolic fit (y = a*a*x + b*x + c)

Return type

dict