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)
|