##// END OF EJS Templates
plot
joabAM -
r1749:e3f1b2c53e4b
parent child
Show More
@@ -734,7 +734,7 class RTIPlot(Plot):
734 734 ax.plot_noise = self.pf_axes[n].plot(numpy.repeat(data['noise'][n], len(self.y)), self.y,
735 735 color="k", linestyle="dashed", lw=1)[0]
736 736 else:
737 # ax.collections.remove(ax.collections[0]) # error while running
737 ax.collections.remove(ax.collections[0]) # error while running in 3.12
738 738 ax.plt = ax.pcolormesh(x, y, z[n].T,
739 739 vmin=self.zmin,
740 740 vmax=self.zmax,
@@ -685,7 +685,6 class AMISRReader(ProcessingUnit):
685 685 #self.__firstFile = False
686 686
687 687 self.dataset,self.timeset = self.readData()
688
689 688 if self.endDate!=None:
690 689 endDateTime_Reader = datetime.datetime.combine(self.endDate,self.endTime)
691 690 time_str = self.amisrFilePointer.get('Time/RadacTimeString')
@@ -700,6 +699,7 class AMISRReader(ProcessingUnit):
700 699 if self.flag_ignoreFiles and (startDateTime_File >= self.ignStartDateTime and startDateTime_File <= self.ignEndDateTime):
701 700 print("Ignoring...")
702 701 self.flag_standby = True
702 self.profileIndex = 99999999999999999
703 703 return 1
704 704 self.flag_standby = False
705 705
@@ -721,7 +721,6 class AMISRReader(ProcessingUnit):
721 721 if self.flagNoMoreFiles:
722 722 self.dataOut.flagNoData = True
723 723 return 0
724
725 724 if self.profileIndex >= (self.newProfiles*self.nblocks): #
726 725 #if self.__hasNotDataInBuffer():
727 726 if not (self.readNextFile(self.online)):
@@ -763,7 +762,7 class AMISRReader(ProcessingUnit):
763 762 # print("kamisr: ",self.dataOut.utctime)
764 763
765 764 self.profileIndex += 1
766
765
767 766 return self.dataOut.data #retorno necesario??
768 767
769 768
@@ -32,6 +32,7 class SpectraProc(ProcessingUnit):
32 32 self.firstdatatime = None
33 33 self.profIndex = 0
34 34 self.dataOut = Spectra()
35 self.dataOut.error=False
35 36 self.id_min = None
36 37 self.id_max = None
37 38 self.setupReq = False #Agregar a todas las unidades de proc
@@ -135,16 +136,17 class SpectraProc(ProcessingUnit):
135 136 self.dataOut.flagShiftFFT = False
136 137
137 138 def run(self, nProfiles=None, nFFTPoints=None, pairsList=None, ippFactor=None, shift_fft=False,
138 zeroPad=False, zeroPoints=0, runNextUnit = 0):
139
139 zeroPad=False, zeroPoints=0, runNextUnit=0):
140 140 self.dataIn.runNextUnit = runNextUnit
141 141 try:
142 142 type = self.dataIn.type.decode("utf-8")
143 143 self.dataIn.type = type
144 except:
144 except Exception as e:
145 # print("spc -> ",e)
145 146 pass
146 147
147 148 if self.dataIn.type == "Spectra":
149 #print("AQUI")
148 150 try:
149 151 self.dataOut.copy(self.dataIn)
150 152 self.dataOut.radarControllerHeaderObj = self.dataIn.radarControllerHeaderObj.copy()
@@ -301,7 +303,7 class SpectraProc(ProcessingUnit):
301 303 else:
302 304 raise ValueError("The type of input object '%s' is not valid".format(
303 305 self.dataIn.type))
304
306 # print("SPC done")
305 307
306 308 def __selectPairs(self, pairsList):
307 309
General Comments 0
You need to be logged in to leave comments. Login now