Skip to content

era5_wave_direction_vector

ERA5WaveDirectionLoader(bounds, params)

Bases: VectorDataLoader

import_data(bounds)

Reads in wave direction data from a ERA5 NetCDF file. Renames coordinates to 'lat' and 'long' and calculates unit vector from mean wave direction variable 'mwd'.

Parameters:

Name Type Description Default
bounds Boundary

Initial boundary to limit the dataset to

required

Returns:

Type Description

xr.Dataset: ERA5 wave dataset within limits of bounds. Dataset has coordinates 'lat', 'long', and variables 'uW', 'vW'