Spectrophotometric Calibration#

vampires_dpp.specphot.specphot.color_correction(model, filt1, filt2)#

Return the magnitude of the color correction from the first filter to the second filter.

delta = m1 - m2 m2 = m1 - delta

Return type:

float

Parameters:
  • model (SourceSpectrum)

  • filt1 (SpectralElement)

  • filt2 (SpectralElement)

vampires_dpp.specphot.specphot.read_prior_specphot_factors(hdul)#

Return per-field conv_factor from a previous specphot run, or None.

Return type:

ndarray | None

Parameters:

hdul (HDUList)

vampires_dpp.specphot.specphot.shape_factor_for_data(conv_factor, data)#

Reshape conv_factor for clean broadcasting against the data cube.

Internal specphot factors are returned as (1, nfields, 1, 1) (for the time-series cubes seen at stage 5). When re-running on coadded data (nfields, ny, nx) we need (nfields, 1, 1) instead. Scalars are kept as-is.