skrf.media.freespace.Freespace.attenuator

Freespace.attenuator(s21, db=True, d=0, unit='deg', name='', **kwargs)

Ideal matched attenuator of a given length

Parameters:
  • s21 (number, array-like) – the attenutation
  • db (bool) – is s21 in db? otherwise assumes linear
  • d (number) – length of attenuator
  • unit (['deg','rad','m','cm','um','in','mil','s','us','ns','ps']) – the units of d. See to_meters(), for details
Returns:

ntwk – 2-port attentuator

Return type:

Network object