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

📄 calcwtw.m

📁 3D电阻率反演Matlab程序 RESINVM3D is a MATLAB package for inverting 3D Dc Resistivity and Electrical Resi
💻 M
字号:
function[ MTX] = calcWTW(MTX,wt,para)
% [WTW] = calcWTW(MTX,wt)
% Calculate WTW - the model regularization matrix
% USE: grad, kron3

% Copyright (c) 2007 by the Society of Exploration Geophysicists.
% For more information, go to http://software.seg.org/2007/0001 .
% You must read and accept usage terms at:
% http://software.seg.org/disclaimer.txt before use.
% 
% Revision history:
% Original SEG version by Adam Pidlisecky and Eldad Haber
% Last update, July 2005

dx = MTX.GRID.DX;
dy = MTX.GRID.DY;
dz = MTX.GRID.DZ;
%smoothing parameters for the three directions large number promotes flatness in given direction dlz big makes things vertical
alx = para.alx;
aly = para.aly;
alz = para.alz;

%Smallness parameter
als = para.als;

nx=length(dx);
ny=length(dy);
nz=length(dz);

[G,Gx,Gy,Gz] = grad(dx,dy,dz);


%%Create a weighted smallness term 
V = spdiags(mkvc(wt), 0, nx*ny*nz, nx*ny*nz); 

%Assemble the Anisotropic gradient operrator
Gs = [alx*Gx;aly*Gy;alz*Gz];

%Weights certain points more than others
Wt = spdiags(mkvc(wt),0,nx*ny*nz,nx*ny*nz);


%assemble the 3d weighting matrix
MTX.WTW = Wt' * ( Gs' * Gs + als * V) * Wt;
MTX.WTW = MTX.WTW(find(MTX.ACTIVE(:)),find(MTX.ACTIVE(:)));

⌨️ 快捷键说明

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