get_extinction#

cogsworth.obs.observables.get_extinction(coords)[source]#

Calculates the visual extinction values for a set of coordinates

Reddening due to dust is calculated using the Bayestar dustmap. Then the conversion from this to a visual extension is done assuming a total-to-selective extinction ratio of 3.3, as is used by Green+2019

Warning

The dustmap used only covers declinations > -30 degrees, any supplied coordinates below this will be reflected around the galactic plane (any of [(-l, b), (l, -b), (-l, -b)]) and the dust at these locations will be used instead

Parameters:
coordsSkyCoord

The coordinates at which you wish to calculate extinction values

Returns:
Avndarray

Visual extinction values for each set of coordinates