Preanalysis Folder Overview#
This preanalysis folder contains all scripts, notebooks, and utilities used to prepare input data for the EPM (Electricity Planning Model).
The structure is organized into thematic subfolders for different areas of pre-processing:
climatic data
generation data
hydro data
load data
representative days
Each thematic folder contains:
Jupyter notebooks for data analysis or processing
Python utility modules for reusable functions
input/
folders for raw or intermediate data inputsoutput/
folders for storing processed results
Objective#
The preanalysis step’s main objective is to produce clean, consistent input datasets compatible with the EPM model. Each data area prepares specific inputs:
climatic → time series of renewables and climate conditions
generation → installed capacities and plant data
hydro → inflow, capacity, and basin-level data
load → demand profiles
representative days → reduced time slices for model efficiency
By organizing preanalysis this way, the workflow ensures efficient updates and traceability when new data or regions are introduced into EPM.
Folder Structure Overview#
Folder / File |
Description |
---|---|
|
Prepares climate and renewable resource data, including retrieval from Renewable Ninja. |
├─ |
Overview of climatic datasets and statistics. |
├─ |
Downloads and processes data from Renewable Ninja API. |
├─ |
Python functions for climate data manipulation. |
├─ |
Utilities for accessing Renewable Ninja API. |
├─ |
Folder for raw climate-related input data. |
└─ |
Folder for processed climatic outputs. |
|
Handles generation capacity, coordinates, and global datasets for power plants. |
├─ |
Cleans generation data for EPM input format. |
├─ |
Retrieves geocoordinates for renewable plants. |
├─ |
Summarizes global generation databases. |
├─ |
Folder for generation-related raw inputs. |
└─ |
Folder for generation data outputs. |
|
Focused on hydropower capacity, inflows, and atlas comparisons. |
├─ |
Compares hydropower datasets (e.g. Hydro Atlas). |
├─ |
Maps hydro basins and resources. |
├─ |
Under development; processes hydro capacity data. |
├─ |
Computes hydro capacity factors for EPM. |
├─ |
Analyses historical inflows for hydro modeling. |
├─ |
Folder for hydro raw inputs. |
└─ |
Folder for processed hydro outputs. |
|
Placeholder for load-related preanalysis scripts and data. |
|
Manages clustering and creation of representative days for EPM simulations. |
├─ |
Notebook to compute representative days from time series data. |
├─ |
Python utilities for clustering and representative days calculations. |
├─ |
GAMS-specific resources related to representative days. |
├─ |
Folder for raw data used for clustering. |
└─ |
Folder for outputs like cluster assignments or representative days timeseries. |
Rationale: Input / Output Folders#
Each thematic subfolder follows a consistent pattern:
input/
— stores:raw external datasets
intermediate cleaned datasets
files downloaded from APIs or third-party tools
output/
— stores:processed data ready to feed into the EPM model
summary statistics
visualizations and derived indicators
This separation ensures:
reproducibility of data pipelines
clarity in tracking data provenance
easy integration of updates from new input data sources