Open gerritholl opened 6 years ago
This happens at least 26 times when processing the full HIRS archive. At present it causes my processing scripts to crash and stop processing, so it may be that it occurs more than 26 times in total, within the same decad.
Happens for the AVHRR as well - impacted 700 orbits for NOAA-11 to MetOp-A (about 0.4%)
I think this happens when there are less than 3 valid input lines in whatever is given to CURUC. For HIRS, I am now not as conservative with the brokenline
input, but this RuntimeError
can still happen.
In some circumstances,
apply_curuc
may cause aRuntimeError
to be raised, whencalc_Δ_x
, which tries to fit a Δ_x to the data, is failing to converge in the fitting, resulting inRuntimeError: Optimal parameters not found: Number of calls to function has reached maxfev = 400.
The full traceback may look something like this:
It's almost certainly triggered by (very) bad input data, but I imagine it may potentially impact @jmittaz using it for AVHRR as well.