plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | hadarl/IB_demo-master | IB_iteration_demo.m | .m | IB_demo-master/IB_iteration_demo.m | 2,011 | utf_8 | 219e60938c3aa6fbac615c0a7183f440 | function [pXhat_X, pY_Xhat, L] = IB_iteration_demo(pXY, beta, p0Xhat_X)
yDim = size(pXY,2);
xDim = size(pXY, 1);
pX = sum(pXY,length(size(pXY)));
p0Xhat = pX'*p0Xhat_X';
%Bayes:
p0X_Xhat = (p0Xhat_X.*repmat(pX',[xDim 1])./repmat(p0Xhat',[1 xDim]))';
pY_X = (pXY./repmat(pX,[1 yDim]))';
p0Y_Xhat = pY_X * p0X_Xhat;
... |
github | bBobxx/ConjugateGradient-master | CongjugateGradient.m | .m | ConjugateGradient-master/CongjugateGradient.m | 582 | utf_8 | f4e05309cddec5e95fa83eceacc784c7 | %用共轭梯度法实现的求局部最小值,n为正定矩阵A的阶数,ks为误差最大值,A为正定矩阵,B为行向量。
function CongjugateGradient(n,ks,A,B)
X=randperm(n);
lambda=1;
k=1;
grad=X*A+B;
d=-1.*grad;
while(1)
grad=X*A+B ;
if dot(grad,grad)<=ks^2
fprintf('the optimal X is :')
X
fprintf('the number of iteration:')
k
break
else
if k==1
... |
github | ChamanAgrawal/ESO208-master | romberg.m | .m | ESO208-master/assignment-4/romberg.m | 1,119 | utf_8 | 25de4dae6cf0755414bca10e88571261 | ## Copyright (C) 2017 Chaman Agrawal
##
## This program is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your option) any later version.
##
## This program is dist... |
github | ChamanAgrawal/ESO208-master | f.m | .m | ESO208-master/assignment-1/problem-2/f.m | 982 | utf_8 | d8df1b288b8da8d1da47c7bff07931aa | ## Copyright (C) 2017 Chaman Agrawal
##
## This program is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your option) any later version.
##
## This program is dist... |
github | ChamanAgrawal/ESO208-master | problem-2.m | .m | ESO208-master/assignment-3/problem-2.m | 1,113 | utf_8 | fa620ada9cc88fd354292ba91eaeb666 | clear;
fprintf("Give your no. of data and data points in a file named 'input2.txt'\n");
m= input("Please enter the degree of the polynomial for regression \n");
fid = fopen("input2.txt");
line =fgetl(fid);
n = sscanf(line, '%f ');
B = zeros(n,2);
for i=1:1:n
line = fgetl(fid);
B(i,1:1:2) = sscanf(line, '%f ');
end;... |
github | ChamanAgrawal/ESO208-master | polynomial.m | .m | ESO208-master/assignment-3/polynomial.m | 1,130 | utf_8 | b281a72640042e9ffd5c9e804f677ba9 | ## Copyright (C) 2017 Chaman Agrawal
##
## This program is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your option) any later version.
##
## This program is dist... |
github | Abakumov/MLIB-master | wiggle.m | .m | MLIB-master/FUB/wiggle.m | 17,031 | utf_8 | 229f4636f5facd3d8445ca7d46c27de5 | %WIGGLE Display data as wiggles.
% WIGGLE(C) displays matrix C as wiggles plus filled lobes, which is a
% common display for seismic data or any oscillatory data. A WIGGLE
% display is similar to WATERFALL, except that the Z heights are
% projected onto the horizontal plane, meaning that a WIGGLE display is... |
github | Abakumov/MLIB-master | trace_inverse2D.m | .m | MLIB-master/BASIC/trace_inverse2D.m | 3,641 | utf_8 | 5f52dc6926bf51065e644b828e38524b | function ray = trace_inverse2D(Gold, S, alpha, t0, velmod)
% Ivan Abakumov
% Ray tracer in 2D isotropic medium
% Input: G, S, velmod, alpha
% Output: ray = matrix[5xGnt]
% arrays: [x, z, px, pz, t]
% Method Runge-Kutt, 4th order
%% tmp
% clear all; close al... |
github | Abakumov/MLIB-master | trace_inverse3D.m | .m | MLIB-master/BASIC/trace_inverse3D.m | 3,983 | utf_8 | 0fc867bbf4844a7d0ded0d0cab80a723 | function ray = trace_inverse3D(Gold, S, alpha, beta, t0, velmod)
% Ivan Abakumov
% Ray tracer in 2D isotropic medium
% Input: G, S, velmod, alpha
% Output: ray = matrix[5xGnt]
% arrays: [x, z, px, pz, t]
% Method Runge-Kutt, 4th order
%% tmp
% clear all; cl... |
github | Abakumov/MLIB-master | makeColorMap.m | .m | MLIB-master/BASIC/makeColorMap.m | 2,632 | utf_8 | 1ae86f03780f8e278516898b711ebf2b | function cMap = makeColorMap(varargin)
%% MAKECOLORMAP makes smoothly varying colormaps
% a = makeColorMap(beginColor, middleColor, endColor, numSteps);
% a = makeColorMap(beginColor, endColor, numSteps);
% a = makeColorMap(beginColor, middleColor, endColor);
% a = makeColorMap(beginColor, endColor);
%
% all col... |
github | Abakumov/MLIB-master | exel2d.m | .m | MLIB-master/EL2D/exel2d.m | 4,444 | utf_8 | b220dcb223855035cccf81d9893c933b | function [p, ux, uz, uxx, uzz, uxz, uzx] = exel2d(rho,vp,vs,xs,zs,xl,zl,wf,fr,stype)
nfr = length(fr);
ifr = find(fr>0);
nsh = length(xs);
om = fr(ifr).*(2*pi);
if isvector(xl)
nxl = length(xl);
nzl = length(zl);
p = single(zeros(nfr,nxl,nzl,nsh));
... |
github | Abakumov/MLIB-master | Get_traveltime_2D_exact.m | .m | MLIB-master/CRS/Get_traveltime_2D_exact.m | 1,544 | utf_8 | 8133283d9f09a49df83cd71f9acd1b94 | function [T, Xr] = Get_traveltime_2D_exact(M, H, model)
% Calculate exact traveltime for PS or PP wave
% reflected from the circle by dihotomia
% Abakumov Ivan
% 1st April 2016
% abakumov_ivan@mail.ru
% University of Hamburg
T = zeros(size(M));
Xr = zeros(size(M));
% alpha = model(1); % deg
% Rn... |
github | Abakumov/MLIB-master | pdftops.m | .m | MLIB-master/OTHER/Export_fig/pdftops.m | 6,161 | utf_8 | 5edac4bbbdae30223cb246a4ec7313d6 | function varargout = pdftops(cmd)
%PDFTOPS Calls a local pdftops executable with the input command
%
% Example:
% [status result] = pdftops(cmd)
%
% Attempts to locate a pdftops executable, finally asking the user to
% specify the directory pdftops was installed into. The resulting path is
% stored for futur... |
github | Abakumov/MLIB-master | crop_borders.m | .m | MLIB-master/OTHER/Export_fig/crop_borders.m | 5,133 | utf_8 | b744bf935914cfa6d9ff82140b48291e | function [A, vA, vB, bb_rel] = crop_borders(A, bcol, padding, crop_amounts)
%CROP_BORDERS Crop the borders of an image or stack of images
%
% [B, vA, vB, bb_rel] = crop_borders(A, bcol, [padding])
%
%IN:
% A - HxWxCxN stack of images.
% bcol - Cx1 background colour vector.
% padding - scalar indicating ... |
github | Abakumov/MLIB-master | isolate_axes.m | .m | MLIB-master/OTHER/Export_fig/isolate_axes.m | 4,851 | utf_8 | 611d9727e84ad6ba76dcb3543434d0ce | function fh = isolate_axes(ah, vis)
%ISOLATE_AXES Isolate the specified axes in a figure on their own
%
% Examples:
% fh = isolate_axes(ah)
% fh = isolate_axes(ah, vis)
%
% This function will create a new figure containing the axes/uipanels
% specified, and also their associated legends and colorbars. The o... |
github | Abakumov/MLIB-master | im2gif.m | .m | MLIB-master/OTHER/Export_fig/im2gif.m | 6,769 | utf_8 | 92402e010eade0a1789e9e9ae59c6e07 | %IM2GIF Convert a multiframe image to an animated GIF file
%
% Examples:
% im2gif infile
% im2gif infile outfile
% im2gif(A, outfile)
% im2gif(..., '-nocrop')
% im2gif(..., '-nodither')
% im2gif(..., '-ncolors', n)
% im2gif(..., '-loops', n)
% im2gif(..., '-delay', n)
%
% This function c... |
github | Abakumov/MLIB-master | read_write_entire_textfile.m | .m | MLIB-master/OTHER/Export_fig/read_write_entire_textfile.m | 961 | utf_8 | 775aa1f538c76516c7fb406a4f129320 | %READ_WRITE_ENTIRE_TEXTFILE Read or write a whole text file to/from memory
%
% Read or write an entire text file to/from memory, without leaving the
% file open if an error occurs.
%
% Reading:
% fstrm = read_write_entire_textfile(fname)
% Writing:
% read_write_entire_textfile(fname, fstrm)
%
%IN:
% fn... |
github | Abakumov/MLIB-master | pdf2eps.m | .m | MLIB-master/OTHER/Export_fig/pdf2eps.m | 1,522 | utf_8 | 4c8f0603619234278ed413670d24bdb6 | %PDF2EPS Convert a pdf file to eps format using pdftops
%
% Examples:
% pdf2eps source dest
%
% This function converts a pdf file to eps format.
%
% This function requires that you have pdftops, from the Xpdf suite of
% functions, installed on your system. This can be downloaded from:
% http://www.foolabs.c... |
github | Abakumov/MLIB-master | print2array.m | .m | MLIB-master/OTHER/Export_fig/print2array.m | 10,376 | utf_8 | a2022c32ae3efa6007a326692227bd39 | function [A, bcol] = print2array(fig, res, renderer, gs_options)
%PRINT2ARRAY Exports a figure to an image array
%
% Examples:
% A = print2array
% A = print2array(figure_handle)
% A = print2array(figure_handle, resolution)
% A = print2array(figure_handle, resolution, renderer)
% A = print2array(figur... |
github | Abakumov/MLIB-master | append_pdfs.m | .m | MLIB-master/OTHER/Export_fig/append_pdfs.m | 4,533 | utf_8 | a3791bc3c14293ecf9bf50b8ea394f4b | %APPEND_PDFS Appends/concatenates multiple PDF files
%
% Example:
% append_pdfs(output, input1, input2, ...)
% append_pdfs(output, input_list{:})
% append_pdfs test.pdf temp1.pdf temp2.pdf
%
% This function appends multiple PDF files to an existing PDF file, or
% concatenates them into a PDF file if the o... |
github | Abakumov/MLIB-master | using_hg2.m | .m | MLIB-master/OTHER/Export_fig/using_hg2.m | 1,100 | utf_8 | 47ca10d86740c27b9f6b397373ae16cd | %USING_HG2 Determine if the HG2 graphics engine is used
%
% tf = using_hg2(fig)
%
%IN:
% fig - handle to the figure in question.
%
%OUT:
% tf - boolean indicating whether the HG2 graphics engine is being used
% (true) or not (false).
% 19/06/2015 - Suppress warning in R2015b; cache result for i... |
github | Abakumov/MLIB-master | eps2pdf.m | .m | MLIB-master/OTHER/Export_fig/eps2pdf.m | 9,558 | utf_8 | 9630315aa85db719849672f6f727b68c | function eps2pdf(source, dest, crop, append, gray, quality, gs_options)
%EPS2PDF Convert an eps file to pdf format using ghostscript
%
% Examples:
% eps2pdf source dest
% eps2pdf(source, dest, crop)
% eps2pdf(source, dest, crop, append)
% eps2pdf(source, dest, crop, append, gray)
% eps2pdf(source, de... |
github | Abakumov/MLIB-master | export_fig.m | .m | MLIB-master/OTHER/Export_fig/export_fig.m | 68,032 | utf_8 | 1c37bb2409b76aca9300742b9bbc60bd | function [imageData, alpha] = export_fig(varargin) %#ok<*STRCL1>
%EXPORT_FIG Exports figures in a publication-quality format
%
% Examples:
% imageData = export_fig
% [imageData, alpha] = export_fig
% export_fig filename
% export_fig filename -format1 -format2
% export_fig ... -nocrop
% export_fig ... |
github | Abakumov/MLIB-master | ghostscript.m | .m | MLIB-master/OTHER/Export_fig/ghostscript.m | 7,902 | utf_8 | ff62a40d651197dbea5d3c39998b3bad | function varargout = ghostscript(cmd)
%GHOSTSCRIPT Calls a local GhostScript executable with the input command
%
% Example:
% [status result] = ghostscript(cmd)
%
% Attempts to locate a ghostscript executable, finally asking the user to
% specify the directory ghostcript was installed into. The resulting path... |
github | Abakumov/MLIB-master | fix_lines.m | .m | MLIB-master/OTHER/Export_fig/fix_lines.m | 6,441 | utf_8 | ffda929ebad8144b1e72d528fa5d9460 | %FIX_LINES Improves the line style of eps files generated by print
%
% Examples:
% fix_lines fname
% fix_lines fname fname2
% fstrm_out = fixlines(fstrm_in)
%
% This function improves the style of lines in eps files generated by
% MATLAB's print function, making them more similar to those seen on
% scre... |
github | Abakumov/MLIB-master | WriteSuStructure.m | .m | MLIB-master/OTHER/SegyMAT/WriteSuStructure.m | 1,845 | utf_8 | 3ad8802591e60e4a0ced291ed1d7b543 | % WriteSuStructure : writes data to disk using SU-CWP format
%
% EX
% WriteSuStructure('datacube.segy',SegyHeader,SegyTraceHeaders,Data);
%
% (C) 2001-2004 Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of t... |
github | Abakumov/MLIB-master | ReadSegyTrace.m | .m | MLIB-master/OTHER/SegyMAT/ReadSegyTrace.m | 1,946 | utf_8 | 8785e07381ac8f04a5ad72d035b8a746 | % ReadSegyTrace
function [Data,STH,SegyHeader]=ReadSegyTrace(filename,traces,SegyHeader);
Data=[];
if nargin<3
SegyHeader=GetSegyHeader(filename);
end
if nargin<2
[Data,STH,SegyHeader]=ReadSegyTrace(filename);
end
if (length(traces)>1)
try
Data=zeros(SegyHeader.ns,length(traces));
... |
github | Abakumov/MLIB-master | WriteSegyTraceHeaderValue.m | .m | MLIB-master/OTHER/SegyMAT/WriteSegyTraceHeaderValue.m | 4,867 | utf_8 | a1b22ca5f8710feca8a16d47ace2e64e | % WriteSegyTraceHeaderValue : Write trace header valaue at specific location
%
% Call:
%
% % Update all trace header values starting at position 72, in integer32
% % format, to the value 30
% data=30;
% WriteSegyTraceHeaderValue(filename,data,'pos',72,'precision','int32',);
%
% % Update all trace heade... |
github | Abakumov/MLIB-master | SegymatVersion.m | .m | MLIB-master/OTHER/SegyMAT/SegymatVersion.m | 1,106 | utf_8 | 36b4d931ca57c0f119d4e7b587eea364 | % SegymatVersion - Returns the version and release date
%
% [ver,d]=SegymatVersion;
%
%
% (C) 2001-2011, Thomas Mejer Hansen, thomas.mejer.hansen@gmail.com
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Fre... |
github | Abakumov/MLIB-master | sac2mat.m | .m | MLIB-master/OTHER/SegyMAT/sac2mat.m | 12,807 | utf_8 | 7160f1bde601678e1eb151228f795428 | function [SACdata,SeisData,sacfiles]=sac2mat(varargin)
% [SACdata,SeisData,filenames] = SAC2MAT('file1','file2',..., 'filen',endian )
%
% reads n SAC files file1, file2, filen
% and converts them to matlab
% format. The filenames can contain globbing characters (e.g. * and ?).
% These are expanded and all matching fil... |
github | Abakumov/MLIB-master | CheckSegyTraceHeader.m | .m | MLIB-master/OTHER/SegyMAT/CheckSegyTraceHeader.m | 9,418 | utf_8 | 8a8ac4e5d40f1e562e9650e81b1308ab | % SegyTraceHeader=CheckSegyTraceHeader(SegyTraceHeader);
%
% Checks that all fields of the SegyTraceHeader is set.
% If not, they are initialized.
%
%
% (C) 2004, Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
%
%
% This program is free software; you can redistribute it and/or modify
% it under the... |
github | Abakumov/MLIB-master | ReadSuFast.m | .m | MLIB-master/OTHER/SegyMAT/ReadSuFast.m | 1,615 | utf_8 | b0e4202173b5f1f60be77ae2faa9fb1b | % ReadSuFast
%
% PURPOSE : reads a SEISMIC section i SU format in big endian format,
% strips the headers and returns the field in the matrix seis.
% If nx==0 and nt<>0, nx will be computed
% If nt==0 and nx<>0, nt will be computed
%
% Call : function seis=ReadSuFast(fileid,nt... |
github | Abakumov/MLIB-master | sacpc2mat.m | .m | MLIB-master/OTHER/SegyMAT/sacpc2mat.m | 12,238 | utf_8 | 3de29cc89a474829293e79a5a66c8b4c | function [SACdata,SeisData,sacfiles]=sacpc2mat(varargin)
% [SACdata,SeisData,filenames] = SACPCMAT('file1','file2',..., 'filen' )
%
% reads n SAC files file1, file2, filen (SAC files are assumed to have
% PC byte order) and converts them to matlab
% format. The filenames can contain globbing characters (e.g. * and ?).
... |
github | Abakumov/MLIB-master | GetSegyTraceData.m | .m | MLIB-master/OTHER/SegyMAT/GetSegyTraceData.m | 2,761 | utf_8 | 4782c349465a99ec22ceefb699a275a2 | % GetSegyTraceData : Get Segy trace data if filehandle
%
% Call :
%
% tracedata=GetSegyTraceData(segyid,ns,SegyHeader,SkipData
%
%
% (C) 2001-2004 Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU... |
github | Abakumov/MLIB-master | sacsun2mat.m | .m | MLIB-master/OTHER/SegyMAT/sacsun2mat.m | 12,020 | utf_8 | cc2301b099208443313a2f9b49135cab | function [SACdata,SeisData,sacfiles]=sacsun2mat(varargin)
% [SACdata,SeisData,filenames] = SACSUN2MAT('file1','file2',..., 'filen' )
%
% reads n SAC files file1, file2, filen (SAC files are assumed to have
% SUN byte order) and converts them to matlab
% format. The filenames can contain globbing characters (e.g. * and ... |
github | Abakumov/MLIB-master | ReadSegyFast.m | .m | MLIB-master/OTHER/SegyMAT/ReadSegyFast.m | 7,428 | utf_8 | 2cb9531a3c43ef0198323dcfb2203951 | % ReadSegyFast : Reads a SEG Y rev 1 formatted file, without header values (faster than ReadSegy)
%
% Call :
% [Data]=ReadSegyFast(filename);
% and equivalent to :
% [Data]=ReadSegy(filename);
%
%
% Read only the data of a SegFile - NOT Their headers.
% Much faster than ReadSegy
%
% 'minmax', 'skip'
%
% Implemented ... |
github | Abakumov/MLIB-master | progress_txt.m | .m | MLIB-master/OTHER/SegyMAT/progress_txt.m | 834 | utf_8 | ada36980089eab080dcd9448c144cd14 | % progress_txt : console based progress bar
%
% Ex1 :
% for i=1:10000;
% progress_txt(i,10000,'Ciao');
% end
%
% Ex1 :
%
% for i=1:10;
% for j=1:10;
% for k=1:10;
% progress_txt([i j k],[10 100 1000],'i','j','k');
% end
% end
% end
%
% TMH/2005, thomas@cultpenguin.com
%
function progress_txt(i,... |
github | Abakumov/MLIB-master | Su2Segy.m | .m | MLIB-master/OTHER/SegyMAT/Su2Segy.m | 1,073 | utf_8 | 582a3ccd145296e692e07eeb6aaf25f5 | % SU2Segy : Converts SEGY file to SU format
%
% (C) 2001-2004, Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; eithe... |
github | Abakumov/MLIB-master | WriteSu.m | .m | MLIB-master/OTHER/SegyMAT/WriteSu.m | 3,318 | utf_8 | bcf7d12eaefdc63bbfa4dd8a59600ba6 | % WriteSu : writes data to disk using SEGY REV 2 standard.
%
% EX
% WriteSu('datacube.su',data,'dt',.004,'Inline3D',Inline,'Crossline3D',Crossline,'cdpX',X,'cdpY',Y);
%
% to use a specific SEG revision use :
% WriteSu('test.su',seisdata,'revision',0); % SEG-Y Revision 0
% WriteSu('test.su',seisdata,'revision',1); % SEG... |
github | Abakumov/MLIB-master | GetSegyHeader.m | .m | MLIB-master/OTHER/SegyMAT/GetSegyHeader.m | 7,593 | utf_8 | 9562256cd4ad8b52b8159e7efa06f86a | % GetSegyHeader : Reads the segyheader of a SEGY Y formatted file
%
% Call :
% [SegyHeader]=GetSegyHeader(segyid);
%
% segyid can be a filehandle or a filename
%
%
% (C) 2001-2004 Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
%
% This program is free software; you can redistribute it and/or modify
... |
github | Abakumov/MLIB-master | InitSegyTraceHeader.m | .m | MLIB-master/OTHER/SegyMAT/InitSegyTraceHeader.m | 4,840 | utf_8 | 72537f1c86a8642a67d9ae6b74ec91c9 | % InitSegyTraceHeaders : returns an empty SegyTraceHeader structure
%
% EX:
% SegyTraceHeader=InitSegyTraceHeader(ns,dt);
%
%
% (C) 2001-2004, Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General... |
github | Abakumov/MLIB-master | GetSegyTraceHeader.m | .m | MLIB-master/OTHER/SegyMAT/GetSegyTraceHeader.m | 8,830 | utf_8 | 330af92104ce4a2df035bef2bc573e7f | % GetSegyTraceHeader : Reads a seg y trace, data and header
%
% [SegyTraceHeader]=GetSegyTraceHeader(segyid,TraceStart,DataFormat,ns);
%
%
% (C) 2001-2004 Thomas Mejer Hansen, thomas.mejer.hansen@cultpenguin.com
%
% Revisions:
% 07/2008 Kristian Stormark (<kristian.stormark@gmail.com>) : Reduce the
% number o... |
github | Abakumov/MLIB-master | GetSegyTraceHeaderInfo.m | .m | MLIB-master/OTHER/SegyMAT/GetSegyTraceHeaderInfo.m | 1,279 | utf_8 | 4bb8478252c51abec3bd32e1500d4ab2 | % GetSegyTraceHeaderInfo : Returns a array of a SEGY Y TraceHeader value
%
% Call :
% [value]=GetSegyHeaderInfo(SegyTraceHeaders,header)
%
% header is a header value like 'cdp','dt','TraceNumber'
%
%
% (C) 2001-2004, Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
%
%
% This program is free... |
github | Abakumov/MLIB-master | ebcdic2ascii.m | .m | MLIB-master/OTHER/SegyMAT/ebcdic2ascii.m | 3,933 | utf_8 | 63cbc443cb05b624d00edc3f02b957d5 | % ebcdic2ascii : Converts EBCDIC formatted text to ASCII formatted text
%
% CALL : ascii=ebcdic2ascii(ebcdic);
%
% ebcdic : Array on unsigned integers
% ascii : Array on unsigned integers
%
% (C) 2002-2004, Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
%
% This program is free software; you can redi... |
github | Abakumov/MLIB-master | ReadSegy.m | .m | MLIB-master/OTHER/SegyMAT/ReadSegy.m | 17,806 | utf_8 | a9dd85e406d08c604ae522b9bd99e144 | % ReadSegy : Reads a SEG Y rev 1 formatted file
%
% Call :
% [Data,SegyTraceHeaders,SegyHeader]=ReadSegy(filename);
%
% To read time slice 0.5<t<5 :
% [Data,SegyTraceHeaders,SegyHeader]=ReadSegy(filename,'trange',.5,3);
% To read time trace number 100,110 and 150 :
% [Data,SegyTraceHeaders,SegyHeader]=ReadSegy(filename... |
github | Abakumov/MLIB-master | MergeSegy.m | .m | MLIB-master/OTHER/SegyMAT/MergeSegy.m | 1,261 | utf_8 | 6b32ecfc683f3af7b63ec0340bccfb0f | % MergeSegy : Merge multiple SEGY files
%
% Example :
% MergeSegy('*.sgy','merge.sgy')
%
% f{1}='file1.sgy';
% f{2}='file2.sgy';
% f{3}='file3.sgy';
% MergeSegy(f,'merge.sgy')
%
%
% Note: All imput segy files must have the same constant trace length
% The SEGY header of the merged SEGY file will be... |
github | Abakumov/MLIB-master | WriteSegyStructure.m | .m | MLIB-master/OTHER/SegyMAT/WriteSegyStructure.m | 3,137 | utf_8 | 4df12fa8cbb0f2891b7fd5c2561cc280 | % WriteSegyStructure : writes data to disk using SEGY REV 0 and 1 standards.
%
% EX
% WriteSegyStructure('datacube.segy',SegyHeader,SegyTraceHeaders,Data);
%
% To force the use of SEG Y revision 0
% WriteSegyStructure('datacube.segy',SegyHeader,SegyTraceHeaders,Data,'revision',0);
% To force the use of SEG Y revision 1... |
github | Abakumov/MLIB-master | PutSegyHeader.m | .m | MLIB-master/OTHER/SegyMAT/PutSegyHeader.m | 9,215 | utf_8 | 8f388ebf1ecaf07cf9c4fb98057dc2b7 | % PutSegyHeader : Writes SEG-Y header to disk.
% PutSegyHeader(segyid,SegyHeader)
%
% (C) 2001-2004, Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the F... |
github | Abakumov/MLIB-master | SegyMAT_GAIN.m | .m | MLIB-master/OTHER/SegyMAT/SegyMAT_GAIN.m | 2,629 | utf_8 | 3c9eb45cfb08e9989024aee07fc78052 | % SegyMAT_GAIN : Gain plugin for SegyMAT
%
% [Data,SegyTraceHeaders,SegyHeader]=SegyMAT_GAIN(Data,SegyTraceHeaders,SegyHeader,varargin);
%
% ex. AGC using AGC window of 100 ms :
% [Data]=SegyMAT_GAIN(Data,SegyTraceHeaders,SegyHeader,'agc',.1);
% ex. apply t^(pow), pow=2
% [Data]=SegyMAT_GAIN(Data,SegyTraceHeaders,SegyH... |
github | Abakumov/MLIB-master | WriteSegy.m | .m | MLIB-master/OTHER/SegyMAT/WriteSegy.m | 6,194 | utf_8 | 228dcbbe6b1f9db73888e310daa150ea | % WriteSegy : writes data to disk using SEGY REV 1 standard.
%
% EX
% WriteSegy('datacube.segy',data,'dt',.004,'Inline3D',Inline,'Crossline3D',Crossline,'cdpX',X,'cdpY',Y);
%
% to use a specific SEG revision use :
% WriteSegy('test.segy',seisdata,'revision',0); % SEG-Y Revision 0
% WriteSegy('test.segy',seisdata,'revis... |
github | Abakumov/MLIB-master | SegymatRevision.m | .m | MLIB-master/OTHER/SegyMAT/SegymatRevision.m | 1,329 | utf_8 | 23a4b2bcd7aa58b83f3ccc8dde4a5a46 | % SegymatRevision - Returns the revision history
%
% Call : [Revision]=SegymatRevision
%
%
% (C) 2001-2011, Thomas Mejer Hansen, thomas.mejer.hansen@gmail.com
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the ... |
github | Abakumov/MLIB-master | isoctave.m | .m | MLIB-master/OTHER/SegyMAT/isoctave.m | 117 | utf_8 | 0a3b59cac8a9b483e95a3085be4387ab | % isoctave : checks of octave
function r=isoctave
v=version;
if (str2num(v(1)))>4
r=0;
else
r=1;
end
|
github | Abakumov/MLIB-master | ascii2ebcdic.m | .m | MLIB-master/OTHER/SegyMAT/ascii2ebcdic.m | 3,940 | utf_8 | 80500db27103dcf156237c55d951a2fa | % ascii2ebcdic : Converts ASCII formatted text to EBCDIC formatted text
%
% CALL : ebcdic=ascii2ebcdic(ascii);
%
% ascii : Array on unsigned integers
% ebcdic : Array on unsigned integers
%
% (C) 2002-2009, Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas.mejer.hansen@gmail.com
%
%
% This program is free software; you c... |
github | Abakumov/MLIB-master | ReadSegyHeader.m | .m | MLIB-master/OTHER/SegyMAT/ReadSegyHeader.m | 5,838 | utf_8 | 8cf659b69eb0324bdf8f633c00465167 | % ReadSegyHeader : Reads a SEG Y Binary Header
%
% Call :
% [SegyHeader]=ReadSegyHeader(filename);
%
% To read using little endian :
% [SegyHeader]=ReadSegyHeader(filename,'endian','l');
%
% (C) 2001-2004, Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
% This program is free software; you can redistri... |
github | Abakumov/MLIB-master | ReadSegyTraceHeaderValue.m | .m | MLIB-master/OTHER/SegyMAT/ReadSegyTraceHeaderValue.m | 4,675 | utf_8 | 8f311e49d4b6b1593782814ec539cf0b | % ReadSegyTraceHeaderValue : Read a spedicifc trace header value
%
% Call:
% % By Name
% cdp=ReadSegyTraceHeaderValue(filename,'key','cdp');
% SourceX=ReadSegyTraceHeaderValue(filename,'key','SourceX');
% SourceY=ReadSegyTraceHeaderValue(filename,'key','SourceY');
%
% % By location in Trace Header
% S... |
github | Abakumov/MLIB-master | wiggle.m | .m | MLIB-master/OTHER/SegyMAT/wiggle.m | 6,108 | utf_8 | fa997a889c0e07b3fa641caad52d5f57 | % wiggle : plot wiggle/VA/image plot
%
% Call
% wiggle(Data); % wiggle plot
% wiggle(Data,scale); % scaled wiggle plot
% wiggle(x,t,Data); % wiggle plt
% wiggle(x,t,Data,'VA') % variable Area (pos->black;neg->transp)
% wiggle(x,t,Data,'VA2') % variable Area (pos->black;neg->red)
% wiggle(x,t,D... |
github | Abakumov/MLIB-master | PutSegyTrace.m | .m | MLIB-master/OTHER/SegyMAT/PutSegyTrace.m | 9,299 | utf_8 | 1fbee6bb87d268064255735d9f45c572 | % PutSegyTrace(segyid,tracedata,SegyTraceHeader,TraceStart);
%
% Write a SegyTrace to a filehandle 'segyid'
%
% (C) 2001-2004, Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public Lic... |
github | Abakumov/MLIB-master | ReadSegyConstantTraceLength.m | .m | MLIB-master/OTHER/SegyMAT/ReadSegyConstantTraceLength.m | 17,042 | utf_8 | 2b6c828210cef02c1b87939f60a737dd | % ReadSegyConstantTraceLength : Reads a SEG Y rev 0/1 formatted file
% Assumes CONSTANT TRACE LENGTH
% which allows much faster code
%
% Call :
% [Data,SegyTraceHeaders,SegyHeader]=ReadSegyConstantTraceLength(filename);
%
% To read time slice 0.5<t<5 :
% [Data... |
github | Abakumov/MLIB-master | ReadSu.m | .m | MLIB-master/OTHER/SegyMAT/ReadSu.m | 9,157 | utf_8 | a95043833515916c3ebcc28defa91252 | % ReadSu : Reads a SU formatted file (Seismic Unix)
%
% Call :
% [Data,SuTraceHeaders,SuHeader]=ReadSu(filename);
%
% To read in big endian format (default):
% [Data,SuTraceHeaders,SuHeader]=ReadSu(filename,'endian','b');
% To read in little endian format :
% [Data,SuTraceHeaders,SuHeader]=ReadSu(filename,'endian','l')... |
github | Abakumov/MLIB-master | Sac2Segy.m | .m | MLIB-master/OTHER/SegyMAT/Sac2Segy.m | 7,218 | utf_8 | 90b6976dc23355ecd2eecf8911bf0bba | % Sac2Segy : Reads SAC formatted data into a SegyMAT (SGY) structure
%
% CALL :
% [Data,SegyTraceHeader,SegyHeader]=Sac2Segy(files_in,segyfile_out,varargin)
%
% files_in : Either a single filename or a strcture of filenames
% files_in='d1.SAC';
% or
% files_in{1}='d1.SAC';
% ... |
github | Abakumov/MLIB-master | Segy2Su.m | .m | MLIB-master/OTHER/SegyMAT/Segy2Su.m | 1,324 | utf_8 | 98fec0641aadef465f1e04c141ade5a8 | % Segy2Su : Converts SEGY file to SU format
%
% Call : Segy2Su(filename,ReadSegyOption)
% Replaces the filename suffix to '.su';
% 'ReadSegyOptions' are the same as to 'ReadSegy'
%
% See also : ReadSegy
%
%
%
% (C) 2001,2002 Thomas Mejer Hansen, thomas@cultpenguin.com
%
% This program is free ... |
github | Abakumov/MLIB-master | TraceHeaderDef.m | .m | MLIB-master/OTHER/SegyMAT/TraceHeaderDef.m | 6,916 | utf_8 | 52f7626e5608eec64237078b2941a280 | % TraceHeaderDef : Defines names, position, and precision for Trace Headers
%
% % To get a Matlab structure with trace header definitions call:
% STH==TraceHeaderDef;
% % To get a list fo trace header definision listed on the screen call:
% STH==TraceHeaderDef(1)
%
% See also: ReadSegyTraceHeaderValue, WriteSegyTraceHe... |
github | Abakumov/MLIB-master | pick_line.m | .m | MLIB-master/OTHER/SegyMAT/pick_line.m | 1,114 | utf_8 | ce24743d8bf8948986ac55954d092e10 | % pick_line : pick a line from a figure;
%
%
% Based on doc(ginput);
function [xy,xys]=pick_line(name,LineWidth,LineColor);
if nargin<1, name='line';end
if nargin<2, LineWidth=3;end
if nargin<3, LineColor=[1 1 0];end
hold on
% Initially, the list of points is empty.
xy = [];
n = 0;
% Loop, picking up the points.
di... |
github | Abakumov/MLIB-master | SegymatVerbose.m | .m | MLIB-master/OTHER/SegyMAT/SegymatVerbose.m | 1,283 | utf_8 | 91cbd5d1f9f24c536b01898b26f34abc | % SegymatVerbose : Writes out verbose information to the screen
%
%
% Call :
% SegymatVerbose(text,verboselevel)
% prints out 'text' to screen if verboselevel is higher than threshold
% set in m-file.
%
%
% (C) 2001-2004, Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
% This program is free sof... |
github | Abakumov/MLIB-master | GetSegyTrace.m | .m | MLIB-master/OTHER/SegyMAT/GetSegyTrace.m | 1,451 | utf_8 | 608945ce44ea32a93854854871a745d6 | % GetSegyTrace : Reads a seg y trace, data and header
%
% [SegyTraceHeader,SegyData]=GetSegyTrace(segyid,TraceStart,DataFormat,ns);
%
%
% (C) 2001-2004 Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
%
% This program is free software; you can redistribute it and/or modify
% it under the te... |
github | Abakumov/MLIB-master | GetSegyHeaderBasics.m | .m | MLIB-master/OTHER/SegyMAT/GetSegyHeaderBasics.m | 10,069 | utf_8 | a67e7faf59ac5e11643ce57a27675272 | % GetSegyHeaderBasics : Default Segy Header Header settings
%
% Call :
% Rev=GetSegyHeaderBasics
%
%
%
% (C) 2001-2004, Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public Lic... |
github | Abakumov/MLIB-master | GUIEditSegyHeader.m | .m | MLIB-master/OTHER/SegyMAT/GUI/GUIEditSegyHeader.m | 13,711 | utf_8 | c6e9a7b721d99210fff0e0767abf22eb | function varargout = GUIEditSegyHeader(varargin)
% GUIEditSegyHeader : GUI for editing the SGY header
%
% Call :
% SH=GUIEditSegyHeader(SH);
%
%
% Example :
% [Data,STH,SH]=ReadSegy('841_m.sgy');
% SH=GUIEditSegyHeader(SH);
%
%
% GUIEDITSEGYHEADER Application M-file for GUIEditSegyTraceHeader.fig
% FIG = GU... |
github | Abakumov/MLIB-master | GUIPlotXY.m | .m | MLIB-master/OTHER/SegyMAT/GUI/GUIPlotXY.m | 4,482 | utf_8 | 83486fe1795ccbd4e6bdb2cf2db3d78b | function varargout = GUIEditSegyTraceHeader(varargin)
% GUIPlotXY Application M-file for GUIEditSegyTraceHeader.fig
% FIG = GUIPLOTXY launch GUIEditSegyTraceHeader GUI.
% GUIPLOTXY('callback_name', ...) invoke the named callback.
%
% OBSOLETE ??
%
% Last Modified by GUIDE v2.0 16-Jun-2002 11:41:23
if (narg... |
github | Abakumov/MLIB-master | GUIEditSegyTraceHeader.m | .m | MLIB-master/OTHER/SegyMAT/GUI/GUIEditSegyTraceHeader.m | 12,255 | utf_8 | f0b3e4ff50241e679450646e2dfa4639 | function varargout = GUIEditSegyTraceHeader(varargin)
% GUIEditSegyTraceHeader Application M-file for GUIEditSegyTraceHeader.fig
% FIG = GUIEDITSEGYTRACEHEADER launch GUIEditSegyTraceHeader GUI.
% GUIEDITSEGYTRACEHEADER('callback_name', ...) invoke the named callback.
% Last Modified by GUIDE v2.0 05-Jun-2002 09... |
github | Abakumov/MLIB-master | DIAOpenSEGY.m | .m | MLIB-master/OTHER/SegyMAT/GUI/DIAOpenSEGY.m | 10,847 | utf_8 | c3f2f42817950cc5a4526966e9a51dd0 | function varargout = DIAOpenSEGY(varargin)
% DIAOPENSEGY Application M-file for DIAOpenSEGY.fig
% FIG = DIAOPENSEGY launch DIAOpenSEGY GUI.
% DIAOPENSEGY('callback_name', ...) invoke the named callback.
% Last Modified by GUIDE v2.0 12-Jun-2002 10:25:58
if ((nargin == 0)|isstruct(varargin{1})) % LAUNCH GUI
f... |
github | Abakumov/MLIB-master | GUIEditTextualFileHeader.m | .m | MLIB-master/OTHER/SegyMAT/GUI/GUIEditTextualFileHeader.m | 9,895 | utf_8 | 8519ae23ae7d6817ea863c7c0fd7c059 | function varargout = GUIEditTextualFileHeader(varargin)
% GUIEditTextualFileHeader : GUI for editing the SGY header
%
% Call :
% SH=GUIEditTextualFileHeader(SH);
%
%
% Example :
% [Data,STH,SH]=ReadSegy('841_m.sgy');
% SH=GUIEditTextualFileHeader(SH);
%
%
% GUIEDITTEXTUALFILEHEADER M-file for GUIEditTextualFil... |
github | Abakumov/MLIB-master | segymat.m | .m | MLIB-master/OTHER/SegyMAT/GUI/segymat.m | 33,348 | utf_8 | b863356b762b97f58d443cb5a7664805 | function varargout = segymat(varargin)
% segymat : Garphical User Interface for SegyMAT
%
% (C) 2001-2004 Thomas Mejer Hansen, tmh@gfy.ku.dk/thomas@cultpenguin.com
%
% SEGYMAT M-file for segymat.fig
% SEGYMAT, by itself, creates a new SEGYMAT or raises the existing
% singleton*.
%
% H = SEGYMAT retu... |
github | Abakumov/MLIB-master | DIAAboutSegymat.m | .m | MLIB-master/OTHER/SegyMAT/GUI/DIAAboutSegymat.m | 3,129 | utf_8 | 31dd15d94b44aaf08dbaaa262c7a3a85 | function varargout = DIAAboutSegymat(varargin)
% DIAAboutSegymat Application M-file for DIAAboutSegymat.fig
% FIG = DIAABOUTSEGYMAT launch DIAAboutSegymat GUI.
% DIAABOUTSEGYMAT('callback_name', ...) invoke the named callback.
% Last Modified by GUIDE v2.0 06-May-2002 10:38:58
if nargin == 0 % LAUNCH GUI
fig... |
github | Abakumov/MLIB-master | myReadSegy.m | .m | MLIB-master/OTHER/ReadSegy/myReadSegy.m | 17,770 | utf_8 | 98d57dbfeab01b5e94ac631740299bea | % ReadSegy : Reads a SEG Y rev 1 formatted file
%
% Call :
% [Data,SegyTraceHeaders,SegyHeader]=ReadSegy(filename);
%
% To read time slice 0.5<t<5 :
% [Data,SegyTraceHeaders,SegyHeader]=ReadSegy(filename,'trange',.5,3);
% To read time trace number 100,110 and 150 :
% [Data,SegyTraceHeaders,SegyHeader]=ReadSegy(filename... |
github | Abakumov/MLIB-master | seg2_read.m | .m | MLIB-master/OTHER/SEG2/seg2_read.m | 5,996 | utf_8 | c5db925c2bba5700b2d15a7c94ef1a94 | % SEG2_READ - Read in a file in SEG-2 format
% Version 0.9
% Usage:
%
% [FDStrings,nTraces,TDStrings,TraceData]=seg2_read(fname)
% read data and header from file 'fname'.
%
% Outputs:
% FDStrings - cell array of strings in the File Description Header
% nTraces - number of traces read
% TDStrings -... |
github | Abakumov/MLIB-master | freezeColors.m | .m | MLIB-master/OTHER/Unfreeze_Colors/freezeColors/freezeColors.m | 9,785 | utf_8 | c7342ab3baeb27df3ec6aa65d728966b | function freezeColors(varargin)
% freezeColors Lock colors of plot, enabling multiple colormaps per figure. (v2.3)
%
% Problem: There is only one colormap per figure. This function provides
% an easy solution when plots using different colomaps are desired
% in the same figure.
%
% freezeColors freeze... |
github | Abakumov/MLIB-master | l_resample.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/l_resample.m | 5,775 | utf_8 | da3dc258340e425dce17483935fe29d5 | function logout=l_resample(wlog,step,varargin)
% Function resamples all curves of a log. Gaps in log curves (NaNs) are
% interpolated prior to resampling (l_fill_gaps). Gaps are filled even
% if "step" is equal to wlog.step.
% Leading and/or trailing null values are ignored.
%
% Written by: E. Rietsch:
% Last updated... |
github | Abakumov/MLIB-master | write_las_file.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/write_las_file.m | 12,646 | utf_8 | d6740bc80ea29cd417d21f55c444ba91 | function write_las_file(wlog,filename,iprint)
% Function creates a disk file in LAS (Log ASCII Standard)format,
% Version 2.0, as specified by the Canadian Well Logging Society
%
% Written by: E. Rietsch: February 20, 2000
% Last updated: October 10, 2007: Use function "open_file" to handle file initiation
%
% w... |
github | Abakumov/MLIB-master | s_history.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_history.m | 4,674 | utf_8 | 505210de012d4898b0687b47b8394b4b | function seismic=s_history(seismic,action,parameters)
% Function operates on the history field of a seismic structure; displays data set history
% if no output argument is given
%
% Written by: E. Rietsch: March, 2001
% Last updated: November 29, 2006: handle structure vectors
%
% seismic=s_history(seismic... |
github | Abakumov/MLIB-master | s_principal_components.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_principal_components.m | 9,184 | utf_8 | 45ea0d6d1a65fda0f2d42cb5b619108e | function [pc,aux]=s_principal_components(seismic,varargin)
% Perform principal-component analysis of the input dataset.
% The output can be:
% A. The input data represented by any combination of the principal
% components --- usually the first few: {'output','seismic'}
% B. One or more of the principal components ... |
github | Abakumov/MLIB-master | showcell.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/showcell.m | 15,708 | utf_8 | 081f227ddee7a4c67b9b8afd95b4f5c7 | function showcell(varargin)
%SHOWCELL Displays cell array with long strings in the command window.
% SHOWCELL(A) displays the contents of a cell array A in the command
% window. It will format the display so that long strings will display
% appropriately. A can be a cell array of numbers, strings, and/or ... |
github | Abakumov/MLIB-master | s_align.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_align.m | 14,853 | utf_8 | 60bcd8ccf2428d666af347c69c483aeb | function seismic=s_align(seismic,varargin)
% Function aligns (flattens) a user-specified event on seismic traces.
% The shifts required for alignment as well as the correlation coefficient can
% be stored in headers.
%
% Written by: E. Rietsch: February 19, 2001
% Last updated: February 13, 2008: Use "isnull" to check... |
github | Abakumov/MLIB-master | show.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/show.m | 1,134 | utf_8 | 968e65cbcf04f96c97d46e13ea628057 | function show(var)
% Function displays numeric variables, structures, and cell arrays in a
% more general form than provided by Matlab and uses "disp" for all other
% variables
%
% Written by: E. Rietsch: January 22, 2006
% Last updated: March 6, 2006: cosmetics
%
% show(var)
% INPUT
% var variable t... |
github | Abakumov/MLIB-master | s_fft.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_fft.m | 5,226 | utf_8 | 5f1dea75a6d1eedc2f1c8c61d18c4af1 | function ftseismic=s_fft(seismic,varargin)
% Compute the amplitude spectrum or the Fourier transform
% of the traces of the seismic input data set(s).
% The phase is corrected so that the Fourier transform honors time zero; this
% means that a seismic trace symmetric about time zero will have a real
% Fourier transform... |
github | Abakumov/MLIB-master | s_gain.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_gain.m | 5,350 | utf_8 | f222c041256013eb3a17b6eda3f10b71 | function [gseismic,tgain]=s_gain(seismic,varargin)
% Function computes and applies a gain function to the input data set and
% outputs the gained data set as well as the gain function (if two output
% data sets are specified)
%
% Written by: E. Rietsch: July 14, 2000
% Last updated: October 2, 2001: Handle NaNs in dat... |
github | Abakumov/MLIB-master | read_segy_file_legacy.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/read_segy_file_legacy.m | 29,371 | utf_8 | 729705da2c0c1ef1a6307004d5070f98 | function [seismic,ebcdic_header,binary_header]=read_segy_file_legacy(filename,varargin)
% Function reads a SEG-Y file and outputs a seismic structure
%
% Written by: E. Rietsch: March 5, 2000
% Last updated: April 6, 2007: fix bug in reading of user-specified headers
%
% [seismic,ebcdic_header,binary_header... |
github | Abakumov/MLIB-master | s_trace_numbers.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_trace_numbers.m | 5,359 | utf_8 | c33260b8dcdf5c6d0a821145c65e76f8 | function [index,ierr]=s_trace_numbers(seismic,string,varargin)
% Function outputs trace numbers of seismic input traces based on
% selected header values.
% See also: "s_select"
%
% Written by: E. Rietsch: April 15, 2000
% Last updated: July 23, Revamped code
%
% [index,ierr]=s_trace_numbers(seismic,string,va... |
github | Abakumov/MLIB-master | l_regression.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/l_regression.m | 11,715 | utf_8 | f87084a49b48291ff434624c4f75c782 | function [wlog,aux]=l_regression(wlog,expression,varargin)
% Function creates new log curve using the mathematical expression contained in the
% third input argument. Null values (NaNs) in the log curves are ignored when computing
% the regression parameters. Requires the Optimization Toolbox
%
% Written by E. Rietsch,... |
github | Abakumov/MLIB-master | s_wplot.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_wplot.m | 25,635 | utf_8 | b3fbf08aebc816369743a60a91d33bb4 | function aux=s_wplot(seismic,varargin)
% Plot seismic data in wiggle-trace, variable-area form or as spikes at the
% sample times (the latter option is meant for the display of reflection coefficients)
%
% See also: s_cplot, s_plot, s_compare
%
% Written by: E. Rietsch: April 15, 2000
% Last updated: July 15, 2009: Rep... |
github | Abakumov/MLIB-master | s_iplot.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_iplot.m | 20,350 | utf_8 | db452301f490276da1ebdf4d049ffe54 | function aux=s_iplot(seismic,varargin)
% Function plots seismic data in wiggle-trace form.
% By default, positive deflections are filled black.
%
% Written by: E. Rietsch: April 15, 2000
% Last updated: March 16, 2007: set default for "scale" to 'no'; white background
%
% aux=s_iplot(seismic,varargin)
% IN... |
github | Abakumov/MLIB-master | s_spectrum.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_spectrum.m | 18,594 | utf_8 | 85debd8ad7c3e2bc8d4de6d280a0dafc | function aux=s_spectrum(varargin)
% Display the spectrum of one or more seismic input data sets.
% Null values in any data set are replaced by zeros. A maximum of 100 curves
% can be displayed.
%
% Written by: E. Rietsch: July 3, 2000 (original version)
% Last updated: April 15, 2008: Add option to apply a taper wind... |
github | Abakumov/MLIB-master | s_stack_with_deviation.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_stack_with_deviation.m | 4,480 | utf_8 | a2b8c62be61146570e11ef682cc73c71 | function [stack,deviation,aux]=s_stack_with_deviation(seismic,varargin)
% Compute stack and the deviation of each input trace from the stack.
% Thus "deviation" has as many traces as "seismic"; each trace is the
% difference between the corresponding trace of seismic and the stacked
% trace associated with it.
% A s... |
github | Abakumov/MLIB-master | l_select.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/l_select.m | 5,255 | utf_8 | b3057b69e9d230312fddf623d8ea6665 | function wlog=l_select(wlog,varargin)
% Function retrieves subset of well log from a log structure.
% If wlog is a structure vector the same subset is selected from each well log.
% An error message is printed if a column mnemonic requested is not found.
% Column mnemonics are not case sensitive.
%
% Written by: E. R... |
github | Abakumov/MLIB-master | ds_unit_conversion.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/ds_unit_conversion.m | 13,271 | utf_8 | 89360b07c8bfcd0d3b00d454f1b8ac59 | function dataset=ds_unit_conversion(dataset,varargin)
% Function converts units of measurements of columns/curves/headers/panels and
% parameters in a dataset structure.
% Datasets supported are: seismic data, well logs, tables,and pseudo-wells.
% Units of measurement for the time/depth axis are also modified for we... |
github | Abakumov/MLIB-master | s_select.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_select.m | 10,370 | utf_8 | 2b25c7e8494ba55b45d88bd6bdf29833 | function seisout=s_select(seismic,varargin)
% Function extracts subset of seismic input traces. An option also allows changing the time
% range of the output data. If seisout.first < seismic.first and/or seisout.last > seismic.last
% then the trace samples undefined by the input data are set to the null value.
% See al... |
github | Abakumov/MLIB-master | l_fill_gaps.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/l_fill_gaps.m | 2,518 | utf_8 | fdb2c3c42e285b3ba382f597bbf04495 | function wlog=l_fill_gaps(wlog,mnemonics)
% Function interpolates across gaps in the log curves (null values) of all
% curves specified by an optional list of mnemonics. The function assumes
% that null values are represented by NaNs.
%
% Date April 29, 2000; written by E. Rietsch
% Last update: June 8, 2004: use "w... |
github | Abakumov/MLIB-master | l_rm_nulls.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/l_rm_nulls.m | 3,849 | utf_8 | e0e05817bcc9822f431af8872b5b7a58 | function wlog=l_rm_nulls(wlog,action,mnemonics)
% Function removes leading and trailing rows from log curves if they contain
% null values; with option "anywhere", every row with a NaN in one of the
% listed curves is removed.
% Null values bracketed by non-null values may be retained. The function assumes
% that nul... |
github | Abakumov/MLIB-master | s_header_plot.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_header_plot.m | 7,177 | utf_8 | 19eaab2240f0108d28d01b9cbd45362d | function aux=s_header_plot(seismic,headers,varargin)
% Function plots values of seismic headers
%
% Written by: E. Rietsch: July 22, 2000
% Last updated: January 30, 2007: add cursor tracking
%
% aux=s_header_plot(seismic,headers,varargin)
% INPUT
% seismic seismic structure whose headers should be plotted
... |
github | Abakumov/MLIB-master | s_create_wavelet.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_create_wavelet.m | 11,528 | utf_8 | b107a72e1ba7e62f5c7bb999abb45eba | function wav=s_create_wavelet(varargin)
% Function computes wavelet and stores it in a seismic data structure; The
% wavelet is scaled in such a way that its maximum amplitude (maximum of the
% instantaneous amplitude in case of a non-zero-phase wavelet) is equal to 1.
%
% See also: s_create_spike
%
% Written by: E. Ri... |
github | Abakumov/MLIB-master | s_seismic2wavelet.m | .m | MLIB-master/OTHER/SeisLab_10.0301/S4M/Geophysics_3.0/s_seismic2wavelet.m | 8,709 | utf_8 | ddc4f9f4a651e2e8c10f2d884d947769 | function wavelet=s_seismic2wavelet(seismic,varargin)
% Function computes wavelet with about the spectrum expected on the basis of the
% seismic data. The wavelet can be minimum-phase, zero-phase, or
% maximum-phase. The amplitude is based on the windowed autocorrelation of the
% seismic data.
%
% Written by: E. Rietsch... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.