wecopttool.read_netcdf

read_netcdf(fpath)[source]

Read a NetCDF file with possibly complex entries as a xarray.Dataset.

Can handle complex entries in the NetCDF by using capytaine.io.xarray.merge_complex_values().

Parameters:

fpath (str | Path) – Path to the NetCDF file.

Return type:

Dataset

See also

write_netcdf