Welcome to the ERA5toDelft3D repository! This repository contains scripts to convert ERA5 reanalysis data, specifically wind, pressure, and precipitation, into a format compatible with Delft3D hydrodynamic models. The data is extracted from NetCDF files and processed to meet the requirements of the Delft3D-FM suite.
The ERA5toDelft3D repository includes scripts to:
- Convert wind (U10 and V10 components), pressure (mean sea level pressure), and precipitation data from ERA5 reanalysis datasets to NetCDF format required by Delft3D.
- Handle time, longitude, latitude, and variable flipping required for integration into Delft3D models.
These scripts are ideal for researchers and engineers working on coastal or riverine hydrodynamic modeling, integrating ERA5 data into Delft3D-FM simulations.
Before running the scripts, ensure you have the following:
- Python 3.9 or later
- Required Python libraries:
netCDF4
numpy
datetime
To install the required libraries, run:
pip install -r requirements.txt
Era5MBWindtoDeflt3D
: Script for converting wind (U10, V10) and pressure (mean sea level) data from ERA5 to Delft3D-compatible NetCDF format.ERA5PrecipitationtoDelft3D
: Script for converting total precipitation (rainfall) data from ERA5 to Delft3D-compatible NetCDF format.input/
: Directory for input ERA5 NetCDF files.output/
: Directory for the generated output NetCDF files.
The script Era5MBWindtoDeflt3D
extracts and processes wind (U10, V10) and pressure (mean sea level) data from an ERA5 NetCDF file, then writes the data into a new NetCDF file compatible with Delft3D.
Example usage: python wind_pressure_conversion.py
The script ERA5PrecipitationtoDelft3D
extracts total precipitation data (rainfall) from an ERA5 NetCDF file and converts it into a Delft3D-compatible format.
Example usage: python rainfall_conversion.py
This project is implemented by Faezah Maghsoodifar. For more information and updates, visit Curious Seekers Hub.