This repository contains two scripts for generating and processing meteorological datasets for building energy simulation and environmental modeling. The scripts support the creation of Typical Meteorological Year (TMY) and Future Meteorological Year (FMY) datasets from raw climate observations and climate model projections.
.
├── TMY-Gencode.py # Python script for generating TMY datasets
├── FMY-Gencode.m # MATLAB script for generating FMY datasets
└── README.md # Project documentation
- TMY-Gencode.py
- Implements TMY construction from multi-year historical weather observations.
- Applies statistical selection methods to create a representative "typical year".
- Outputs hourly datasets in formats compatible with building simulation software (CSV, EPW, etc.).
- FMY-Gencode.m
- Generates FMY datasets based on climate change scenarios (e.g., SSP2-4.5, SSP5-8.5).
- Uses projected meteorological data for future time horizons (e.g., 2050, 2099).
- Outputs hourly climate data files for use in building performance and environmental analysis.
- Python 3.8+
- Recommended packages:
pandasnumpyscipymatplotlib(optional, for visualization)
Install dependencies via:
pip install -r requirements.txt
- MATLAB R2021a or later
- No additional toolboxes required (unless specified in the script)
Run the script with historical meteorological data as input:
python TMY-Gencode.py --input ./raw_data/ --output ./TMY/
Example arguments:
--input: Directory containing multi-year hourly weather records--output: Directory to save generated TMY files--format: (optional) Output format, e.g.,csv,epw
Execute the script in MATLAB with climate projection datasets:
FMY-Gencode('input_folder', './projections/', 'output_folder', './FMY/')
Example arguments:
input_folder: Directory with climate projection data (NetCDF or CSV)output_folder: Target directory for generated FMY files
- TMY generation requires multi-year historical hourly weather observations from meteorological stations.
- FMY generation requires downscaled climate model outputs under specific emission scenarios (e.g., SSP2-4.5, SSP5-8.5).
- Hourly weather files (8,760 records per year)
- File naming convention:
<station_id>_<scenario>_<year>.csv(or.epw,.weaetc. depending on the format) - Compatible with major building energy simulation software, including EnergyPlus, OpenStudio, DeST, and Radiance.
If you use this repository or its generated datasets in your research, please cite:
[Author(s)], "[Dataset/Tool Name]: Typical and Future Meteorological Year Data Generators for Building Simulation," Zenodo, 2025. DOI: [to be added]
This project is released under the MIT License.