import h5py as h5

Ct_t2_3 = 1.03e-21*0.87 
Cb_t2_3 = 1.03e-21*0.87 

## Rxx
f = h5.File("./t2p3/dat74.h5", "r")
z_p = f['R1x_2d'][:].T/1e3
y = f['x_array'][:]/1e3
x = f['y_array'][:]/1e3

f = h5.File("./t2p3/dat83.h5", "r")
z_n = f['R1x_2d'][:].T/1e3
y = f['x_array'][:]/1e3
x = f['y_array'][:]/1e3

z = (z_p + z_n)/2

## Rxy
f = h5.File("./t2p3/dat74.h5", "r")
z_p = f['R3x_2d'][:].T/1e3
y = f['x_array'][:]/1e3
x = f['y_array'][:]/1e3

f = h5.File("./t2p3/dat83.h5", "r")
z_n = f['R3x_2d'][:].T/1e3
y = f['x_array'][:]/1e3
x = f['y_array'][:]/1e3
z = (z_p - z_n)/2
