mfouesneau / pyphot

suite to deal with passband photometry
https://mfouesneau.github.io/pyphot/
MIT License
57 stars 18 forks source link

Photometry on a spectra according to the transmission curve of a certain passband #53

Closed markliuchina closed 9 months ago

markliuchina commented 9 months ago

Hello!

I was wondering whether the pyphot could do jobs like this: I finished SED fitting of a galaxy and get the best-fit model spectra. And I want to infer the rest-frame UVJ magnitudes of the galaxy with the spectra I compute. Anyway, before doing it by myself, I want to have a look at whether there is well-developed code for this task.

Could you please give me some tips?

Anything from you will be appreciated! Thanks in advance!

: )

mfouesneau commented 9 months ago

Have a look at the examples and the notebooks. Yes, pyphot is designed to compute photometry from spectra.

You can use any definition of transmission curve through the UnitFilter class which handles wavelength units and energy/count definitions

markliuchina commented 9 months ago

@mfouesneau Thanks for your great help! I have read your documentation again carefully and happy to find the features I need in my project! Sorry for this interruption and thanks again for making such a wonderful code public!

Best.

Mingfeng Liu

mfouesneau commented 9 months ago

Reopen if you need more specific help.