c_bsegin - function to read a seismic trace
int c_bsegin( int jrec, float s1[], int npts, struct header *hd, FILE *h1 )
Basic Seismic
Utilities (BSU) function which reads a seismic trace.
Allocation of memory for s1 and initial opening of file done
in calling function.
C-language version.
Arguments
jrec (int)
Record number to read
s1 (float)
Array in which samples to be stored.
npts (int)
Number of samples in a trace
*hd (struct hd)
Pointer to bsegy seismic header.
*h1 (FILE)
Pointer to file being read
NOTE:
Trace header data are defined as a "header
structure" in the bsegy.h include file. For an example
on how to use this function, see demonstration master
program, cmst.c.
c_bsegout(3), in_chk(3), cmst(1), c_bsegy(5)
No known bugs
Copyright © 2024 by Paul Michaels
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 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
P. Michaels, PE. <[email protected]>