wavespectra.partition.hanson_and_phillips_2001.combine_partitions_hp01#

wavespectra.partition.hanson_and_phillips_2001.combine_partitions_hp01(partitions, freq, dir, swells=None, k=0.5, angle_max=30, hs_min=0.2, combine_extra_swells=True)[source]#

Combine swell partitions according Hanson and Phillips (2001).

Args:
  • partitions (list): Partitions sorted in descending order by Hs.

  • freq (1darray): Frequency array.

  • dir (1darray): Direction array.

  • swells (int): Number of swells to keep after auto-merging is performed.

  • k (float): Spread factor in Hanson and Phillips (2001)’s eq 9.

  • angle_max (float): Maximum relative angle for combining partitions.

  • hs_min (float): Minimum Hs of individual partitions, any components that fall below this value is merged onto closest partition.

  • combine_extra_swells (bool): Combine extra swells with nearest neighbours if more than the number defined by swells remain after auto-merging.

Returns:
  • combined_partitions (list): List of combined partitions.

Criteria for merging any 2 partitions:
  • Integrated partitions E(f) must be contiguous in frequency.

  • Mean directions are separated by less than angle_max.

  • Polar distance between partitions is small compared to their spread.

  • Partitions < hs_min are always combined with closest neighbours.