/*--------------------------------------------------------------------
* $Id: spectrum1d.c,v 1.3.4.3 2002/02/27 17:58:55 pwessel Exp $
*
* Copyright (c) 1991-2002 by P. Wessel and W. H. F. Smith
* See COPYING file for copying and redistribution conditions.
*
* 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; version 2 of the License.
*
* 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.
*
* Contact info: gmt.soest.hawaii.edu
*--------------------------------------------------------------------*/
/*
*
* Compute auto and cross spectra using Welch's method of
* multiple overlapped windows. Find 1 standard error bars
* following expressions in Bendat & Piersol.
*
* -D
set delta_time, the sampling of the timeseries.
* [Default = 1.0]
*
* -N name stem for filenames. Files will be
* created called .xpower, etc.
* [Default = "spectrum"]
*
* -S give an integer radix 2 window width.
* Total timeseries will be split into pieces of
* length . Std errors in spectra are
* approximately 1/sqrt(n_data/segment_size).
*
* -V Verbose operation; write info to stderr.
* [Default is silent]
*
* -W write Wavelength in col 1 instead of frequency.
* [Default writes frequency in cycles/dt_units]
*
* -C