Variables | |
driver = gdal.GetDriverByName("GTiff") | |
ds = gdal.Open(inname, gdal.GA_ReadOnly) | |
inname = sys.argv[1] | |
max_channel = ds.RasterCount | |
means = values.mean(axis=0) | |
int | min_channel = 1 |
mins = values.min(axis=0) | |
int | num_channels = max_channel - min_channel |
outname = sys.argv[2] | |
raster_count = ds.RasterCount | |
shape = values.shape | |
values = np.empty((raster_count, y_size, x_size), dtype=np.float32) | |
vmax = np.amax(values) | |
x_size = ds.RasterXSize | |
y_size = ds.RasterYSize | |
scripts.normalize.driver = gdal.GetDriverByName("GTiff") |
Definition at line 54 of file normalize.py.
scripts.normalize.ds = gdal.Open(inname, gdal.GA_ReadOnly) |
Definition at line 9 of file normalize.py.
scripts.normalize.inname = sys.argv[1] |
Definition at line 6 of file normalize.py.
scripts.normalize.max_channel = ds.RasterCount |
Definition at line 18 of file normalize.py.
scripts.normalize.means = values.mean(axis=0) |
Definition at line 35 of file normalize.py.
scripts.normalize.min_channel = 1 |
Definition at line 17 of file normalize.py.
scripts.normalize.mins = values.min(axis=0) |
Definition at line 36 of file normalize.py.
int scripts.normalize.num_channels = max_channel - min_channel |
Definition at line 23 of file normalize.py.
scripts.normalize.outname = sys.argv[2] |
Definition at line 7 of file normalize.py.
scripts.normalize.raster_count = ds.RasterCount |
Definition at line 13 of file normalize.py.
scripts.normalize.shape = values.shape |
Definition at line 33 of file normalize.py.
int scripts.normalize.values = np.empty((raster_count, y_size, x_size), dtype=np.float32) |
Definition at line 25 of file normalize.py.
scripts.normalize.vmax = np.amax(values) |
Definition at line 38 of file normalize.py.
scripts.normalize.x_size = ds.RasterXSize |
Definition at line 14 of file normalize.py.
scripts.normalize.y_size = ds.RasterYSize |
Definition at line 15 of file normalize.py.