@@ -14,17 +14,6 from jroIO_usrp import * | |||
|
14 | 14 | # except: |
|
15 | 15 | # print "jroIO_usrp_api could not be imported" |
|
16 | 16 | |
|
17 | try: | |
|
18 |
|
|
|
19 | except: | |
|
20 | print "jroIO_amisr could not be imported" | |
|
21 | ||
|
22 | try: | |
|
23 | from jroIO_HDF5 import * | |
|
24 | except: | |
|
25 | print "jroIO_HDF5 could not be imported" | |
|
26 | ||
|
27 | try: | |
|
28 | from jroIO_hf import * | |
|
29 | except: | |
|
30 | print "jroIO_hf could not be imported" No newline at end of file | |
|
17 | from jroIO_amisr import * | |
|
18 | from jroIO_HDF5 import * | |
|
19 | from jroIO_hf import * No newline at end of file |
@@ -10,11 +10,10 import h5py | |||
|
10 | 10 | import numpy |
|
11 | 11 | import fnmatch |
|
12 | 12 | import re |
|
13 | import stuffr | |
|
14 | 13 | |
|
15 | from model.data.jroheaderIO import RadarControllerHeader, SystemHeader | |
|
16 | from model.data.jrodata import Voltage | |
|
17 | from model.proc.jroproc_base import ProcessingUnit, Operation | |
|
14 | from schainpy.model.data.jroheaderIO import RadarControllerHeader, SystemHeader | |
|
15 | from schainpy.model.data.jrodata import Voltage | |
|
16 | from schainpy.model.proc.jroproc_base import ProcessingUnit, Operation | |
|
18 | 17 | |
|
19 | 18 | |
|
20 | 19 | def isNumber(str): |
@@ -267,7 +266,7 class HFReader(ProcessingUnit): | |||
|
267 | 266 | fp= h5py.File(dir_hf_filename,'r') |
|
268 | 267 | hipoc=fp['t'].value |
|
269 | 268 | fp.close() |
|
270 |
date_time= |
|
|
269 | date_time=datetime.datetime.utcfromtimestamp(hipoc) | |
|
271 | 270 | year =int(date_time[0:4]) |
|
272 | 271 | month=int(date_time[5:7]) |
|
273 | 272 | dom =int(date_time[8:10]) |
@@ -312,7 +311,7 class HFReader(ProcessingUnit): | |||
|
312 | 311 | fp= h5py.File(dir_hf_filename,'r') |
|
313 | 312 | hipoc=fp['t'].value |
|
314 | 313 | hipoc=hipoc+self.timezone |
|
315 |
date_time= |
|
|
314 | date_time=datetime.datetime.utcfromtimestamp(hipoc) | |
|
316 | 315 | fp.close() |
|
317 | 316 | year =int(date_time[0:4]) |
|
318 | 317 | month=int(date_time[5:7]) |
@@ -479,7 +478,7 class HFReader(ProcessingUnit): | |||
|
479 | 478 | # fp= h5py.File(dir_hf_filename,'r') |
|
480 | 479 | # hipoc=fp['t'].value |
|
481 | 480 | # fp.close() |
|
482 |
# date_time= |
|
|
481 | # date_time=datetime.datetime.utcfromtimestamp(hipoc) | |
|
483 | 482 | # |
|
484 | 483 | # year =int(date_time[0:4]) |
|
485 | 484 | # month=int(date_time[5:7]) |
General Comments 0
You need to be logged in to leave comments.
Login now