Ejemplo n.º 1
0
 def to_scaled_spectrum(self, fov, focal_length=None):
     from soxs.instrument import FlatResponse
     fov = parse_value(fov, "arcmin")
     if focal_length is None:
         focal_length = self.default_focal_length
     else:
         focal_length = parse_value(focal_length, "m")
     flux = self.flux.value * fov * fov
     flux *= (focal_length / self.default_focal_length)**2
     arf = FlatResponse(self.ebins.value[0], self.ebins.value[-1], 1.0,
                        self.ebins.size - 1)
     return ConvolvedSpectrum(Spectrum(self.ebins.value, flux), arf)
Ejemplo n.º 2
0
 def to_spectrum(self, fov):
     fov = parse_value(fov, "arcmin")
     flux = self.flux.value*fov*fov
     return Spectrum(self.ebins.value, flux)