SpectralDensity

Calculates auto- and cross-spectral densities for a data stream. Also outputs coherences as well. Plots any of the above.

Constructor

Properties

  • ids: a list of the channel ids

  • seed_ids: a list of the channel seed_ids

  • freqs: the frequencies of the spectral density functions

  • n_windows: the number of data windows used to calculate the spectra

  • window_type: The type of tapering window used when calculating the spectral densities

  • window_seconds: Length of each window, in seconds

  • starttimes: get a list containing the starttimes for each data window

  • used_times: time spans used to calculate spectra

  • avoided_spans: Time spans avoided during PSD calculation

  • clean_sequences: list of clean_sequence lists, for each channel

Methods

Get Methods

  • autospect: Auto-spectral density function for a channel

  • coherence: Coherence between two channels

  • crossspect: Cross-spectral density function between two channels

  • channel_id: Channel id, expanding wildcards and verifying that the result is unique

  • seed_id: The specified channel’s seed_id, expanding wildcards and verifying that the result is unique

  • channel_instrument_response: Channel’s instrument response

  • channel_units: A channel’s input (physical) units

  • units: Units of a cross- or auto-spectra

  • coh_signif: The coherence significance level

  • clean_sequence: The clean sequence applied to a channel

Other Methods

Set Methods

You probably won’t ever use these (should I put a _ before?)

Example

SpectralDensity example code