import os import sys import glob import fnmatch import datetime import time import re import h5py import numpy 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 # Date and time when the file was created ('Htime', numpy.str_, 32), # Name of operator who created the file ('Hoper', numpy.str_, 64), # Place where the measurements was carried out ('Hplace', numpy.str_, 128), # Description of measurements ('Hdescr', numpy.str_, 256), ('Hdummy', numpy.str_, 512), # Reserved space # Main chunk ('Msign', '=5 ('SPARrawGate1', '