The following function assumes luminosity distance in meters, as also expected from the docstring. But the code actually returns Mpc units.
Following the above assumption, the SEDs are wrongly normalised, which will change the flux/mag calculations because here galsim expects fnu units for the resulting SED.
|
sed_array /= (4.0*np.pi*(self.dl(redshift_hubble))**2) |
Is there some mistake in my understanding here?
It seems this routine was written to read from the stored skyCatalog data. Are routines creating the output fluxes also affected?
The following function assumes luminosity distance in meters, as also expected from the docstring. But the code actually returns Mpc units.
skyCatalogs/skycatalogs/utils/sed_tools.py
Line 187 in 240fde4
Following the above assumption, the SEDs are wrongly normalised, which will change the flux/mag calculations because here galsim expects fnu units for the resulting SED.
skyCatalogs/skycatalogs/utils/sed_tools.py
Line 202 in 240fde4
Is there some mistake in my understanding here?
It seems this routine was written to read from the stored skyCatalog data. Are routines creating the output fluxes also affected?