@jqlin92 has a suggestion for new method for curvature determination that I think is very good
for each column in the image pick the maximum value
retain values within a certain percentile range to reject noise and cosmic rays
than pass the values to
https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.RANSACRegressor.html
which provides a fit that is stable against outliers