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 handler

  • input_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

cell_size

Size of cell in layer file

chunks

Layer chunks (no band dimension)

output_tiff_dir

Directory to store output GeoTIFFs in

shape

Layer shape

property shape#

Layer shape

Type:

tuple

property cell_size#

Size of cell in layer file

Type:

float

property output_tiff_dir[source]#

Directory to store output GeoTIFFs in

Type:

path-like

property chunks[source]#

Layer chunks (no band dimension)

Type:

tuple

abstractmethod build(*args, **kwargs)[source]#

Build layer