DustMap¶
- class rubin_sim.maf.maps.DustMap(interp=False, nside=128, map_path=None)¶
Bases:
BaseMap
Compute the E(B-V) for each point in a given spatial distribution of slicePoints.
Primarily, this calls eb_vhp to read a healpix map of E(B-V) values over the sky, then assigns ebv values to each slice_point. If the slicer is a healpix slicer, this is trivial.
- Parameters:
- interp
bool
, opt Interpolate the dust map at each slice_point (True) or just use the nearest value (False). Default is False.
- nside
int
, opt Default nside value to read the dust map from disk. Primarily useful if the slicer is not a healpix slicer. Default 128.
- map_path
str
, opt Define a path to the directory holding the dust map files. Default None, which uses RUBIN_SIM_DATA_DIR.
- interp
Methods Summary
run
(slice_points)Given slice_points (dict containing metadata about each slice_point, including ra/dec),
Methods Documentation
- run(slice_points)¶
- Given slice_points (dict containing metadata about each slice_point, including ra/dec),
adds additional metadata at each slice_point and returns updated dict.