power_spectral_density

legwork.psd.power_spectral_density(f, instrument='LISA', custom_psd=None, t_obs='auto', L='auto', approximate_R=False, confusion_noise='auto')[source]

Calculates the effective power spectral density for all instruments.

Parameters
ffloat/array

Frequencies at which to evaluate the sensitivity curve

instrument: {{ `LISA`, `TianQin`, `custom` }}

Instrument to use. LISA is used by default. Choosing custom uses custom_psd to compute PSD.

custom_psdfunction

Custom function for computing the PSD. Must take the same arguments as legwork.psd.lisa_psd() even if it ignores some.

t_obsfloat

Observation time (default 4 years for LISA and 5 years for TianQin)

Lfloat

LISA arm length in metres

approximate_Rboolean

Whether to approximate the response function (default: no)

confusion_noisevarious

Galactic confusion noise. Acceptable inputs are either one of the values listed in legwork.psd.get_confusion_noise(), “auto” (automatically selects confusion noise based on instrument - ‘robson19’ if LISA and ‘huang20’ if TianQin), or a custom function that gives the confusion noise at each frequency for a given mission length where it would be called by running noise(f, t_obs) and return a value with units of inverse Hertz

Returns
psdfloat/array

Effective power strain spectral density