c_bsegin

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS
COPYRIGHT
AUTHOR

NAME

c_bsegin - function to read a seismic trace

SYNOPSIS

int c_bsegin( int jrec, float s1[], int npts, struct header *hd, FILE *h1 )

DESCRIPTION

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.

SEE ALSO

c_bsegout(3), in_chk(3), cmst(1), c_bsegy(5)

BUGS

No known bugs

COPYRIGHT

Copyright © 2017 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.

AUTHOR

P. Michaels, PE. <pm@cgiss.boisestate.edu>