A tool to convert ERA5/ECMWF data to EnergyPlus Weather (EPW) format
Project description
ERA5 to EPW Converter
A tool that fetches ERA5 data and generates a full year AMY (Actual Meteorological Year) EnergyPlus Weather file (EPW).
The tool takes care of fetching the necessary data from the Copernicus Climate Data Store (CDS) and the Copernicus Atmosphere Data Store (CAMS), processing it, and formatting it into the EPW format. It's designed for fast and efficient data retrieval.
Installation
Prerequisites
Make sure to register for an API key and validate licences at:
- https://cds.climate.copernicus.eu/ (ERA5 data)
- https://ads.atmosphere.copernicus.eu/ (Copernicus Atmosphere Data Store)
Then create the file ~/.cdsapirc with the following content:
url: https://cds.climate.copernicus.eu/api/v2
key: <your_api_key>
Note: the URL will be dynamically managed by the script depending on the data source. The API key doesn't vary, it's the same for both ERA5 and CAMS data.
Moreover, before proceeding, it is required to accept all the licenses in the section "Your profile" in the website of Copernicus.
Install the package
From PyPI
pip install era5epw
From source
Clone the current repository and install the required dependencies using Poetry:
git clone https://github.com/airboxlab/era5epw.git
poetry install
Usage
Example usage:
poetry run download --year 2024 --latitude 49.4 --longitude 0.1 --city-name "Le Havre" --elevation 0 --time-zone 1
Documentation
Datasets home pages:
- ERA5 hourly time-series data on single levels from 1940 to present (Experimental)
- ERA5 Land hourly time-series data from 1950 to present (Experimental)
- ERA5 hourly data on single levels from 1940 to present
- CAMS solar radiation time-series
View your API requests and download responses at:
Check CDS API status at CDS Live, it provides information about congestion for each dataset.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file era5epw-0.2.0.tar.gz.
File metadata
- Download URL: era5epw-0.2.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.8.0-85-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00df8f5d45cd02c0fe108daabb120f1423f8138fe93bede6dfa486962646f665
|
|
| MD5 |
7a8ef74c0e85e0da890949dfcf3caca1
|
|
| BLAKE2b-256 |
d6efb6c72efe6ea75de04a936064e76316c83548083dca662b4de27676805fbf
|
File details
Details for the file era5epw-0.2.0-py3-none-any.whl.
File metadata
- Download URL: era5epw-0.2.0-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.8.0-85-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f9f4591542eeaf9404c9e90048ef96bd7a3aba8d8ef406353036505114c019d
|
|
| MD5 |
b8ff81d4aa521b4e86d10d4600cf6342
|
|
| BLAKE2b-256 |
8c8c2d154182f2c8449611a5b575fb58291ebdb4a2d206c3135b914a68dc28f3
|