示例#1
0
	def getLastScanMap(self, current = None):
		mapS = {}
		for node in self.obsMode.nodes:
			if node.startswith('SRT'):
				points = len(self.obsMode.map[node])
				Spoints = []
				for point in range(points):
					_stamp = ARIAPI.stamp(self.obsMode.map[node][point].maspecs.sampleStamp.name,\
					self.obsMode.map[node][point].maspecs.sampleStamp.timdate,\
					self.obsMode.map[node][point].maspecs.sampleStamp.aznow,\
					self.obsMode.map[node][point].maspecs.sampleStamp.elnow,\
					self.obsMode.map[node][point].maspecs.sampleStamp.temperature,\
					self.obsMode.map[node][point].maspecs.sampleStamp.freq0,\
					self.obsMode.map[node][point].maspecs.sampleStamp.av,\
					self.obsMode.map[node][point].maspecs.sampleStamp.avc,\
					self.obsMode.map[node][point].maspecs.sampleStamp.nfreq,\
					self.obsMode.map[node][point].maspecs.sampleStamp.freqsep)
					
					_sp = ARIAPI.specs(_stamp, self.obsMode.map[node][point].maspecs.spec,\
					self.obsMode.map[node][point].maspecs.avspec,\
					self.obsMode.map[node][point].maspecs.avspecc,\
					self.obsMode.map[node][point].maspecs.specd)
					
					_ml = ARIAPI.mapel(self.obsMode.map[node][point].azeloff, _sp)
					Spoints.append(_ml)
				mapS[node] = Spoints
		return mapS
示例#2
0
    def getLastScanMap(self, current=None):
        mapS = {}
        for node in self.obsMode.nodes:
            if node.startswith('SRT'):
                points = len(self.obsMode.map[node])
                Spoints = []
                for point in range(points):
                    _stamp = ARIAPI.stamp(self.obsMode.map[node][point].maspecs.sampleStamp.name,\
                    self.obsMode.map[node][point].maspecs.sampleStamp.timdate,\
                    self.obsMode.map[node][point].maspecs.sampleStamp.aznow,\
                    self.obsMode.map[node][point].maspecs.sampleStamp.elnow,\
                    self.obsMode.map[node][point].maspecs.sampleStamp.temperature,\
                    self.obsMode.map[node][point].maspecs.sampleStamp.freq0,\
                    self.obsMode.map[node][point].maspecs.sampleStamp.av,\
                    self.obsMode.map[node][point].maspecs.sampleStamp.avc,\
                    self.obsMode.map[node][point].maspecs.sampleStamp.nfreq,\
                    self.obsMode.map[node][point].maspecs.sampleStamp.freqsep)

                    _sp = ARIAPI.specs(_stamp, self.obsMode.map[node][point].maspecs.spec,\
                    self.obsMode.map[node][point].maspecs.avspec,\
                    self.obsMode.map[node][point].maspecs.avspecc,\
                    self.obsMode.map[node][point].maspecs.specd)

                    _ml = ARIAPI.mapel(self.obsMode.map[node][point].azeloff,
                                       _sp)
                    Spoints.append(_ml)
                mapS[node] = Spoints
        return mapS
示例#3
0
	def getLastSpectrum(self, current = None):
		lastSpectrum = {}
		for node in self.obsMode.nodes:
			_sp = self.obsMode.spectrum[node]
			print _sp.sampleStamp.name
			_stamp =ARIAPI.stamp(_sp.sampleStamp.name,\
			_sp.sampleStamp.timdate,_sp.sampleStamp.aznow,\
			_sp.sampleStamp.elnow,_sp.sampleStamp.temperature,\
			_sp.sampleStamp.freq0,_sp.sampleStamp.av,_sp.sampleStamp.avc,\
			_sp.sampleStamp.nfreq,_sp.sampleStamp.freqsep)
			_specs = ARIAPI.specs(_stamp,\
			_sp.spec,_sp.avspec,_sp.avspecc,_sp.specd)
			lastSpectrum[_sp.sampleStamp.name.upper()] = _specs
		return lastSpectrum
示例#4
0
 def getLastSpectrum(self, current=None):
     lastSpectrum = {}
     for node in self.obsMode.nodes:
         _sp = self.obsMode.spectrum[node]
         print _sp.sampleStamp.name
         _stamp =ARIAPI.stamp(_sp.sampleStamp.name,\
         _sp.sampleStamp.timdate,_sp.sampleStamp.aznow,\
         _sp.sampleStamp.elnow,_sp.sampleStamp.temperature,\
         _sp.sampleStamp.freq0,_sp.sampleStamp.av,_sp.sampleStamp.avc,\
         _sp.sampleStamp.nfreq,_sp.sampleStamp.freqsep)
         _specs = ARIAPI.specs(_stamp,\
         _sp.spec,_sp.avspec,_sp.avspecc,_sp.specd)
         lastSpectrum[_sp.sampleStamp.name.upper()] = _specs
     return lastSpectrum