Exemple #1
0
    def dopplerTracking(self, maxFrequency, wavReader):
        print("Deze pakt hij")
        freq = []
        for maxfreq in maxFrequency:
            freq.append(maxfreq)    
        time = wavReader.getTimes()
        timefreq = [time,freq]        
        rangerate = rangerateconvert(timefreq, self.carrierfrequency)
        self.timedeltav = [time,rangerate]   


        newcarrier = self.Differential(timefreq[0],timefreq[1])[2]
        print "New Carrier:",newcarrier
        print "Old Carrier:",self.carrierfrequency
        newrangerate = rangerateconvert(timefreq, newcarrier)
        self.newtimedeltav = [time,newrangerate]

        self.trr=tlerangerate()
        self.tletime=range(len(self.trr[0][1]))
        index,mint,miny=self.Differential(self.tletime,self.trr[0][1])
        newIndex=0
        i=0
        while time[i]<=mint:
            newIndex=i
            i=i+1

        newValue = self.interpolation(timefreq[1][newIndex],timefreq[1][newIndex+1],mint,timefreq[0][newIndex],timefreq[0][newIndex+1])

        newrangerate = rangerateconvert(timefreq,newValue)
        self.newtimedeltav2 = [time,newrangerate]
        return timefreq
Exemple #2
0
 def dopplerTracking(self, maxFrequency, wavReader):
        freq = []
        for maxfreq in maxFrequency:
            freq.append(maxfreq)    
        time = wavReader.getTimes()
        print time
        timefreq = [time,freq]        
        rangerate = rangerateconvert(timefreq, self.carrierfrequency)
        self.timedeltav = [time,rangerate]	
        
        
        newcarrier = self.Differential(timefreq[0],timefreq[1])[2]
        newtime = self.Differential(timefreq[0],timefreq[1])[1]
        print "Old Carrier:",self.carrierfrequency
        print "TCA experiment: ",newtime+240.5
        print "New Carrier:",newcarrier
        
        newrangerate = rangerateconvert(timefreq, newcarrier)
        self.newtimedeltav = [time,newrangerate]
        
        self.trr=tlerangerate()
        self.tletime=range(len(self.trr[0][1]))
        index,mint,miny=self.Differential(self.tletime,self.trr[0][1])
        print "TCA TLE: ",mint
         
        newIndex=0
        i=0
        while time[i]>=mint:
            newIndex=i
            i=i+1
                
        print 'Carrier frequency from the tle data :'
        print timefreq[0][newIndex]
        newValue = self.interpolation(timefreq[1][newIndex],timefreq[1][newIndex+1],mint,timefreq[0][newIndex],timefreq[0][newIndex+1])
        
        newrangerate = rangerateconvert(timefreq,newValue)
        self.newtimedeltav2 = [time,newrangerate]
        return timefreq