uvex_transients.dust.resolve_ebv#

uvex_transients.dust.resolve_ebv(reddening: float | Quantity | NDArray[float64] | DustMapLike, coord: SkyCoord | None = None) → NDArray[float64][source]#

Resolve a Reddening value into a plain E(B-V) array.

Parameters:
  • reddening (float, Quantity, numpy.ndarray, or DustMapLike) – Either an explicit \(E(B-V)\) value/array, or an object exposing .query(coord) -> E(B-V) (e.g. dust_map’s return value).

  • coord (SkyCoord, optional) – Sky position(s) to query, any shape – required if reddening is a DustMapLike; ignored (and may be omitted) otherwise.

Returns:

Dimensionless E(B-V), shape matching reddening (if already a value) or coord (if queried from a map).

Return type:

numpy.ndarray

Raises:

TypeError – If reddening is a DustMapLike and coord isn’t given.