fjebaker / SpectralFitting.jl

✨🛰 Fast and flexible spectral fitting in Julia.
https://fjebaker.github.io/SpectralFitting.jl
GNU General Public License v3.0
9 stars 5 forks source link

Data binning #139

Open phajy opened 1 week ago

phajy commented 1 week ago

We can add new grouping methods such as minimum signal-to-noise ratio.

Multiple datasets could be grouped in the same way so they can be summed for fitting or plotting purposes. In addition provide a method to copying the binning from a template spectrum.

Some existing relevant functions include the following.

https://github.com/fjebaker/SpectralFitting.jl/blob/8b9bbd19a7320618753a82ac5bb81706767ee693/src/datasets/spectraldata.jl#L273-L305

https://github.com/fjebaker/SpectralFitting.jl/blob/8b9bbd19a7320618753a82ac5bb81706767ee693/src/datasets/spectrum.jl#L86-L109

And the file grouping.jl