Plot local density of states.
More...
|
|
| plotLDOS.filename = sys.argv[1] |
| |
|
| plotLDOS.sigma = float(sys.argv[2]) |
| |
|
| plotLDOS.file = h5py.File(filename, 'r'); |
| |
|
| plotLDOS.dataset = file['LDOS'] |
| |
|
| plotLDOS.data_dimensions = dataset.shape |
| |
|
int | plotLDOS.physical_dimensions = len(data_dimensions)-1 |
| |
|
| plotLDOS.energy_resolution = data_dimensions[physical_dimensions]; |
| |
|
| plotLDOS.limits = dataset.attrs['UpLowLimits'] |
| |
|
| plotLDOS.size_x = data_dimensions[0] |
| |
|
| plotLDOS.size_y = data_dimensions[1] |
| |
|
| plotLDOS.x = numpy.arange(0, data_dimensions[0], 1) |
| |
|
| plotLDOS.y = numpy.arange(limits[1], limits[0], (limits[0] - limits[1])/energy_resolution) |
| |
|
| plotLDOS.X |
| |
|
| plotLDOS.Y |
| |
|
| plotLDOS.fig = matplotlib.pyplot.figure() |
| |
|
| plotLDOS.Z = dataset[:,:] |
| |
|
| plotLDOS.sigma_discrete_units = sigma*energy_resolution/(limits[0] - limits[1]) |
| |
|
| plotLDOS.ax = fig.gca() |
| |
|
| plotLDOS.cmap |
| |
Plot local density of states.
- Author
- Kristofer Björnson