Gavin
2021-02-04 4e5aaefc7162b700b95c750caeff35e6323631d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import pandas as pd
import numpy as np
 
standard = pd.read_csv("Standard.csv")
standard_sortX = standard.sort_values(by = '0')
standardSample = standard_sortX.iloc[0:standard_sortX.shape[0]:2,:]
 
mirroring = np.array([[1,0],[0,-1]])
dataMirroring = mirroring.dot(np.array(standardSample).transpose()).transpose()
 
standardPlane = np.c_[dataMirroring[:,0],-76 * np.ones(dataMirroring.shape[0])]
standardPlane = np.c_[standardPlane,dataMirroring[:,1]]
 
for index in range(-75,76,1):
    standardPlaneTemp = np.c_[dataMirroring[:,0],index * np.ones(dataMirroring.shape[0])]
    standardPlaneTemp = np.c_[standardPlaneTemp,dataMirroring[:,1]]
    standardPlane = np.r_[standardPlane,standardPlaneTemp]
    
print(standardPlane.shape)
 
pd.DataFrame(standardPlane).to_csv("StandardPlane.csv",index = False)