Closed zkbt closed 2 months ago
@Pat-Wachiraphan , sorry, I realized it was slightly more complicated to put this upstream in bintogrid
because it needed to have access to the wavelength-integrated uncertainty, so I just put it in rainbow.bin_to_wavelength
. If we need it there (which I don't think we need for binning the stellar spectrum, it's really just to figure out how to put the depths at the right wavelength), please open another Issue and we'll work on it there!
@Pat-Wachiraphan , I merged this into develop!
To address #245 , this calculates an inverse-variance weighted average wavelength value for each wavelength bin, whenever binning a
Rainbow
in wavelength. It can be retrieved either through thewavelike
dictionary or as an attribute, like this:This effective wavelength is a better represented average to use when plotting comparisons to models in wavelength space, as shown in the text example below.