ts_channel
Time series data storage and manipulation.
Contents
Description
Data are uniformly spaced along the y-axis in time
Properties:
samprate - Samples per second (double) starttime - Time of first sample (ts_datetime) data - Data storage (double vector) info - Includes station, component ... (ts_metadata) sourcefile - Information about source data file (ts_file) subplotinfo - (ts_subplotinfo) sampinterval - READONLY: Interval between samples (double) (seconds) ==1/samprate; nSamples - READONLY: Number of samples in data (double) nSeconds - READONLY: Number of seconds in data (double) endtime - READONLY: time of last sample (ts_datetime) (NOT DRIFT CORRECTED) endtime_dc - READONLY: time of last sample (ts_datetime) (DRIFT CORRECTED)
Methods:
Creator: ts_channel - Creator Data modifiers: demean - Remove mean of data detrend - Remove mean plus trend filter - Butterworth filter resample - Resample data trueAmplitude - Correct for instrument response Information: calcNumSamps - Calculate the samples in a given number of seconds, hours, etc calcOffset - Calculate time offset between two ts_channel objects isempty - Is data vector is empty? isConsecutive - Returns 1 if two data channels are consecutive in time isNotConsecutive - Returns 1 if two ts_channel objects are NOT consecutive overLapSeconds - Return overlap between two channels, in seconds overLapSamples - Gives overlap between two channels, in samples Transformation cat - Concatenate two ts_channel objects cut - Return a section of the data calcSpectrogram - Make a spectrogram Redefine Matlab methods: plot - Plot a data channel
EXAMPLE
sps=40; t=0:1/sps:100; d=ts_channel(sin(t/5),sps); plot(d); d %d.starttime='2007/01/01 00:00:00'; %plot(d);
See also
ts_metadata ts_datetime ts_file ts_subplotinfo