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

store transit parameters in `.metadata` #136

Closed zkbt closed 2 years ago

zkbt commented 2 years ago

The changes include:

zkbt commented 2 years ago

@catrionamurray , this closes #131 . Two things to be warned about:

  1. This will store the rp and u on the original wavelength grid with which they were injected. If you bin a Rainbow after injecting a transit with different depths, the arrays in the metadata will no longer match the actual wavelengths. We could potentially get around this by storing the wavelike quantities in the wavelike dictionary so they'd automatically be binned, but maybe that's too fussy.
  2. This, like the systematics parameters, will be over written if you every inject twice. One we get to modeling double transits, we can revisit this and be more careful ;-)