Coverage for python/lsst/sims/maf/maps/dustMap.py : 35%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Compute the E(B-V) for each point in a given spatial distribution of slicePoints. """
""" interp: should the dust map be interpolated (True) or just use the nearest value (False). """ self.keynames = ['ebv'] self.interp = interp self.nside = nside
# If the slicer has nside, it's a healpix slicer so we can read the map directly if 'nside' in slicePoints: if slicePoints['nside'] != self.nside: warnings.warn('Slicer value of nside (%i) different from map value (%i), using slicer value' % (slicePoints['nside'],self.nside )) slicePoints['ebv'] = EBVhp(slicePoints['nside'], pixels=slicePoints['sid']) # Not a healpix slicer, look up values based on RA,dec with possible interpolation else: slicePoints['ebv'] = EBVhp(self.nside, ra=slicePoints['ra'], dec=slicePoints['dec'], interp=self.interp)
return slicePoints
|