diff --git a/schainpy/model/graphics/jroplot_spectra.py b/schainpy/model/graphics/jroplot_spectra.py index 4b3d7d1..29a1270 100644 --- a/schainpy/model/graphics/jroplot_spectra.py +++ b/schainpy/model/graphics/jroplot_spectra.py @@ -734,7 +734,7 @@ class RTIPlot(Plot): ax.plot_noise = self.pf_axes[n].plot(numpy.repeat(data['noise'][n], len(self.y)), self.y, color="k", linestyle="dashed", lw=1)[0] else: - # ax.collections.remove(ax.collections[0]) # error while running + ax.collections.remove(ax.collections[0]) # error while running in 3.12 ax.plt = ax.pcolormesh(x, y, z[n].T, vmin=self.zmin, vmax=self.zmax, diff --git a/schainpy/model/io/jroIO_kamisr.py b/schainpy/model/io/jroIO_kamisr.py index cb9c0d9..951aa11 100644 --- a/schainpy/model/io/jroIO_kamisr.py +++ b/schainpy/model/io/jroIO_kamisr.py @@ -685,7 +685,6 @@ class AMISRReader(ProcessingUnit): #self.__firstFile = False self.dataset,self.timeset = self.readData() - if self.endDate!=None: endDateTime_Reader = datetime.datetime.combine(self.endDate,self.endTime) time_str = self.amisrFilePointer.get('Time/RadacTimeString') @@ -700,6 +699,7 @@ class AMISRReader(ProcessingUnit): if self.flag_ignoreFiles and (startDateTime_File >= self.ignStartDateTime and startDateTime_File <= self.ignEndDateTime): print("Ignoring...") self.flag_standby = True + self.profileIndex = 99999999999999999 return 1 self.flag_standby = False @@ -721,7 +721,6 @@ class AMISRReader(ProcessingUnit): if self.flagNoMoreFiles: self.dataOut.flagNoData = True return 0 - if self.profileIndex >= (self.newProfiles*self.nblocks): # #if self.__hasNotDataInBuffer(): if not (self.readNextFile(self.online)): @@ -763,7 +762,7 @@ class AMISRReader(ProcessingUnit): # print("kamisr: ",self.dataOut.utctime) self.profileIndex += 1 - + return self.dataOut.data #retorno necesario?? diff --git a/schainpy/model/proc/jroproc_spectra.py b/schainpy/model/proc/jroproc_spectra.py index d8240af..c897a75 100644 --- a/schainpy/model/proc/jroproc_spectra.py +++ b/schainpy/model/proc/jroproc_spectra.py @@ -32,6 +32,7 @@ class SpectraProc(ProcessingUnit): self.firstdatatime = None self.profIndex = 0 self.dataOut = Spectra() + self.dataOut.error=False self.id_min = None self.id_max = None self.setupReq = False #Agregar a todas las unidades de proc @@ -135,16 +136,17 @@ class SpectraProc(ProcessingUnit): self.dataOut.flagShiftFFT = False def run(self, nProfiles=None, nFFTPoints=None, pairsList=None, ippFactor=None, shift_fft=False, - zeroPad=False, zeroPoints=0, runNextUnit = 0): - + zeroPad=False, zeroPoints=0, runNextUnit=0): self.dataIn.runNextUnit = runNextUnit try: type = self.dataIn.type.decode("utf-8") self.dataIn.type = type - except: + except Exception as e: + # print("spc -> ",e) pass if self.dataIn.type == "Spectra": + #print("AQUI") try: self.dataOut.copy(self.dataIn) self.dataOut.radarControllerHeaderObj = self.dataIn.radarControllerHeaderObj.copy() @@ -301,7 +303,7 @@ class SpectraProc(ProcessingUnit): else: raise ValueError("The type of input object '%s' is not valid".format( self.dataIn.type)) - + # print("SPC done") def __selectPairs(self, pairsList):