Ejemplo n.º 1
0
	def __init__(self, cat):
		anaData.__init__(self)
		self.datafilename = cat.outloc+'OutputData_'+cat.runtime+'.FITS'
		self.massfilename = cat.outloc+'IntegratedFlux_'+cat.runtime+'.csv'
		self.stackrms = None
		self.spec = None
		self.specuncert = 0.
		self.refspec = 0.
		self.spectralaxis = None
		self.nobj = 0
		self.totalmass = 0.
		self.averms1 = 0
		self.averms2 = 0
		self.averagenoise = 0
		self.fitparam = None
		self.massdata = None
		self.specunit = None
		self.stackunit = cat.stackunit
		self.spectralunit = cat.spectralunit.to_string()
		self.fittedfunctions = None
		self.paramtable = None
		self.noiseuncert = None
		self.optnum = cat.optnum
		self.funcnum = cat.funcnum
		self.rbnum = cat.rbnum
		self.mask = cat.mask
		self.maxgalw = cat.maxgalw
		self.mean = cat.mean
		self.avemass = (cat.avemass)
Ejemplo n.º 2
0
 def __init__(self,
              cat,
              other,
              axis=None,
              allrefspec=[],
              allspec=[],
              allnoise=[],
              allrms=[],
              middle=[],
              allintflux=np.array([[], [], [], [], [], [], [], []])):
     anaData.__init__(self)
     self.nobj = other.nobj
     self.averms1 = other.averms1
     self.averms2 = other.averms2
     self.averagenoise = other.averagenoise
     self.stackrms = None
     self.weightsum = other.weightsum
     self.allintflux = allintflux
     self.specuncert = None
     self.intflux = np.zeros((8, 2))
     self.fitrms = np.zeros((8, 2))
     self.fitparam = [None, None, None, None, None, None, None]
     self.fitparamuncert = [None, None, None, None, None, None, None]
     self.paramtable = None
     self.originalspec = None
     self.originalspectralaxis = None
     self.tflux = other.tflux
     self.noiseerrupp = None
     self.noiseerrlow = None
     self.noiseuncert = None
     self.allspec = allspec
     self.allrefspec = allrefspec
     self.allnoise = allnoise
     self.allrms = allrms
     self.otherparamtable = None
     self.middle = middle
     self.maskstart = cat.maskstart
     self.maskend = cat.maskend
     self.originalspec = other.spec
     self.originalspectralaxis = other.spectralaxis
     self.spectralaxis = axis
     self.originalrefspec = other.refspec
     self.count = 0