LAL  7.5.0.1-b72065a
StreamSeriesInputTest.c File Reference

Reads a time or frequency series from a file, and writes it to another file. More...

Detailed Description

Reads a time or frequency series from a file, and writes it to another file.

Author
Creighton, T. D.

Usage

StreamSeriesInputTest [-o outfile] [-i infile stype dtype] [-d debuglevel]

Description

This test program parses data from an input file or from stdin, using the routines in StreamSeriesInput.c, and possibly generating output using the routines in StreamSeriesOutput.c. The following option flags are accepted:

  • [-o] Writes the output to outfile. If outfile is given as stdout, the data is written to standard output (not to a file named stdout). If the -o flag is not given, the input routines are exercised, but no output is written.
  • [-i] Specifies the input file name infile, series type stype, and base datatype dtype. Series type is a single character: either t (time series), v (time vector series), a (time array series), or f (frequency series). Base datatype may be i2 (INT2), i4 (INT4), i8 (INT8), u2 (UINT2), u4 (UINT4), u8 (UINT8), s (REAL4), d (REAL8), c (COMPLEX8), or z (COMPLEX16). If the -i flag is not given, -i StreamSeriesInput.dat f s is assumed (this file is provided with the distribution so that running the code with no arguments, \'a la make check, will perform a nontrivial test of the algorithm).
  • [-d] Sets the debug level to debuglevel; if absent, -d 0 is assumed.

See the documentation in Module StreamSeriesInput.c and Module StreamSeriesOutput.c for discussion of the input and output data file formats.

Definition in file StreamSeriesInputTest.c.

Go to the source code of this file.

Macros

Error Codes
#define STREAMSERIESINPUTTESTC_ENORM   0
 Normal exit. More...
 
#define STREAMSERIESINPUTTESTC_ESUB   1
 Subroutine failed. More...
 
#define STREAMSERIESINPUTTESTC_EARG   2
 Error parsing arguments. More...
 
#define STREAMSERIESINPUTTESTC_EFILE   3
 Could not open file. More...
 

Macro Definition Documentation

◆ STREAMSERIESINPUTTESTC_ENORM

#define STREAMSERIESINPUTTESTC_ENORM   0

Normal exit.

Definition at line 68 of file StreamSeriesInputTest.c.

◆ STREAMSERIESINPUTTESTC_ESUB

#define STREAMSERIESINPUTTESTC_ESUB   1

Subroutine failed.

Definition at line 69 of file StreamSeriesInputTest.c.

◆ STREAMSERIESINPUTTESTC_EARG

#define STREAMSERIESINPUTTESTC_EARG   2

Error parsing arguments.

Definition at line 70 of file StreamSeriesInputTest.c.

◆ STREAMSERIESINPUTTESTC_EFILE

#define STREAMSERIESINPUTTESTC_EFILE   3

Could not open file.

Definition at line 71 of file StreamSeriesInputTest.c.