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

Make it easier to stitch together two `Rainbow` objects of different times and/or wavelengths. #224

Open zkbt opened 1 year ago

zkbt commented 1 year ago

@Pat-Wachiraphan needed this for trying to bin together multiple visits that were separated far apart in time. Jessica Libby-Roberts needed this as a kludge to stitch together two back-to-back exposures (where the read_rainbow failed to handle the integration counters accurately).

229 starts to solve this for the easiest cases. It still needs work for the flexible case of arbitrary wavelengths and times (particularly how to create new giant arrays and sparsely populate them).

zkbt commented 1 year ago

229 solves the easy probably for side-by-side cases where either the times or wavelengths match. The non-uniform grid case isn't done yet; check out the notes in #229 for where I left off.