SDDSlib
|
SDDS-format frequency-domain filter program. More...
#include "mdb.h"
#include "SDDS.h"
#include "scan.h"
#include "fftpackC.h"
#include "SDDSutils.h"
#include <ctype.h>
Go to the source code of this file.
Classes | |
struct | THRESHOLD_FILTER |
struct | HILO_FILTER |
struct | NHBP_FILTER |
struct | FILE_FILTER |
struct | CLIP_FILTER |
struct | FILTER |
struct | FILTER_STAGE |
Macros | |
#define | FILT_START_GIVEN 0x00000001U |
#define | FILT_END_GIVEN 0x00000002U |
#define | FILT_THRES_GIVEN 0x00000004U |
#define | FILT_CENTER_GIVEN 0x00000008U |
#define | FILT_FULLWIDTH_GIVEN 0x00000010U |
#define | FILT_FREQNAME_GIVEN 0x00000020U |
#define | FILT_REALNAME_GIVEN 0x00000040U |
#define | FILT_IMAGNAME_GIVEN 0x00000080U |
#define | FILT_MAGNAME_GIVEN 0x00000100U |
#define | FILT_FRACTHRES_GIVEN 0x00000200U |
#define | FILT_LEVEL_GIVEN 0x00000400U |
#define | FILT_FILENAME_GIVEN 0x00000800U |
#define | FILT_HIGH_GIVEN 0x00001000U |
#define | FILT_LOW_GIVEN 0x00002000U |
#define | FILT_FLATWIDTH_GIVEN 0x00004000U |
#define | FL_NEWCOLUMNS 0x00001UL |
#define | FL_DIFCOLUMNS 0x00002UL |
Functions | |
long | applyFilters (double *outputData, double *inputData, double *timeData, int64_t rows, FILTER_STAGE *filterStage, long filterStages) |
long | applyFilterStage (double *outputRI, double *inputRI, int64_t frequencies, double dfrequency, FILTER_STAGE *filterStage) |
void | addClipFilterOutput (double *outputRI, double *inputRI, int64_t frequencies, double dfrequency, CLIP_FILTER *filter) |
void | addThresholdFilterOutput (double *outputRI, double *inputRI, int64_t frequencies, double dfrequency, THRESHOLD_FILTER *filter) |
void | addHighPassFilterOutput (double *outputRI, double *inputRI, int64_t frequencies, double dfrequency, HILO_FILTER *filter) |
void | addLowPassFilterOutput (double *outputRI, double *inputRI, int64_t frequencies, double dfrequency, HILO_FILTER *filter) |
void | addNotchFilterOutput (double *outputRI, double *inputRI, int64_t frequencies, double dfrequency, NHBP_FILTER *filter) |
void | addBandPassFilterOutput (double *outputRI, double *inputRI, int64_t frequencies, double dfrequency, NHBP_FILTER *filter) |
void | addFileFilterOutput (double *outputRI, double *inputRI, int64_t frequencies, double dfrequency, FILE_FILTER *filter) |
int64_t | computeIndex (double value, double dfrequency, int64_t frequencies) |
void | addFilter (FILTER_STAGE *filterStage, long optionCode, SCANNED_ARG *scanned) |
int | main (int argc, char **argv) |
Variables | |
char * | option [N_OPTIONS] |
static char * | USAGE |
SDDS-format frequency-domain filter program.
This program applies various frequency-domain filters to SDDS-formatted data files. It supports multiple filtering options, including high-pass, low-pass, notch, bandpass, threshold, and file-based filters. Users can specify input and output files or use pipes.
Definition in file sddsfdfilter.c.
#define FILT_CENTER_GIVEN 0x00000008U |
Definition at line 104 of file sddsfdfilter.c.
#define FILT_END_GIVEN 0x00000002U |
Definition at line 102 of file sddsfdfilter.c.
#define FILT_FILENAME_GIVEN 0x00000800U |
Definition at line 112 of file sddsfdfilter.c.
#define FILT_FLATWIDTH_GIVEN 0x00004000U |
Definition at line 115 of file sddsfdfilter.c.
#define FILT_FRACTHRES_GIVEN 0x00000200U |
Definition at line 110 of file sddsfdfilter.c.
#define FILT_FREQNAME_GIVEN 0x00000020U |
Definition at line 106 of file sddsfdfilter.c.
#define FILT_FULLWIDTH_GIVEN 0x00000010U |
Definition at line 105 of file sddsfdfilter.c.
#define FILT_HIGH_GIVEN 0x00001000U |
Definition at line 113 of file sddsfdfilter.c.
#define FILT_IMAGNAME_GIVEN 0x00000080U |
Definition at line 108 of file sddsfdfilter.c.
#define FILT_LEVEL_GIVEN 0x00000400U |
Definition at line 111 of file sddsfdfilter.c.
#define FILT_LOW_GIVEN 0x00002000U |
Definition at line 114 of file sddsfdfilter.c.
#define FILT_MAGNAME_GIVEN 0x00000100U |
Definition at line 109 of file sddsfdfilter.c.
#define FILT_REALNAME_GIVEN 0x00000040U |
Definition at line 107 of file sddsfdfilter.c.
#define FILT_START_GIVEN 0x00000001U |
Definition at line 101 of file sddsfdfilter.c.
#define FILT_THRES_GIVEN 0x00000004U |
Definition at line 103 of file sddsfdfilter.c.
#define FL_DIFCOLUMNS 0x00002UL |
Definition at line 155 of file sddsfdfilter.c.
#define FL_NEWCOLUMNS 0x00001UL |
Definition at line 154 of file sddsfdfilter.c.
enum option_type |
Definition at line 47 of file sddsfdfilter.c.
void addBandPassFilterOutput | ( | double * | outputRI, |
double * | inputRI, | ||
int64_t | frequencies, | ||
double | dfrequency, | ||
NHBP_FILTER * | filter ) |
Definition at line 619 of file sddsfdfilter.c.
void addClipFilterOutput | ( | double * | outputRI, |
double * | inputRI, | ||
int64_t | frequencies, | ||
double | dfrequency, | ||
CLIP_FILTER * | filter ) |
Definition at line 492 of file sddsfdfilter.c.
void addFileFilterOutput | ( | double * | outputRI, |
double * | inputRI, | ||
int64_t | frequencies, | ||
double | dfrequency, | ||
FILE_FILTER * | filter ) |
Definition at line 653 of file sddsfdfilter.c.
void addFilter | ( | FILTER_STAGE * | filterStage, |
long | optionCode, | ||
SCANNED_ARG * | scanned ) |
Definition at line 714 of file sddsfdfilter.c.
void addHighPassFilterOutput | ( | double * | outputRI, |
double * | inputRI, | ||
int64_t | frequencies, | ||
double | dfrequency, | ||
HILO_FILTER * | filter ) |
Definition at line 542 of file sddsfdfilter.c.
void addLowPassFilterOutput | ( | double * | outputRI, |
double * | inputRI, | ||
int64_t | frequencies, | ||
double | dfrequency, | ||
HILO_FILTER * | filter ) |
Definition at line 563 of file sddsfdfilter.c.
void addNotchFilterOutput | ( | double * | outputRI, |
double * | inputRI, | ||
int64_t | frequencies, | ||
double | dfrequency, | ||
NHBP_FILTER * | filter ) |
Definition at line 584 of file sddsfdfilter.c.
void addThresholdFilterOutput | ( | double * | outputRI, |
double * | inputRI, | ||
int64_t | frequencies, | ||
double | dfrequency, | ||
THRESHOLD_FILTER * | filter ) |
Definition at line 509 of file sddsfdfilter.c.
long applyFilters | ( | double * | outputData, |
double * | inputData, | ||
double * | timeData, | ||
int64_t | rows, | ||
FILTER_STAGE * | filterStage, | ||
long | filterStages ) |
Definition at line 410 of file sddsfdfilter.c.
long applyFilterStage | ( | double * | outputRI, |
double * | inputRI, | ||
int64_t | frequencies, | ||
double | dfrequency, | ||
FILTER_STAGE * | filterStage ) |
Definition at line 455 of file sddsfdfilter.c.
int64_t computeIndex | ( | double | value, |
double | dfrequency, | ||
int64_t | frequencies ) |
Definition at line 703 of file sddsfdfilter.c.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 169 of file sddsfdfilter.c.
char* option[N_OPTIONS] |
Definition at line 65 of file sddsfdfilter.c.
|
static |
Definition at line 83 of file sddsfdfilter.c.