SDDSlib
|
Analyze data from columns of an SDDS file to determine changes from the first page. More...
Go to the source code of this file.
Classes | |
struct | CHANGE_REQUEST |
struct | CHANGE_DEFINITION |
Macros | |
#define | CHANGE_EXCLUDE 0 |
#define | CHANGE_NEWTYPE 1 |
#define | N_CHANGE_OPTIONS 2 |
Enumerations | |
enum | option_type { SET_COPY , SET_CHANGESIN , SET_PASS , SET_BASELINE , SET_PIPE , SET_PARALLELPAGES , SET_KEEPEMPTIES , SET_MAJOR_ORDER , N_OPTIONS } |
Functions | |
long | addChangeRequests (CHANGE_REQUEST **request, long requests, char **item, long items, long code, char *excludeName, char *newType) |
CHANGE_DEFINITION * | compileChangeDefinitions (SDDS_DATASET *inSet, long *changes, CHANGE_REQUEST *request, long requests) |
long | setupOutputFile (SDDS_DATASET *outSet, char *output, SDDS_DATASET *inSet, CHANGE_DEFINITION *change, long changes, short columnMajorOrder) |
int64_t | addBaselineData (CHANGE_DEFINITION *change, long changes, char *baseline, long page, int64_t lastRows) |
int64_t | copyBaselineData (CHANGE_DEFINITION *change, long changes, SDDS_DATASET *dataset) |
void | computeChanges (CHANGE_DEFINITION *change, long changes, SDDS_DATASET *inSet, int64_t rows) |
void | outputChanges (CHANGE_DEFINITION *change, long changes, SDDS_DATASET *outSet, int64_t rows, SDDS_DATASET *inSet) |
long | transferDefinitions (SDDS_DATASET *outSet, SDDS_DATASET *inSet, CHANGE_DEFINITION *change, long changes, long optionCode) |
int | main (int argc, char **argv) |
Variables | |
char * | option [N_OPTIONS] |
static char * | USAGE |
Analyze data from columns of an SDDS file to determine changes from the first page.
This program processes an SDDS (Self Describing Data Set) file to compute changes in specified columns relative to baseline data, which can be provided either as a separate file or implicitly as the first page of the input file. The program supports various options to copy columns, pass data through, and configure output formatting.
Features:
Usage: sddschanges [OPTIONS] [<input>] [<output>]
Options: -pipe=[input][,output] Use standard input/output for input and/or output.
-changesIn=[exclude=<wildcard>,][,newType=<string>,]<column-names> Specify columns to compute changes for. Optionally exclude certain columns using wildcards and set a new data type for the resulting change columns.
-copy=<column-names> Specify columns to copy from the first page of the input to all pages of the output. By default, only requested changes appear in the output.
-pass=<column-names> Specify columns to pass through from each page of the input to each page of the output. By default, only requested changes appear in the output.
-baseline=<filename> Specify a baseline SDDS file to compute changes against. If not provided, the first page of the input file is used as the baseline.
-parallelPages When used with -baseline, compares the input and baseline files page-by-page. Otherwise, compares all input pages to the first page of the baseline data.
-keepEmpties By default, empty pages in the input do not appear in the output. This option ensures that empty pages are emitted to the output.
-majorOrder=row|column Specify the major order for writing the output file, either row-major or column-major.
Definition in file sddschanges.c.
enum option_type |
Definition at line 69 of file sddschanges.c.
int64_t addBaselineData | ( | CHANGE_DEFINITION * | change, |
long | changes, | ||
char * | baseline, | ||
long | page, | ||
int64_t | lastRows ) |
Definition at line 337 of file sddschanges.c.
long addChangeRequests | ( | CHANGE_REQUEST ** | request, |
long | requests, | ||
char ** | item, | ||
long | items, | ||
long | code, | ||
char * | excludeName, | ||
char * | newType ) |
Definition at line 465 of file sddschanges.c.
CHANGE_DEFINITION * compileChangeDefinitions | ( | SDDS_DATASET * | inSet, |
long * | changes, | ||
CHANGE_REQUEST * | request, | ||
long | requests ) |
Definition at line 485 of file sddschanges.c.
void computeChanges | ( | CHANGE_DEFINITION * | change, |
long | changes, | ||
SDDS_DATASET * | inSet, | ||
int64_t | rows ) |
Definition at line 404 of file sddschanges.c.
int64_t copyBaselineData | ( | CHANGE_DEFINITION * | change, |
long | changes, | ||
SDDS_DATASET * | dataset ) |
Definition at line 382 of file sddschanges.c.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 158 of file sddschanges.c.
void outputChanges | ( | CHANGE_DEFINITION * | change, |
long | changes, | ||
SDDS_DATASET * | outSet, | ||
int64_t | rows, | ||
SDDS_DATASET * | inSet ) |
Definition at line 432 of file sddschanges.c.
long setupOutputFile | ( | SDDS_DATASET * | outSet, |
char * | output, | ||
SDDS_DATASET * | inSet, | ||
CHANGE_DEFINITION * | change, | ||
long | changes, | ||
short | columnMajorOrder ) |
Definition at line 565 of file sddschanges.c.
long transferDefinitions | ( | SDDS_DATASET * | outSet, |
SDDS_DATASET * | inSet, | ||
CHANGE_DEFINITION * | change, | ||
long | changes, | ||
long | optionCode ) |
Definition at line 598 of file sddschanges.c.
char* option[N_OPTIONS] |
Definition at line 81 of file sddschanges.c.
|
static |
Definition at line 122 of file sddschanges.c.