@@ -25,6 +25,7 from schainpy.model.data.jroheaderIO import RadarControllerHeader, SystemHeader | |||
|
25 | 25 | from schainpy.model.data.jrodata import Voltage |
|
26 | 26 | from schainpy.model.proc.jroproc_base import ProcessingUnit, Operation, MPDecorator |
|
27 | 27 | from numpy import imag |
|
28 | from schainpy.utils import log | |
|
28 | 29 | |
|
29 | 30 | |
|
30 | 31 | class AMISRReader(ProcessingUnit): |
@@ -281,9 +282,12 class AMISRReader(ProcessingUnit): | |||
|
281 | 282 | print('........................................') |
|
282 | 283 | filter_filenameList = [] |
|
283 | 284 | self.filenameList.sort() |
|
285 | total_files = len(self.filenameList) | |
|
284 | 286 | #for i in range(len(self.filenameList)-1): |
|
285 |
for i in range( |
|
|
287 | for i in range(total_files): | |
|
286 | 288 | filename = self.filenameList[i] |
|
289 | #print("file-> ",filename) | |
|
290 | try: | |
|
287 | 291 | fp = h5py.File(filename,'r') |
|
288 | 292 | time_str = fp.get('Time/RadacTimeString') |
|
289 | 293 | |
@@ -308,7 +312,8 class AMISRReader(ProcessingUnit): | |||
|
308 | 312 | |
|
309 | 313 | if (startDateTime_File>endDateTime_Reader): |
|
310 | 314 | break |
|
311 | ||
|
315 | except Exception as e: | |
|
316 | log.warning("Error opening file {} -> {}".format(os.path.split(filename)[1],e)) | |
|
312 | 317 | |
|
313 | 318 | filter_filenameList.sort() |
|
314 | 319 | self.filenameList = filter_filenameList |
General Comments 0
You need to be logged in to leave comments.
Login now