zkbt / chromatic

Tools for visualizing spectrosopic light curves, with flux as a function of wavelength and time.
MIT License
14 stars 4 forks source link

For binning heteroscedastic data, add "effective wavelength" for better comparing to later models. #245

Closed zkbt closed 2 months ago

zkbt commented 2 months ago

If a dataset has uncertainties that vary dramatically with wavelength (for example due to falling stellar photon flux across the bandpass), when binning in wavelength it may be helpful to have a better estimate of the effective wavelength center of a bin. Since we apply inverse variance weighting when binning datapoints together, it would be good to have a point estimate for each bin of what's the most representative wavelength that should be used for comparing to models. If a bin spans 5-10 microns, the center of the bin is 7.5 microns but if it is heavily weighted by the inverse variances to shorter wavelengths, then an effective wavelength should be biased away from the exact midpoint.