This project focuses on analyzing and visualizing substations within a specified geographic area. It includes various scripts to filter, retrieve, and visualize substation data using different tools and libraries.
- Description: Visualizes the results of the DSS analysis on a map.
- Parameters:
georef_dss_path: Path to the georeferenced DSS file.linked_dss_path: Path to the linked DSS file.
- Returns: HTML file with the map visualization.
- Description: Selects a polygon from a shapefile and retrieves substation data within it.
- Parameters:
file_path: Path to the shapefile.
- Returns: Substation data within the selected polygon.
- Description: Analyzes substation tags by state.
- Parameters:
state: Name of the state.
- Returns: Analysis of substation tags.
- Description: Analyzes selected substation tags by state.
- Parameters:
state: Name of the state.selected_properties: List of selected properties to analyze.
- Returns: Analysis of selected substation tags.
- Description: Analyzes the distribution of selected substation tags by state.
- Parameters:
state: Name of the state.selected_properties: List of selected properties to analyze.
- Returns: Distribution analysis of selected substation tags.
- Description: Retrieves distinct operators from a CSV file and filters them.
- Parameters:
file_path: Path to the CSV file.operators_to_exclude: Set of operators to exclude.
- Returns: Filtered list of distinct operators.
- Description: Converts a GeoJSON file to a GeoPackage file.
- Parameters:
geojson_path: Path to the GeoJSON file.
- Returns: GeoPackage file.
- Description: Builds a grid using a specified border ID.
- Parameters:
border_id: ID of the border.
- Returns: Grid data.
- Description: Flask application to build a grid using a specified border ID and optional GeoJSON data.
- Parameters:
border_id: ID of the border.substation_coordinates: GeoDataFrame of substation coordinates.building_geojson: GeoDataFrame of building data.streets_geojson: GeoDataFrame of street data.load_profiles: DataFrame of load profiles.
- Returns: JSON response with the grid data.
- Description: Finds substations within a specified border polygon using Overpass API.
- Parameters:
border_id: ID of the border.
- Returns: Substation data within the specified border polygon.
- Description: Lists all layers in a GeoPackage file.
- Parameters:
gpkg_file: Path to the GeoPackage file.
- Returns: List of available layers.