📄 s_reflcoeff.m
字号:
function refl=s_reflcoeff(impedance)% Function computes reflection coefficients from impedance% Start time and sample interval of the output reflection coefficients are those% of the impedance%% Written by: E. R.: April 9, 2000% Last update: March 28, 2006: add input checking%% refl=s_reflcoeff(impedance)% INPUT % impedance Impedance in form of a seismic dataset% OUTPUT% refl Refledction coefficient sequenceif ~istype(impedance,'seismic') error('Input must be a seismic dataset.')endrefl=impedance;refl.tag='reflectivity';refl.name=['Reflectivity (',impedance.name,')'];refl.last=impedance.last-impedance.step;refl.traces(refl.traces <= 0) = NaN;refl.traces=diff(refl.traces)./(refl.traces(1:end-1,:)+refl.traces(2:end,:));% Check for NaNsindex=find(isnan(refl.traces));if ~isempty(index) refl.null=NaN;end% Append history fieldif isfield(impedance,'history') refl=s_history(refl,'append','');end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -