Go to the source code of this file.
Namespaces | |
scripts.normalize | |
Variables | |
scripts.normalize.driver = gdal.GetDriverByName("GTiff") | |
scripts.normalize.ds = gdal.Open(inname, gdal.GA_ReadOnly) | |
scripts.normalize.inname = sys.argv[1] | |
scripts.normalize.max_channel = ds.RasterCount | |
scripts.normalize.means = values.mean(axis=0) | |
int | scripts.normalize.min_channel = 1 |
scripts.normalize.mins = values.min(axis=0) | |
int | scripts.normalize.num_channels = max_channel - min_channel |
scripts.normalize.outname = sys.argv[2] | |
scripts.normalize.raster_count = ds.RasterCount | |
scripts.normalize.shape = values.shape | |
scripts.normalize.values = np.empty((raster_count, y_size, x_size), dtype=np.float32) | |
scripts.normalize.vmax = np.amax(values) | |
scripts.normalize.x_size = ds.RasterXSize | |
scripts.normalize.y_size = ds.RasterYSize | |