ACCarnall / bagpipes

Bagpipes is a state of the art code for generating realistic model galaxy spectra and fitting these to spectroscopic and photometric observations. Users should install with pip, not by cloning the repository.
http://bagpipes.readthedocs.io
GNU General Public License v3.0
71 stars 37 forks source link

L_IR #65

Open mariabile opened 2 months ago

mariabile commented 2 months ago

Hello, Is the integrate infrared luminosity a direct output from BAGPIPES?

ACCarnall commented 2 months ago

No sorry it doesn't do this by default. If you want to calculate it, the spectrum_full array in fit.posterior.samples should let you do this. The corresponding rest-frame wavelengths are stored in fit.posterior.model_galaxy.wavelengths. If these things don't exist you'll need to run fit.posterior.get_advanced_quantities() first to populate those arrays. If you're running a bunch of objects through the fit_catalogue interface you can use the analysis_function keyword argument to automate the process (see https://bagpipes.readthedocs.io/en/latest/fitting_catalogues.html).