Chapter 1-2 ready. Chapter3 under construction
This commit is contained in:
+8
-6
@@ -34,12 +34,13 @@ import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
||||
output_folder = thesis_path+"/fig/Chapter2_KATRIN/Measurements/IUscans/"
|
||||
|
||||
data_path = thesis_path + "/figCode/Chapter2_KATRIN/Measurements/2019-10-16_UIscans_beforeAmmeterRemoval/"
|
||||
|
||||
# input from Friedel
|
||||
##############################
|
||||
|
||||
# read in rear wall voltages
|
||||
rwvol=pd.read_csv('input/rwvol.csv', names=['datetime','LVtime','voltage'], header=0, parse_dates=['datetime'])
|
||||
rwvol=pd.read_csv(data_path+'input/rwvol.csv', names=['datetime','LVtime','voltage'], header=0, parse_dates=['datetime'])
|
||||
|
||||
# convert LabView timestamp and replace ADEI time stmap with it
|
||||
rwvol.datetime=pd.to_datetime(rwvol.LVtime, origin=pd.Timestamp('1904-01-01'), unit='s')
|
||||
@@ -163,7 +164,7 @@ for index, row in sweep.iterrows():
|
||||
# rear wall current
|
||||
|
||||
# read in from file
|
||||
rwcurr=pd.read_csv('input/rwcurr.csv', names=['datetime','LVtime','current'], header=0, parse_dates=['datetime'])
|
||||
rwcurr=pd.read_csv(data_path+'input/rwcurr.csv', names=['datetime','LVtime','current'], header=0, parse_dates=['datetime'])
|
||||
rwcurr['current']*=1e9
|
||||
|
||||
# convert LabView timestamp and replace ADEI time stmap with it
|
||||
@@ -177,7 +178,7 @@ rwcurr['reltime']=pd.to_numeric(rwcurr.datetime-rwvol.datetime[0])
|
||||
#DPS1 current
|
||||
|
||||
#read in from file
|
||||
DPS1curr=pd.read_csv('input/DPS1curr.csv', names=['datetime','current'], header=0, parse_dates=['datetime'])
|
||||
DPS1curr=pd.read_csv(data_path+'input/DPS1curr.csv', names=['datetime','current'], header=0, parse_dates=['datetime'])
|
||||
DPS1curr['current']*=1e9
|
||||
|
||||
#create column with relative time (offset from rw voltage)
|
||||
@@ -186,7 +187,7 @@ DPS1curr['reltime']=pd.to_numeric(DPS1curr.datetime-rwvol.datetime[0])
|
||||
#DPS2 current
|
||||
|
||||
#read in from file
|
||||
DPS2curr=pd.read_csv('input/DPS2curr.csv', names=['datetime','current'], header=0, parse_dates=['datetime'])
|
||||
DPS2curr=pd.read_csv(data_path+'input/DPS2curr.csv', names=['datetime','current'], header=0, parse_dates=['datetime'])
|
||||
DPS2curr['current']*=1e9
|
||||
|
||||
#create column with relative time (offset from rw voltage)
|
||||
@@ -195,7 +196,7 @@ DPS2curr['reltime']=pd.to_numeric(DPS2curr.datetime-rwvol.datetime[0])
|
||||
#DPS3 current
|
||||
|
||||
#read in from file
|
||||
DPS3curr=pd.read_csv('input/DPS3curr.csv', names=['datetime','current'], header=0, parse_dates=['datetime'])
|
||||
DPS3curr=pd.read_csv(data_path+'input/DPS3curr.csv', names=['datetime','current'], header=0, parse_dates=['datetime'])
|
||||
DPS3curr['current']*=1e9
|
||||
|
||||
#create column with relative time (offset from rw voltage)
|
||||
@@ -352,7 +353,8 @@ ax.set_ylim((-50, 250))
|
||||
|
||||
ax.legend()
|
||||
|
||||
ax.grid()
|
||||
ax.set_facecolor('#e7e7e7ff')
|
||||
ax.grid(color='white')
|
||||
|
||||
plt.savefig(output_folder + "knm2_IU_scan.pdf",bbox_inches='tight')
|
||||
plt.show()
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user