You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation at the top of get_models.c, Python can handle any model as long as:
Each model, that is read in contains a list of wavelengths and a flux, that should be proportional to flambda.
However, in estimating weights for photons in continum.c and more specifically in the documentation for emittance_continuum. It is clear it expects flux to be specifically the Eddington flux.
This is a bug.
Note that it is not totally straightforward what to do here, as there are other routines, e.g emittance_bb that also generate the Eddington flux.
The basic alternative is to separately estimate the total luminosity, and then just to assume that the models read in tell you how this is distributed in wavelength space. Which is what seems to be assumed in the statement from models.c. In this case, to get the flux in a particular band, one would (effectively) want to get the fraction of emission in that band and the multiply by the luminosity obtained separately to get the flux in the band.
The text was updated successfully, but these errors were encountered:
I have confirmed this is a problem. I created a fake data directory, and put the kucurcz models in this directory. In this fake directory, I doubled all of the fluxes for the stellar models. I then compared spec_tot from a Python model for a star using the models from the orignal kurucz91 director and using the fluxes in my fake directory. The created spectra differ by a factor of 2:
@jhmatthews what is your opinion here. The simplest thing to do from the point of view of programming would be to require that all models that are input to Python be Eddington fluxes. That is fairly natural for any stellar atmosphere. Can you think of a reason not to do this.
According to the documentation at the top of get_models.c, Python can handle any model as long as:
Each model, that is read in contains a list of wavelengths and a flux, that should be proportional to flambda.
However, in estimating weights for photons in continum.c and more specifically in the documentation for emittance_continuum. It is clear it expects flux to be specifically the Eddington flux.
This is a bug.
Note that it is not totally straightforward what to do here, as there are other routines, e.g emittance_bb that also generate the Eddington flux.
The basic alternative is to separately estimate the total luminosity, and then just to assume that the models read in tell you how this is distributed in wavelength space. Which is what seems to be assumed in the statement from models.c. In this case, to get the flux in a particular band, one would (effectively) want to get the fraction of emission in that band and the multiply by the luminosity obtained separately to get the flux in the band.
The text was updated successfully, but these errors were encountered: