Description
Add a keyword argument within XRTDEMIterative or XRTDEMIterative.solve() (being added in #367) to provide an initial guess (starting point) for the DEMs.
Motivation
To test consistency between the IDL and Python implementations of the DEM, it would be helpful to take the best solution from IDL, and put it as an initial guess for Python. If the Python implementation continues to converge to the best solution from IDL, then that would show that there is good consistency between the solutions.
For users, it would be helpful to be able to provide an initial guess if the algorithm is having trouble with the provided initial guess (since minimization algorithms are sometimes sensitive to the initial guess).
Implementation
In #367, I believe this can be done around init_log_dem and XRTDEMIterative._estimate_initial_dem().
Description
Add a keyword argument within
XRTDEMIterativeorXRTDEMIterative.solve()(being added in #367) to provide an initial guess (starting point) for the DEMs.Motivation
To test consistency between the IDL and Python implementations of the DEM, it would be helpful to take the best solution from IDL, and put it as an initial guess for Python. If the Python implementation continues to converge to the best solution from IDL, then that would show that there is good consistency between the solutions.
For users, it would be helpful to be able to provide an initial guess if the algorithm is having trouble with the provided initial guess (since minimization algorithms are sometimes sensitive to the initial guess).
Implementation
In #367, I believe this can be done around
init_log_demandXRTDEMIterative._estimate_initial_dem().