We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de92303 commit 8a15145Copy full SHA for 8a15145
1 file changed
mhkit/river/io/d3d.py
@@ -16,15 +16,15 @@
16
from mhkit.utils import unorm
17
18
19
-def get_all_time(data: netCDF4.Dataset) -> NDArray:
+def get_all_time(data: (netCDF4.Dataset, xr.Dataset)) -> NDArray:
20
"""
21
Returns all of the time stamps from a D3D simulation passed to the function
22
as a NetCDF object (data)
23
24
Parameters
25
----------
26
- data: NetCDF4 object
27
- A NetCDF4 object that contains spatial data, e.g. velocity or shear
+ data: NetCDF4 object or xarray Dataset
+ A NetCDF4 object or xarray Dataset that contains spatial data, e.g. velocity or shear
28
stress generated by running a Delft3D model.
29
30
Returns
0 commit comments