import h5py as h5

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

f = h5.File("./dat3791.h5", "r")
rn = f['R2x_2d'][:]/(constants.h/constants.e**2)
y = f['y_array'][:] #field
x = f['x_array'][:] #density

f = h5.File("./dat4116.h5", "r")
rp = f['R2x_2d'][:]/(constants.h/constants.e**2)
y = f['y_array'][:]
x = f['x_array'][:]
rxx = (rp + rn)/2
rxy = (rp - rn)/2