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, orDustMapLike) – 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 ifreddeningis a DustMapLike; ignored (and may be omitted) otherwise.
- Returns:
Dimensionless E(B-V), shape matching
reddening(if already a value) orcoord(if queried from a map).- Return type:
- Raises:
TypeError – If
reddeningis a DustMapLike andcoordisn’t given.