...
 
Commits (3)
......@@ -6,7 +6,7 @@
3.4 (17/01/2020)
----------------
- Update fsf (combine_fsf, documentation)
- Update fsf (combine_fsf, fwhm_moffat2gauss, documentation)
- Mask NaN in muselet
......
......@@ -696,6 +696,15 @@ class MoffatModel2(FSFModel):
return fsf
def fwhm_moffat2gauss(fwhm, beta):
"""
translate a MOFFAT fwhm,beta in GAUSS equivalent fwhm
"""
pol = np.array([-1.89848758e-03, 3.37400959e-02, -2.38556527e-01, 8.50778040e-01,
-1.58670491e+00, 2.39768917e+00])
gfwhm = fwhm * np.polyval(pol, beta)
return gfwhm
def combine_fsf(fsflist, nlbda=20, size=21):
"""
Combine a list of FSF
......
......@@ -49,8 +49,8 @@ __all__ = ['get_emlines', 'z_from_linepos']
# vdisp (0/1) (v), display name (n)
emlines = np.array([
('LYALPHA', 1215.67, 'em', 1, 0, 3, 0, "Lyα"),
('NeV1238', 1238.82, 'em', 0, 1240.8, 2, 0, None), # NeV
('NeV1243', 1242.80, 'em', 0, 1240.8, 2, 0, "Nev"),
('NV1238', 1238.82, 'em', 0, 1240.8, 2, 0, None), # NV
('NV1243', 1242.80, 'em', 0, 1240.8, 2, 0, "NV"),
('SiII1260', 1260.42, 'is', 0, 0, 0, 0, "Siɪɪ"),
('OI1302', 1302.17, 'is', 0, 0, 0, 0, "Oɪ"),
('SIII1304', 1304.37, 'is', 0, 0, 0, 0, "Siɪɪ"),
......