?? plot_sgyr.m
字號(hào):
function plot_sgyr(filename)
%PLOT_SGY Plot sgy data with reel
%
%filename:實(shí)際上是包括路徑和文件名的字符串
%example:plot_sgyr('d:\data\wyt_pc.sgy');
%From CUP
%Author: geoer,2007-7-12.11-12
FID = fopen(filename,'r','n');
status = fseek(FID,3714,'bof');
ns = fread(FID,1,'short');%得到每道采樣點(diǎn)數(shù)
total=60+ns;%每道所占四字節(jié)個(gè)數(shù)
frewind(FID);
fseek(FID, 0, 'eof');
position=ftell(FID);
trace_num=(position-3600)/(total*4);
frewind(FID);
for k=1:trace_num
position=3600+(total*(k-1)+60)*4;
status=fseek(FID,position,'bof');
if status==0
D(:,k)=fread(FID,ns,'float');
else
return;
end
end
fclose(FID);
wigb(D);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -