Closed solvejgdinger closed 6 years ago
Thanks for this hint. This has been resolved in the latest commit.
NOTE This fix will be included in the next upcoming release and is not included in the current release 1.0.1. In case you need this functionality, please clone the current version of the repo.
Cheers
The parameter through_origin does not force the fit through the origin when few data is available. In the below figure I used
DoasCalibData.fit_calib_polynomial
withthrough_origin=True
(blue curve) and a simple least square fit (red curve, code below). The blue curve does not go through zero whereby it is different than the non-forced curve (see below). I suggest that you replace the additional zero-data with a simpler fit model or a different function.With![figure_5_lstsq](https://user-images.githubusercontent.com/23701773/34115231-4e64d0e4-e415-11e7-9779-944207ef27bb.png)
through_origin=True
With![figure_5](https://user-images.githubusercontent.com/23701773/34115387-c670658a-e415-11e7-8cf9-dca5c359bb1c.png)
through_origin=False