📄 s_convert2minimum_phase.m
字号:
function seismic=s_convert2minimum_phase(seismic,wlength)% Create the minimum-phase equivalent of the input data set (usually a wavelet).% The output data set starts at time 0 and ends at time "wlength".% % Written by: E. R.: March 30, 2006% Last updated:%% seismic=s_convert2minimum_phase(seismic,wlength)% INPUT% seismic seismic data set to be converted to it minimum-phase equivalent% wlength optional argument to specify the length of the minimum-phase output;% by default (if not given), it is the length of the input dataset.% Making the output dataset longer than the input data set allows% better agreement between the amplitude spectra of input and output% OUTPUT% seismic seismic data set converted to minimum phase%% EXAMPLE% wav0=s_create_wavelet({'type','ricker'});% wav1=s_convert2minimum_phase(wav0,60);% s_compare(wav0,wav1)% s_spectrum(wav0,wav1)% Remove any null values seismic=s_rm_trace_nulls(seismic);% Determine the number of samples of the output waveletif nargin > 1 nsamp=round(wlength/seismic.step)+1; ntr=size(seismic.traces,2);else [nsamp,ntr]=size(seismic.traces); end% Compute traces of minimum-phase wavelettemp=zeros(nsamp,ntr);for ii=1:ntr temp(:,ii)=minimum_phase_wavelet(seismic.traces(:,ii),nsamp);endseismic.traces=temp;seismic.last=(nsamp-1)*seismic.step;seismic.first=0;seismic.name=[seismic.name,' (minimum-phased)'];% Update history field of output datasetseismic=s_history(seismic,'append');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -