def calcLSSTMags(self, spec, fluxnorm, redshift):
   """Calculate the magnitude of the source given a flux normalization in the
   standard LSST bands.  ***This does not take into account host extinction.
   """
   #Get default sed and filter locations
   #setup and redshift the spectrum
   sed = Sed()
   sed.readSED_flambda(os.path.join(self.spath,spec))
   sed.multiplyFluxNorm(fluxnorm)
   sed.redshiftSED(redshift, dimming=True)
   sed.resampleSED(wavelen_match=self.bands[self.indmap['0']].wavelen)
   sed.flambdaTofnu()
   return sed.manyMagCalc(self.phiarr, self.wavelen_step)
 def calcLSSTMags(self, spec, fluxnorm, redshift):
     """Calculate the magnitude of the source given a flux normalization in the
 standard LSST bands.  ***This does not take into account host extinction.
 """
     #Get default sed and filter locations
     #setup and redshift the spectrum
     sed = Sed()
     sed.readSED_flambda(os.path.join(self.spath, spec))
     sed.multiplyFluxNorm(fluxnorm)
     sed.redshiftSED(redshift, dimming=True)
     sed.resampleSED(wavelen_match=self.bands[self.indmap['0']].wavelen)
     sed.flambdaTofnu()
     return sed.manyMagCalc(self.phiarr, self.wavelen_step)