Namespaces | Variables
create_png.py File Reference

Go to the source code of this file.

Namespaces

 scripts.create_png
 

Variables

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


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 Mon Feb 28 2022 22:46:09