📄 s_hilbert.m
字号:
function seismic=s_hilbert(seismic,varargin)% Function computes Hilbert transform or instantaneous amplitude of seismic data% Written by: E. R., October 10, 2000% Last updated: June 10, 2004: keyword 'output' as replacement for 'type';% trace nulls removed if present%% seismic=s_hilbert(seismic,varargin)% INPUT% seismic seismic structure% varargin one or more cell arrays; the first element of each cell array is a keyword,% the other elements are parameters. Presently, keywords are:% 'output' Possible values are: % 'hilbert' (Hilbert transform of the seismic input data)% 'complex' (seismic+i*hilbert(seismic) )% 'amplitude' (instantaneous amplitude)% Default: {'output','amplitude'}% OUTPUT% seismic seismic structure after the transformation specified via 'output'% Set default valuesparam.output='amplitude';% Decode and assign input argumentsparam=assign_input(param,varargin);if isfield(seismic,'null') if isnan(seismic.null) disp(' Null values in seismic rmoved or replaced by zeros via "s_rm_trace_nulls".') seismic=s_rm_trace_nulls(seismic); endendswitch param.output case 'amplitude'seismic.traces=abs(myhilbert(seismic.traces));htext='Instantaneous amplitude'; case 'complex'seismic.traces=myhilbert(seismic.traces);htext='Complex trace'; case 'hilbert'seismic.traces=imag(myhilbert(seismic.traces));htext='Hilbert transform'; otherwiseerror([' Unknown output "',param.output,'"']) end% Append history fieldif isfield(seismic,'history') seismic=s_history(seismic,'append',htext);end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -