topotherm.create_matrices

Functions

duplicate_columns(data[, minoccur])

Find duplicate columns in a numpy array.

create_matrices(inputpath, outputpath[, buffer])

Creates from a set of shapefiles ()

Module Contents

topotherm.create_matrices.duplicate_columns(data, minoccur=2)[source]

Find duplicate columns in a numpy array.

Parameters:
  • data (np.ndarray) – Data to check for duplicates.

  • minoccur (int) – Minimum number of occurrences to be considered a duplicate.

Returns:

List of indices of duplicate columns.

Return type:

list

topotherm.create_matrices.create_matrices(inputpath, outputpath, buffer=2.5)[source]

Creates from a set of shapefiles ()

Parameters:
  • inputpath (Path to the initial shape files for the street layout (roads.shp), heat sinks (heat_sinks.shp)) – and heat sources (heat_sources.shp) as a dictionary. Matrices can also be Geopackages

  • outputpath (Path to the result folder)

  • buffer (Radius of the buffer layer in meter, which is used to aggregate connection lines)

Returns:

  • Parquet files, needed for the optimization of the district heating network

  • Shapefiles of the nodes and edges of the district