SDDSlib
|
Baseline subtraction tool for SDDS datasets. More...
Go to the source code of this file.
Macros | |
#define | SELECT_ENDPOINTS 0x0001U |
#define | SELECT_OUTSIDEFWHA 0x0002U |
#define | SELECT_ANTIOUTLIER 0x0004U |
#define | METHOD_FIT 0x0001U |
#define | METHOD_AVERAGE 0x0002U |
Enumerations | |
enum | option_type { CLO_PIPE , CLO_COLUMNS , CLO_METHOD , CLO_SELECT , CLO_NONNEGATIVE , CLO_REPEATS , CLO_DESPIKE , CLO_MAJOR_ORDER , N_OPTIONS } |
Functions | |
long | resolveColumnNames (SDDS_DATASET *SDDSin, char ***column, int32_t *columns) |
void | selectEndpoints (short *selected, int64_t rows, long endPoints) |
void | selectOutsideFWHA (double *data, double *indepData, short *selected, int64_t rows, double fwhaLimit) |
void | selectAntiOutlier (double *data, short *selected, int64_t rows, long passes) |
void | fitAndRemoveBaseline (double *data, double *indepData, short *selected, int64_t rows, long terms) |
void | averageAndRemoveBaseline (double *data, short *selected, int64_t rows) |
void | despikeProfile (double *data, int64_t rows, long widthLimit, long passes) |
int | main (int argc, char **argv) |
Variables | |
static char * | option [N_OPTIONS] |
char * | USAGE |
Baseline subtraction tool for SDDS datasets.
This program processes SDDS datasets to subtract a baseline from specified columns. The baseline can be computed using various methods and selection criteria. Options allow for nonnegative constraints, despiking, and multiple repeats.
Usage: sddsbaseline [<input>] [<output>] [-pipe=<in>[,<out>]] [-columns=<listOfNames>] [-nonnegative [-despike=passes=<number>,widthlimit=
] [-repeats=<count>]] [-select={endpoints=<number> | outsideFWHA=<multiplier> | antioutlier=<passes>}] [-method={average|fit[,terms=<number>]}] [-majorOrder=row|column]
Options: -pipe Specify input and/or output pipes. -columns List of columns to process. -nonnegative Forces all values to be nonnegative after baseline subtraction. This is accomplished by setting all negative values to 0. -despike Specify that positive features narrower than widthLimit shall be set to zero. Parameters: passes=<number> Number of despike passes. widthlimit=
Width limit for despiking. -repeats Specify how many times to apply the baseline removal algorithm. Meaningful only if used in combination with -nonnegative. -select Specify how to select points to include in baseline determination. Options: endpoints=<number> outsideFWHA=<multiplier> antioutlier=<passes> -method Specify how to process selected points in order to compute baseline. Options: average fit[,terms=<number>] -majorOrder Specify write output in row or column major order.
Definition in file sddsbaseline.c.
#define METHOD_AVERAGE 0x0002U |
Definition at line 115 of file sddsbaseline.c.
#define METHOD_FIT 0x0001U |
Definition at line 114 of file sddsbaseline.c.
#define SELECT_ANTIOUTLIER 0x0004U |
Definition at line 112 of file sddsbaseline.c.
#define SELECT_ENDPOINTS 0x0001U |
Definition at line 110 of file sddsbaseline.c.
#define SELECT_OUTSIDEFWHA 0x0002U |
Definition at line 111 of file sddsbaseline.c.
enum option_type |
Definition at line 56 of file sddsbaseline.c.
void averageAndRemoveBaseline | ( | double * | data, |
short * | selected, | ||
int64_t | rows ) |
Definition at line 472 of file sddsbaseline.c.
void despikeProfile | ( | double * | data, |
int64_t | rows, | ||
long | widthLimit, | ||
long | passes ) |
Definition at line 488 of file sddsbaseline.c.
void fitAndRemoveBaseline | ( | double * | data, |
double * | indepData, | ||
short * | selected, | ||
int64_t | rows, | ||
long | terms ) |
Definition at line 431 of file sddsbaseline.c.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 125 of file sddsbaseline.c.
long resolveColumnNames | ( | SDDS_DATASET * | SDDSin, |
char *** | column, | ||
int32_t * | columns ) |
Definition at line 348 of file sddsbaseline.c.
void selectAntiOutlier | ( | double * | data, |
short * | selected, | ||
int64_t | rows, | ||
long | passes ) |
Definition at line 406 of file sddsbaseline.c.
void selectEndpoints | ( | short * | selected, |
int64_t | rows, | ||
long | endPoints ) |
Definition at line 364 of file sddsbaseline.c.
void selectOutsideFWHA | ( | double * | data, |
double * | indepData, | ||
short * | selected, | ||
int64_t | rows, | ||
double | fwhaLimit ) |
Definition at line 372 of file sddsbaseline.c.
|
static |
Definition at line 68 of file sddsbaseline.c.
char* USAGE |
Definition at line 79 of file sddsbaseline.c.