Plot local density of states.
More...
|
|
| plotSP_LDOS.filename = sys.argv[1] |
| |
|
| plotSP_LDOS.theta = float(sys.argv[2]) |
| |
|
| plotSP_LDOS.phi = float(sys.argv[3]) |
| |
|
| plotSP_LDOS.sigma = float(sys.argv[4]) |
| |
|
| plotSP_LDOS.file = h5py.File(filename, 'r'); |
| |
|
| plotSP_LDOS.dataset = file['SpinPolarizedLDOS'] |
| |
|
| plotSP_LDOS.data_dimensions = dataset.shape |
| |
|
int | plotSP_LDOS.physical_dimensions = len(data_dimensions)-3 |
| |
|
| plotSP_LDOS.energy_resolution = data_dimensions[physical_dimensions]; |
| |
|
| plotSP_LDOS.limits = dataset.attrs['UpLowLimits'] |
| |
|
| plotSP_LDOS.size_x = data_dimensions[0] |
| |
|
| plotSP_LDOS.size_y = data_dimensions[1] |
| |
|
| plotSP_LDOS.x = numpy.arange(0, data_dimensions[0], 1) |
| |
|
| plotSP_LDOS.y = numpy.arange(limits[1], limits[0], (limits[0] - limits[1])/energy_resolution) |
| |
|
| plotSP_LDOS.X |
| |
|
| plotSP_LDOS.Y |
| |
|
| plotSP_LDOS.fig = matplotlib.pyplot.figure() |
| |
| | plotSP_LDOS.Z |
| |
|
| plotSP_LDOS.sigma_discrete_units = sigma*energy_resolution/(limits[0] - limits[1]) |
| |
|
| plotSP_LDOS.ax = fig.gca() |
| |
|
| plotSP_LDOS.cmap |
| |
Plot local density of states.
- Author
- Kristofer Björnson
Initial value: 1 = numpy.real((dataset[:,:,0,0] + 1j*dataset[:,:,0,1])*math.cos(theta/2)*math.cos(theta/2) \
2 + (dataset[:,:,1,0] + 1j*dataset[:,:,1,1])*math.cos(theta/2)*math.sin(theta/2)*cmath.exp(1j*phi) \
3 + (dataset[:,:,2,0] + 1j*dataset[:,:,2,1])*math.sin(theta/2)*math.cos(theta/2)*cmath.exp(-1j*phi) \
4 + (dataset[:,:,3,0] + 1j*dataset[:,:,3,1])*math.sin(theta/2)*math.sin(theta/2) \