Skip to main content

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:

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

ERA5
CAMS
EPW format
Earthkit

Datasets home pages:

View your API requests and download responses at:

CDS Requests
ADS Requests

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

era5epw-0.1.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

era5epw-0.1.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file era5epw-0.1.0.tar.gz.

File metadata

  • Download URL: era5epw-0.1.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.8.0-83-generic

File hashes

Hashes for era5epw-0.1.0.tar.gz
Algorithm Hash digest
SHA256 618410afdfa5abe8ec36c55421b45c78dd698146a4f1eabd38d4e8f39dbd57cb
MD5 2b98d81cd51c84c368168836d8aca4e9
BLAKE2b-256 8144f726a867a7c92de8d7339d0eb5bcd9312261fb113bed048554346aa9d5a2

See more details on using hashes here.

File details

Details for the file era5epw-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: era5epw-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.8.0-83-generic

File hashes

Hashes for era5epw-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 791dd4114b610d777980fdeae7d6db541316eba48bc30c44468a9302df13940a
MD5 1c88b153445f954ceab9bd53b1895738
BLAKE2b-256 db47f9cd5206f00b77d8ca6100e31233d2ff83007af2a719583540795c94e537

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page