wavespectra.input.swan.read_hotswan#

wavespectra.input.swan.read_hotswan(fileglob, dirorder=True)[source]#

Read partial SWAN hotfiles into single gridded hotfile Dataset.

Args:
  • fileglob (str, list): glob pattern specifying hotfiles to read and merge.

  • dirorder (bool): if True ensures directions are sorted.

Returns:
  • dset (SpecDataset): spectra dataset object with different grid parts merged.

Note:
  • SWAN hotfiles from mpi runs are split by the number of cores over the largest dim of (lat, lon) with overlapping rows or columns that are computed in only one of the split hotfiles. Here overlappings are merged so that those with higher values are kept which assumes non-computed overlapping rows or columns are filled with zeros.