This repository contains a Python script designed to convert HYCOM (Hybrid Coordinate Ocean Model) dataset outputs into multiple levels of boundary conditions for Delft3D-FM and Delft3D-FLOW. Specifically, it prepares the salinity and temperature boundary conditions required for hydrodynamic and water quality simulations.
- π Processes HYCOM dataset outputs.
- π Generates boundary conditions for Delft3D-FM and Delft3D-FLOW.
- π Supports multiple vertical levels.
- π‘οΈ Prepares salinity and temperature boundary conditions.
To use this script, ensure the following Python libraries are installed:
sysnumpypandasopenearthtoolsxarraydatetimewarningstqdm
To install the required packages, use the following command:
pip install numpy pandas xarray openearthtools tqdmThe script requires HYCOM dataset files as input. These files should be in a format readable by xarray (e.g., NetCDF).
The script produces boundary condition files for Delft3D-FM and Delft3D-FLOW.
- Clone this repository:
git clone <repository_url>
cd <repository_name>- Run the Python script:
jupyterlab Salinity_Temp.ipynbThe script uses the following key libraries:
openearthtools.io.delft3d: Handles Delft3D data input and output.xarray: Manages HYCOM dataset processing.tqdm: Provides progress tracking.