mwvgroup / csp-cmfgen

A comparison spectral SNe models against CSP data
https://mwvgroup.github.io/nir-comparison/
0 stars 0 forks source link

Add outline code for spectra chi-square #19

Closed djperrefort closed 5 years ago

djperrefort commented 5 years ago

This pull request adds the spectra_chisq module to the analysis pipeline. The module is functional and provides an outline on how to calculate chi-squares for the modeled spectra, but is incomplete for the following reasons:

  1. Error-values are not available for the DR1 spectra. For now, I'm using a tenth of the flux values just to have numerical values that can be used to ensure the code runs.
  2. No color warping is applied to the spectra, but there is a placeholder function

Relevent issue: #10