Metadata-Version: 2.4
Name: pyweatherfiles
Version: 0.0.0
Summary: A generator for Typical Meteorological Year (TMY) files and weather data management.
Author-email: Daniel Sánchez-García <daniel.sanchezgarcia@uca.es>
License-Expression: MIT
Project-URL: Homepage, https://github.com/dsanchez-garcia/pyweatherfiles
Project-URL: Bug Tracker, https://github.com/dsanchez-garcia/pyweatherfiles/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: pandas
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: matplotlib
Requires-Dist: openpyxl

# pyweatherfiles

A Python package to manage weather files and generate Typical Meteorological Year (TMY) data from historical records.

## Installation

```bash
pip install pyweatherfiles
```

## Usage

```python
from pyweatherfiles import tmy

# See examples/using_tmy_generator.py for a complete example.
generator = tmy.TMYGenerator("path/to/your/weather_data.csv")
# ... check the example file for more details
```

## Description
This tool allows you to:
- Load weather data from CSV or Excel.
- Calculate CDFs using daily or hourly methods.
- Apply weighting statistics (Sandia or TMY3).
- Select candidate months based on Finkelstein-Schafer statistics.
- Apply persistence criteria.
- Smooth the data at monthly junctions.
- Generate a final TMY file.

## License
MIT
