c_boxit

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS
COPYRIGHT
AUTHOR

NAME

c_boxit - function to to apply a box car smoother to a signal

SYNOPSIS

int c_boxit( int npts, int iwide, int isign, int ntimes, float s1[], float s2[] )

DESCRIPTION

Basic Seismic Utilities (BSU) function applies a box car smoother to a seismic trace. The filter can be be a simple smoother, or one of two possible high-pass filter options are also available.
C-language version
.

Arguments
npts (int)

Number of samples in a trace

iwide (int)

Width of box car in samples.

isign (int)

Switch to select smoother (low-pass) or high-pass filter.

-1=low-pass smoother (box car)

0=high-pass (1-sinc**ntimes)

+1=high-pass (1-sinc)**ntimes
ntimes (int)

Number of times to iteratively apply the filter.

s1[] (float)

Input signal

s2[] (float)

Filtered output signal

NOTE:
The fortran 77 equivalent of this subroutine is boxit.f

SEE ALSO

boxit(3), bagc(1)

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>