topotherm.create_matrices ========================= .. py:module:: topotherm.create_matrices Functions --------- .. autoapisummary:: topotherm.create_matrices.duplicate_columns topotherm.create_matrices.create_matrices Module Contents --------------- .. py:function:: duplicate_columns(data, minoccur = 2) Find duplicate columns in a numpy array. :param data: Data to check for duplicates. :type data: np.ndarray :param minoccur: Minimum number of occurrences to be considered a duplicate. :type minoccur: int :returns: List of indices of duplicate columns. :rtype: list .. py:function:: create_matrices(inputpath, outputpath, buffer=2.5) Creates from a set of shapefiles () :param inputpath: and heat sources (heat_sources.shp) as a dictionary. Matrices can also be Geopackages :type inputpath: Path to the initial shape files for the street layout (roads.shp), heat sinks (heat_sinks.shp) :param outputpath: :type outputpath: Path to the result folder :param buffer: :type 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*