Skip to content

Commit bac47e8

Browse files
committed
col density improved, resolution corrected
1 parent dfe2d1a commit bac47e8

11 files changed

Lines changed: 1753 additions & 538 deletions

File tree

‎data/desi/desi_constants.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# ==============================
1818

1919
search_parameters = {
20-
'ker_width_pixels':[3, 4, 5, 6, 7, 8], # Gaussian kernel widths (in pixels) for convolution
20+
'ker_fwhm_pixels':[3, 4, 5, 6, 7, 8], # Gaussian FWHM kernel (in pixels) for convolution
2121
'pm_pixel': 100, # Window size around feature for threshold calculation for convolved array
2222
'coeff_sigma': 2, # for convolution the SNR cut
2323
'mult_resi': 1, # Multiplication factor for residual spectrum (to shift the normalization up or down)

‎data/sdss/sdss_constants.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# ==============================
1818

1919
search_parameters = {
20-
'ker_width_pixels':[3, 4, 5, 6, 7, 8], # Gaussian kernel widths (in pixels) for convolution
20+
'ker_fwhm_pixels':[3, 4, 5, 6, 7, 8], # Gaussian FWHM kernel (in pixels) for convolution
2121
'pm_pixel': 100, # Window size around feature for threshold calculation for convolved array
2222
'coeff_sigma': 2, # for convolution the SNR cut
2323
'mult_resi': 1, # Multiplication factor for residual spectrum (to shift the normalization up or down)

‎docs/fileformat.rst‎

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ absorber was detected. Columns:
5050
- ``INDEX_SPEC``: (*int*), Spectrum index in the input file.
5151
- ``Z_QSO``: (*float*), QSO redshift from the input metadata.
5252
- ``IS_QSO_AVAILABLE``: (*bool*), ``True`` if the search could be attempted (doublet wavelengths fall inside the spectrum's wavelength coverage and enough pixels were available); ``False`` when the spectrum was unsearchable.
53+
- ``SNR_QSO``: (*float*), Signal-to-noise ratio of the QSO spectrum in the absorber search window (using statistics passed by user, mean, median or weighted, HDU0 will have the information.).
5354

5455
**5) COLUMN_DENSITY** HDU is optional:
5556

@@ -58,7 +59,53 @@ following `Savage & Sembach (1991) <https://ui.adsabs.harvard.edu/abs/1991ApJ...
5859

5960
This optional HDU will contain:
6061

61-
- ``LOG10N``: (*float*), log of **total column density** (in cm\ :sup:`-2`), calculated from apparent optical depth method.
62-
- ``SIG_LOG10N``: (*float*), uncertainty on log of **total column density** (in cm\ :sup:`-2`), calculated from apparent optical depth method.
63-
- ``SATURATION``: (*int*), saturation flag, 1: saturated, 0: unsaturated
64-
- ``fN``: (*int*), Column density measurement method, 1: WEIGHTED MEAN, 2: FIRST, 3: SECOND, 4: Corrected weak line (partial saturation), 5: Lower limit from weak line (strong saturation), 6: Lower limit from strong (strong saturation and weak is not available) -1: FAIL.
62+
- ``LOG10N``: (*float*), logarithm of the total column density,
63+
:math:`\log_{10}[N/(\mathrm{cm}^{-2})]`, measured using the apparent optical
64+
depth method.
65+
66+
- ``SIG_LOG10N``: (*float*), 1-\ :math:`\sigma` uncertainty on ``LOG10N``,
67+
in dex.
68+
69+
- ``SATURATION``: (*int*), saturation-status flag:
70+
71+
- ``0``: no significant evidence for unresolved saturation.
72+
- ``1``: unresolved saturation detected; Savage & Sembach (1991)
73+
correction applied.
74+
- ``2``: strong/floor saturation, or saturation outside the calibrated
75+
correction range; reported column density is a lower limit.
76+
- ``3``: saturation cannot be determined because only one transition has
77+
a usable column-density measurement.
78+
- ``-2``: inconsistent doublet, where the weaker transition gives a
79+
significantly smaller apparent column density than the stronger
80+
transition.
81+
- ``-1``: column-density measurement failed.
82+
83+
- ``fN``: (*int*), column-density measurement method:
84+
85+
- ``1``: inverse-variance weighted mean of both transitions.
86+
- ``2``: first transition only.
87+
- ``3``: second transition only.
88+
- ``4``: weaker transition corrected for unresolved saturation using
89+
Savage & Sembach (1991).
90+
- ``5``: lower limit from the weaker transition.
91+
- ``6``: lower limit from the stronger transition when the weaker
92+
transition is unavailable.
93+
- ``7``: inconsistent doublet.
94+
- ``-1``: column-density measurement failed.
95+
96+
- ``LOWER_LIMIT``: (*int*), lower-limit flag. ``1`` indicates that the
97+
reported column density is a lower limit, while ``0`` indicates a finite
98+
column-density measurement.
99+
100+
- ``DELTA_LOGN``: (*float*), difference between the apparent column
101+
densities measured from the weaker and stronger transitions,
102+
:math:`\log_{10}N_{\mathrm{weak}}-\log_{10}N_{\mathrm{strong}}`, in dex.
103+
104+
- ``SIG_DELTA_LOGN``: (*float*), statistical 1-\ :math:`\sigma` uncertainty
105+
on ``DELTA_LOGN``, in dex.
106+
107+
- ``NPIX_SAT_STRONG``: (*int*), number of pixels in the stronger transition
108+
whose normalized flux reaches or falls below the adopted AODM flux floor.
109+
110+
- ``NPIX_SAT_WEAK``: (*int*), number of pixels in the weaker transition
111+
whose normalized flux reaches or falls below the adopted AODM flux floor.

‎docs/paramfile.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ A minimal example for the ``constants.py``
3232
# ==============================
3333
3434
search_parameters = {
35-
'ker_width_pixels':[3, 4, 5, 6, 7, 8], # Gaussian kernel widths (in pixels) for convolution
35+
'ker_fwhm_pixels':[3, 4, 5, 6, 7, 8], # Gaussian kernel FWHM (in pixels) for convolution
3636
'pm_pixel': 200, # Window size around feature for threshold calculation for convolved array
3737
'coeff_sigma': 2, # for convolution the SNR cut
3838
'mult_resi': 1, # Multiplication factor for residual spectrum (to shift the normalization up or down)

0 commit comments

Comments
 (0)