Variables
scripts.create_png Namespace Reference

Variables

 color_map = np.array(cm.get_cmap('viridis').colors)
 
 colors = np.empty((num_classes, 4), dtype=np.uint)
 
 ds = gdal.Open(inname, gdal.GA_ReadOnly)
 
 inname = sys.argv[1]
 
 max_channel = ds.RasterCount
 
 max_val = np.amax(values)
 
int min_channel = 1
 
 min_val = np.amin(values)
 
int num_classes = max_val - min_val + 1
 
 outname = sys.argv[2]
 
 png_values = np.zeros((shape[1], shape[2], 4), dtype=np.uint)
 
 raster_count = ds.RasterCount
 
 shape = values.shape
 
 step = int((len(color_map)-1) / (num_classes-1))
 
 values = np.empty((raster_count, y_size, x_size), dtype=np.int)
 
 x_size = ds.RasterXSize
 
 y_size = ds.RasterYSize
 

Variable Documentation

◆ color_map

scripts.create_png.color_map = np.array(cm.get_cmap('viridis').colors)

Definition at line 40 of file create_png.py.

◆ colors

scripts.create_png.colors = np.empty((num_classes, 4), dtype=np.uint)

Definition at line 41 of file create_png.py.

◆ ds

scripts.create_png.ds = gdal.Open(inname, gdal.GA_ReadOnly)

Definition at line 15 of file create_png.py.

◆ inname

scripts.create_png.inname = sys.argv[1]

Definition at line 12 of file create_png.py.

◆ max_channel

scripts.create_png.max_channel = ds.RasterCount

Definition at line 24 of file create_png.py.

◆ max_val

scripts.create_png.max_val = np.amax(values)

Definition at line 35 of file create_png.py.

◆ min_channel

int scripts.create_png.min_channel = 1

Definition at line 23 of file create_png.py.

◆ min_val

scripts.create_png.min_val = np.amin(values)

Definition at line 34 of file create_png.py.

◆ num_classes

int scripts.create_png.num_classes = max_val - min_val + 1

Definition at line 37 of file create_png.py.

◆ outname

string scripts.create_png.outname = sys.argv[2]

Definition at line 13 of file create_png.py.

◆ png_values

scripts.create_png.png_values = np.zeros((shape[1], shape[2], 4), dtype=np.uint)

Definition at line 57 of file create_png.py.

◆ raster_count

scripts.create_png.raster_count = ds.RasterCount

Definition at line 19 of file create_png.py.

◆ shape

scripts.create_png.shape = values.shape

Definition at line 56 of file create_png.py.

◆ step

scripts.create_png.step = int((len(color_map)-1) / (num_classes-1))

Definition at line 42 of file create_png.py.

◆ values

scripts.create_png.values = np.empty((raster_count, y_size, x_size), dtype=np.int)

Definition at line 26 of file create_png.py.

◆ x_size

scripts.create_png.x_size = ds.RasterXSize

Definition at line 20 of file create_png.py.

◆ y_size

scripts.create_png.y_size = ds.RasterYSize

Definition at line 21 of file create_png.py.



lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:28