thomasorb / orcs

ORCS is an analysis engine for SITELLE spectral cubes.
GNU General Public License v3.0
9 stars 6 forks source link

nans in flux uncertainty measurement with a sincgauss model #20

Closed thomasorb closed 6 years ago

thomasorb commented 6 years ago

When fitting a sincgauss model, if the broadening is not well measured (SNR is too low, initial guess value is too small, ... see #13 and #19) the returned uncertainty is a nan: e.g. [1.54e-17 +/- nan].

First thing to try is to change the initial guess on the broadening (by setting e.g. sigma_cov=20). If it does solve the problem then the SNR is good enough and the broadening is large enough to be measured.

If it does not solve the problem, using a non-broadened model like sinc is a very good alternative. If the broadening cannot be measured (see #13) the sincgauss model is an over-parametrized model and it just shouldn't be used.