SpectralDensity
Calculates auto- and cross-spectral densities for a data stream. Also outputs coherences as well. Plots any of the above.
Constructor
SpectralDensity.from_stream:Make a tiskitpy.SpectralDensity object from a an obspy data
Stream
Properties
ids: a list of the channel idsseed_ids: a list of the channel seed_idsfreqs: the frequencies of the spectral density functionsn_windows: the number of data windows used to calculate the spectrawindow_type: The type of tapering window used when calculating the spectral densitieswindow_seconds: Length of each window, in secondsstarttimes: get a list containing the starttimes for each data windowused_times: time spans used to calculate spectraavoided_spans: Time spans avoided during PSD calculationclean_sequences: list of clean_sequence lists, for each channel
Methods
Get Methods
autospect: Auto-spectral density function for a channelcoherence: Coherence between two channelscrossspect: Cross-spectral density function between two channelschannel_id: Channel id, expanding wildcards and verifying that the result is uniqueseed_id: The specified channel’s seed_id, expanding wildcards and verifying that the result is uniquechannel_instrument_response: Channel’s instrument responsechannel_units: A channel’s input (physical) unitsunits: Units of a cross- or auto-spectracoh_signif: The coherence significance levelclean_sequence: The clean sequence applied to a channel
Other Methods
plot_autospectra: plot autospectraplot: shortcut forplot_autospectraplot_cross_spectra: plot cross- (and auto-) spectraplot_coherences: plot coherencesplot_one_autospectra: plot autospectra for one channelplot_one_spectra: plot cross-spectra for the given channelsplot_one_coherence: plot coherence for the given channelsplots: overlay plot different SpectralDensity objectsplots_coherences: overlay plot coherences of different SpectralDensity objects
Set Methods
You probably won’t ever use these (should I put a _ before?)
put_crossspect: put a cross-spectral density in the given slotput_autospect: same asput_crossspectput_channel_instrument_response: put a channel response in the given slotput_clean_sequence: put a channel’s clean_sequence into the objectreplace_channel_id: change a channel id