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

issue with adding a JWST/MIRI photometric band when generating a model galaxy spectrum? #26

Closed Vladan1986 closed 1 year ago

Vladan1986 commented 1 year ago

Hello,

I have an issue when I want to generate a model galaxy spectrum with predictions for photometric fluxes for an example galaxy with HST and JWST filters.

When I add all the available filters for this galaxy, including the MIRI F770W filter (in the attachment) I obtain 1 data point that seems to be <1 in the x axis log space, so lambda seems to be negative (Fig. 2). If I remove the F770W filter, I obtain Fig. 1.

I tried removing the 0 and < 10^{-11} flux values from the F770W throughput values, but that didn't solve the issue. Any suggestion or help is welcome.

Cheers, F770W.csv fig-1 fig-2

ACCarnall commented 1 year ago

Hi Vladan,

The wavelengths in that file seem to be in microns, you'll need to convert them to angstroms. Also, I don't know if the code will cope with a csv file, probably safest to replace the commas with spaces.

Cheers, Adam

Vladan1986 commented 1 year ago

Hi Adam,

Thank you very much for your help!

Cheers, Vladan