Open jdtsmith opened 2 years ago
You can just update the scipack min/max values. A bit tedious for sure. But it is possible and would avoid having to hard-code this.
Definitely a better fit with the tighter constraints.
This should all be replaced soon by a proper scipack + instpack generator (which Thomas and I just discussed in depth).
Fully agree. Just thinking if you are looking for a "quick fix", you could just update the scipack file.
It's even quicker; see #177 :).
In the nominal science pack, the lines have an incredibly wide 2x (below, above) latitude in FWHM. This is far much, and does not match the IDL PAHFIT, where a 10% range was allowed. This leads to absurdly narrow lines which the fitter "prefers" (since it goes perfectly "through" a couple points). Example (notice ArII, H2 S(1), SiII):
2x FWHM constraints:
10% FWHM constraints straints:
FWHM for unresolved lines should be the purview of the instrument pack, not the sci-pack. We could add a "sigma_v" dispersion term that is allowed to be convolved with the Gaussian LSF specified in the sci-pack. But that's for another day. Right now I have re-hard-coded 10% constraints in the model reader, which works. But a better fix will involve the sci/inst-pack separation. Will submit workaround PR unless there are objections.