revrt.costs.base.BaseLayerCreator#
- class BaseLayerCreator(io_handler, input_layer_dir='.', output_tiff_dir='.', dtype='float32')[source]#
Bases:
ABC
Abstract Base Class to create transmission routing layers
- Parameters:
io_handler (
LayeredFile
) – Transmission layer IO handlerinput_layer_dir (path-like, optional) – Directory to search for input layers in, if not found in current directory. By default,
'.'
.output_tiff_dir (path-like, optional) – Directory where cost layers should be saved as GeoTIFF. By default,
"."
.dtype (
np.dtype
, optional) – Data type for final dataset. By default,float32
.
Methods
build
(*args, **kwargs)Build layer
Attributes
Size of cell in layer file
Layer chunks (no band dimension)
Directory to store output GeoTIFFs in
Layer shape