Coverage for python/lsst/sims/maf/metrics/starDensity.py : 50%

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
"""Interpolate the stellar luminosity function to return the number of stars per square arcsecond brighter than the rmagLimit. Note that the map is built from CatSim stars in the range 20 < r < 28."""
maps=['StellarDensityMap'], **kwargs):
super(StarDensityMetric, self).__init__(col=[], maps=maps, units=units, **kwargs) self.rmagLimit = rmagLimit self.filtername = filtername
# Interpolate the data to the requested mag interp = interp1d(slicePoint['starMapBins_%s' % self.filtername][1:], slicePoint['starLumFunc_%s' % self.filtername]) # convert from stars/sq degree to stars/sq arcsec result = interp(self.rmagLimit)/(3600.**2) return result |