guaix-ucm / megaradrp

MEGARA (Multi-Espectrógrafo en GTC de Alta Resolución para Astronomía) is a facility instrument designed for the 10.4m GTC telescope in La Palma (Spain).
https://guaix.fis.ucm.es/megara/
GNU General Public License v3.0
12 stars 6 forks source link

Versions of the master_sensitivity #287

Open gildepaz opened 4 years ago

gildepaz commented 4 years ago

In the current version (may 2020) of megaradrp, one obtains two versions of the master sensitivity, the master_sensitivity.fits and sensitivity_raw.fits files. Apparently (by looking for example at the results -smoothed.png file in the work directory- of a LR-B VPH processing), the former is the fit with splines to the master sensitivity after it has been smoothed with a sigma equal to the value specified in the parameters section or to the "best" (when the method is set to "auto"). The latter corresponds to the raw one at the native resolution, without any smoothing. It would be great to have also stored of the sensitivity curve after the smoothing but without the spline interpolation, especially because when the curve goes to 0 the position of the nodes is critical and typically leads to an artificial increase in the flux at the extremes (even outside the "good" spectral region for sensitivity in the header). Thx!

sergiopasra commented 4 years ago

You mean: after broadening the spectrum but before smoothing with the spline. If the problem is the position of the nodes, perhaps is better to refine the position of the nodes. Or allow the user to pass the required position.