资源简介
反演matlab代码,界面反演。
代码片段和文件信息
%3DINVER.M: A MATLAB program to invert the gravity anomaly over a 3-D horizontal density interface by Parker-Oldenburg‘s algorithm
%David Gomez Ortiz and Bhrigu N P Agarwal
%
%Iterative process of Oldenburg(1974)
%using the Parker‘s (1973) equation
%Given a gravity map as input (bouin)in mGal
%as well as density contrast (contrast) in gr/cm3
%and the mean source depth (z0) in Km
%the program computes the topography of the interface (topoout) in Km
%
%density contrast is positive (e. g. mantle-crust)
%mean depth reference is positive downwards(z0)
%It is also necessary to include map length in Km (longx and longy)
%considering a square area the number of rows or columns (numrows and numcolumns)
%and the convergence criterion (criterio) in Km
%
%The maximum number of iterations is 10
%
%The program computes also the gravity map (bouinv) due to the computed relief(forward modelling)
%The cut-off frequencies (SH and WH) for the filter in order to achieve
%convergence have to be also previously defined (as 1/wavelength in Km)
%
bouin=‘c:\gravityinput.dat‘; %path and name of the input gravity file e.g. c:\gravityinput.dat
topoout=‘c:\topooutput.dat‘; %path and name of the output topography file e.g. c:\topooutput.dat
bouinverted=‘c:\bouinv.dat‘; %path and name of the output gravity file e.g. c:\bouinv.dat
numrows=102; %e. g. 112 data in Y direction
numcolumns=102; % e. g. 112 data in X direction
longx=1212; %e.g. 666 Km data length in X direction
longy=1212; %e.g. 666 Km data length in Y direction
contrast=0.4; %density contrast value in g/cm3 e. g. 0.4
criterio=0.02; %convergence criterion in Km e. g. 0.02
z0=30; %mean reference depth in Km e. g. 30 Km
WH=0.002; %smaller cut-off frequency (1/wavelength in Km) e. g. 0.01 i.e. 1/100 Km
SH=0.0022; %greater cut-off frequency (1/wavelength in Km) e. g. 0.012 i.e. 1/83.3 Km
truncation=0.1 %truncation window data length in % per one i.e 10%
fid=fopen(bouin);
bou=fscanf(fid‘%f‘[numcolumns numrows]); %open the input gravity file read it and stores it in variable ‘bou‘
fclose(fid)
% Calculate mean value of the gravity map
fftbou=fft2(bou); %fft2 computes the 2-D FFT of a 2-D matrix (bou in this case)
meangravity=(fftbou(11)/(numrows*numcolumns)); %the first term of the 2-D fft array divided by the product of the number of rows and columns provides the mean gravity value of the map
% Demean data
disp(‘Data sets demeaned‘) %displays the text ‘Data sets demeaned‘ on the screen
bou=bou-meangravity; %input gravity map is demeaned
%A cosine Tukey window with a truncation of 10% default is applied
wrows = tukeywin(numrowstruncation); %this computes a 1-D cosine Tukey window of the same length as the original matrix input rows and with the truncation defined by the variable ‘truncation‘
wcolumns = tukeywin(numcolumns
相关资源
- Pattern Recognition and Machine Learning(高清
- 均值滤波和FFT频谱分析Matlab代码
- 《MATLAB扩展编程》代码
- 多目标跟踪 论文+代码
- 欧拉放大论文及matlab代码
- 蚁群算法论文+源代码
- GPS信号的码捕获matlab代码.7z
- 一维光子晶体MATLAB仿真代码吸收率折
- matlab读取SP3文件
- 手把手教你学DSP--基于TMS320C55x光盘 含
- MATLAB电机仿真精华50例源代码.zip
- 水和水蒸气热力性质计算程序代码m
- MATLAB电机仿真精华50例源代码269078
- BP神经网络解决手写数字识别问题 m
- 图像的饱和度,亮度,色调的matlab代
- 肤色检测matlab代码
- sutton强化学习随书MATLAB代码
- 三自由度四轮转向汽车操纵动力学模
- 光学4F系统仿真代码
- MATLAB烟花算法源代码
- MATLAB R2007基础教程刘慧颖 编著--源代
- 压缩鬼成像matlab代码
- matlab2007B数模乘公交看奥运_搜索法+
-
瑞利信道simuli
nk仿真模型及源代码 - 压缩感知(Compressed Sensing CS)matlab代
- 基于OFDMA系统的多用户资源分配算法,
- matlab图像归一化代码
- 数字识别matlab源代码
- Allan方差分析MATLAB代码,含MPU6050八小
- 基于FPGA分布式算法FIR滤波器verilog代码
评论
共有 条评论