synthpop.modules.extinction.maps_from_dustmaps
Extinction maps collected from the dustmap module (Green, 2018)
Extinction form (i.e. reference wavelength / color excess) depends on map used.
Publication DOI: 10.21105/joss.00695
Before using this module you need to fatch the data once. See https://dustmaps.readthedocs.io/en/latest/installation.html
Classes
Extinction maps from dustmaps |
Module Contents
- class synthpop.modules.extinction.maps_from_dustmaps.MapsFromDustmaps(dustmap_name=None, dist_2d=0.0, **kwargs)
Bases:
synthpop.modules.extinction._extinction.ExtinctionMapExtinction maps from dustmaps
Attributes
- dustmap_namestring
name of the map from dustmaps to use. options are “bayestar”, “bh”, “chen2014”, “csfd”, “decaps”, “gaia_tge”, “iphas”, “leike_ensslin_2019”, “leike_2020”, “edenhofer2023”, “lenz2017”, “marshall”, “pg2010”, “planck_gnlc”, “planck”, “sfd”
- dist_2d=0.0float
if a 2-d map is applied, this sets the distance [kpc] where the extinction is applied as a single infinitely thin screen
Methods
- extinction_in_map(l_deg, b_deg, dist):
estimates extinction for a list of star positions
- extinction_map_name = 'dustmaps.None'
- is_3D
- kwargs
- query
- ref_wavelength
- A_or_E_type
- bands = []
- eff_wavelengths
- extinction_in_map(l_deg, b_deg, dist)
Estimates the extinction for a list of star positions.
Parameters
- l_deg: ndarray [degrees]
galactic longitude
- b_deg: ndarray [degrees]
galactic latitude
- dist: ndarray [kpc]
radial distance from the Sun
Returns
- extinction_value: ndarray [mag]
extinction at each star position defined as self.A_or_E_type