Exemplo n.º 1
0
'''
Created on 24 Jun 2019

@author: wvx67826
'''

from Tools import Tools
from Tools.I10DataReduction import I10DataReduction
import matplotlib.pyplot as plt
import numpy as np

#rd = Tools.ReadWriteData()
dr = I10DataReduction()
a2q = Tools.AngleToQ()
folder = "Z:/2019/cm22968-3/i10-"
lEscan = []
lRef = []
lBadScan = range(546531, 546533)
temp = [
    546457, 546514, 546699, 546696, 546731, 546736, 546739, 546740, 546741
] + range(546712, 546718) + range(546720, 546731) + range(546748, 546753)
lBadScan = lBadScan + temp  # .append(546699)
#print lBadScan

#============================      This part read out the scan numbers for different scans ===============================
for i, scanNo in enumerate(
    [546455, 546474,
     546509]):  #(range (546455,546509)): #546522-546572,(range (546638,546976)
    #print scanNo
    if (int(scanNo) in lBadScan):
        print "Passing escan"
Exemplo n.º 2
0
'''
Created on 21 Dec 2019

@author: wvx67826
'''
from Tools import Tools
import matplotlib.pyplot as plt
import numpy as np
import os, time
from matplotlib import ticker

Rd = Tools.ReadWriteData()
A2Q = Tools.AngleToQ()
Reduct = Tools.Output()
Reduct.add_clipboard_to_figures()
def read1DCCD(filename, masterStopKey):
    Rd.read_file(filename, metaStopKey = masterStopKey)
    return Rd.get_data()




lPiexel = np.array([])
lCounts = np.array([])
lEnergy = np.array([])
#6447
scanNo = 6470
date = 22
ENERGY = 522.9
tth = 145.0
#marcroFilename = "C:\\Users\\wvx67826\\Desktop\\beam8 data\\MapNight2.txt"