In this method the cumulative integral ("flux") is computed from a central point and the two are then added to compute the total integral. This central is automatically determines, but can be pre-set using the xc= keyword.
A novel way is using to determine the error in the integral, by using the RMS in the portion of the X-axis where there is no signal. See eq.(5) in Yu2020.
See also tabint(1NEMO) for a more traditional approach.
Here we create a gaussian signal, and first integrate the numerically correct integral when no noise is added, after which some
noise is added and the CoG method is used to analyze the signal and compute
the flux and error in the flux
nemoinp 1000:2000:5 |\ tabmath - - ’exp(-(%1-1500)**2/(2*50**2))’
| tabint -
125.331
nemoinp 1000:2000:5 |\ tabmath - - ’exp(-(%1-1500)**2/(2*50**2))+rang(0,0.01)’
seed=123 |\
tabcog -
flux = 125.607 flux_std = 0.493996 vel = 1495.92 vel_std = 12.8628
A_F = 1.24842 A_C = 1.42753 C_V = 5.8 rms = 0.0107146 bchan
= 60 echan = 138 width[0.25] = 25 +/- 5.00625 width[0.65] = 85 +/- 10.0361
width[0.75] = 115 +/- 5.13055 width[0.85] = 145 +/- 10.1046 width[0.95] = 195
+/- 5.3668
The flux should be ’sqrt(2*pi)*50’ = 125.331
https://ui.adsabs.harvard.edu/abs/2020ApJ...898..102Y/abstract
2020ApJ...898..102Y
19-may-2026 V0.1 Cloned off tabint, aided by Claude PJT