suarezgenaro / seda

Spectral Energy Distribution Analyzer (SEDA)
MIT License
1 stars 0 forks source link

Abs flux #15

Closed tombickleastro closed 2 days ago

tombickleastro commented 5 days ago

It would be great to have an option to convert a spectrum to absolute flux based on a distance input, and have the converted file as an output.

kelle commented 5 days ago

Could you say more about what is motivating this feature request? Do you want this feature for the observed spectra or for the model spectra?

tombickleastro commented 4 days ago

Observed preferably. I know sedkit is supposed to be able to do it, but for some reason its always given me issues w/ healpy when attempting to download it.

kelle commented 4 days ago

Please open an issue in sedkit about your installation problem

suarezgenaro commented 2 days ago

I added the function seda.app_to_abs_flux (in utils.py) to convert apparent fluxes into absolute ones and propagate flux and distance uncertainties, if provided. See more details at: https://seda.readthedocs.io/en/latest/api.html#seda.utils.app_to_abs_flux