def update_index_t_info (starttime, samples, sps) :
global DAS_INFO
ph5file = EXREC.filename
ph5path = '/Experiment_g/Receivers_g/' + EXREC.ph5_g_receivers.current_g_das._v_name
das = ph5path[32:]
stoptime = starttime + (float (samples) / float (sps))
di = Index_t_Info (das, ph5file, ph5path, starttime, stoptime)
if not DAS_INFO.has_key (das) :
DAS_INFO[das] = []
DAS_INFO[das].append (di)
logging.info ("DAS: {0} File: {1} First Sample: {2} Last Sample: {3}".format (das, ph5file, time.ctime (starttime), time.ctime (stoptime)))
#startms, startsecs = math.modf (starttime)
#startms = int (startms * 1000.); startsecs = int (startsecs)
#stopms, stopsecs = math.modf (stoptime)
#stopms = int (stopms * 1000.); stopsecs = int (stopsecs)
#ptimestart = tdoy.epoch2PasscalTime (startsecs, startms)
#ptimestop = tdoy.epoch2PasscalTime (stopsecs, stopms)
#print ph5file, ph5path, ptimestart, ptimestop
# YYY YYY
评论列表
文章目录