⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reduce_kx.m

📁 Univ. of Calgary CREWS的免费地震研究软件
💻 M
字号:
function [spec,kx]=reduce_kx(inspec,v,inkx,w,dip);
%[spec,kx]=reduce_kx(inspec,vel,inkx,f,dip);
%
%Reduces the number of kx values required to extrapolate a wavefield.
%New nyquist calculated using highest frequency, slowest velocity and highest
%expected dip.
%
%  spec...spectrum of kx reduced input wavefield
%  kx...vector of reduced spatial frequencies
%  inspec...spectrum of input wavefield
%  vel...slowest scalar velocity (one way) - make sure units correspond
%        with inkx and w
%  inkx...vector of input spatial frequency 
%  w...highest temporal frequency
%  dip...highest expected dip (deg)

v=real(v);

%***compute new nyquist***
kxn=w*sin(pi*dip/180)/v;%new nyquist
dkx=abs(inkx(2)-inkx(1));
kxn=dkx*(1+fix(kxn/dkx));%ensures existance of kx=0
%*************************

%***compute new kx***
kx=[-kxn:dkx:kxn-dkx];
if abs(kx(1))>abs(inkx(1))
  clear kx;
  kx=inkx;
end
%********************

%***make a reduced spectrum***
kxs=1+(length(inkx)-length(kx))/2;
spec=inspec(:,kxs:kxs+length(kx)-1);
%*****************************

%***taper the edges***
spec(:,1)=.5*spec(:,1);
spec(:,length(kx))=.5*spec(:,length(kx));
%*********************

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -