uvex_transients.missions.downsample_mission#

uvex_transients.missions.downsample_mission(mission: Mission, *, name: str | None = None, **kwargs) → Mission[source]#

Copy a mission with every detector bandpass downsampled.

The original mission is not modified. Everything other than the bandpasses (field of view, background, noise terms, scheduling model) is shared with mission.

Parameters:
  • mission (Mission) – The mission to copy.

  • name (str, optional) – Name of the copy. Defaults to f"{mission.name}_fast".

  • **kwargs – Passed to downsample_bandpass() (t_min, t_max, n_spec, tol_mag, rescale).

Returns:

The downsampled copy.

Return type:

Mission

Raises:

TypeError – If a detector bandpass is not a ~synphot.SpectralElement.