wavespectra.read_wwm#
- wavespectra.read_wwm(filename_or_fileglob, file_format='netcdf', mapping={'AC': 'efth', 'DEP': 'dpt', 'lat': 'lat', 'lon': 'lon', 'nbstation': 'site', 'ndir': 'dir', 'nfreq': 'freq', 'ocean_time': 'time'}, chunks={})[source]#
Read Spectra from WWMII native netCDF format.
- Parameters:
filename_or_fileglob (-) – filename, fileglob specifying multiple files, or a file object to read.
file_format (-) – format of file to open, one of netcdf or zarr.
mapping (-) – coordinates mapping from original dataset to wavespectra.
chunks (-) – chunk sizes for dimensions in dataset. By default dataset is loaded using single chunk for all dimensions (see xr.open_mfdataset documentation).
- Returns:
spectra dataset object read from ww3 file.
- Return type:
dset (SpecDataset)
Note
If file is large to fit in memory, consider specifying chunks for ‘time’ and/or ‘station’ dims.