Skip to content

Potential bug in SED unit normalization #157

@0Navin0

Description

@0Navin0

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions