Skip to content

Rest / obs frame inconsistency in sps library resolution? #357

@wangbingjie

Description

@wangbingjie

I finally have some time to take a look at v2, and I am a bit confused about how the spectral resolution is handled.... Specifically, in sed_model.py L131, we have

self._library_resolution = getattr(sps, "spectral_resolution", 0.0) # restframe

However, it looks like this rest-frame resolution is passed directly into instrumental_smoothing in observations.py, where the function expects it to be in the observed frame, as here we do

Klib = np.interp(self.padded_wavelength, model_wave_obsframe, libres)

Or perhaps I misunderstood something basic...?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions