import os, sys import glob import fnmatch import datetime import time import re import h5py import numpy import matplotlib.pyplot as plt import pylab as plb from scipy.optimize import curve_fit from scipy import asarray as ar,exp from scipy import stats from duplicity.path import Path from numpy.ma.core import getdata SPEED_OF_LIGHT = 299792458 SPEED_OF_LIGHT = 3e8 try: from gevent import sleep except: from time import sleep from schainpy.model.data.jrodata import Spectra #from schainpy.model.data.BLTRheaderIO import FileHeader, RecordHeader from schainpy.model.proc.jroproc_base import ProcessingUnit, Operation #from schainpy.model.io.jroIO_bltr import BLTRReader from numpy import imag, shape, NaN startFp = open('/home/erick/Documents/MIRA35C/20160117/20160117_0000.zspc',"rb") FILE_HEADER = numpy.dtype([ #HEADER 1024bytes ('Hname',numpy.str_,32), #Original file name ('Htime',numpy.str_,32), #Date and time when the file was created ('Hoper',numpy.str_,64), #Name of operator who created the file ('Hplace',numpy.str_,128), #Place where the measurements was carried out ('Hdescr',numpy.str_,256), #Description of measurements ('Hdummy',numpy.str_,512), #Reserved space #Main chunk ('Msign','=5 ('SPARrawGate2','