SDDS ToolKit Programs and Libraries for C and Python
|
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.
Required | Description |
---|---|
-changesIn | Specify columns to compute changes for. Supports wildcards and type overrides. |
Optional | Description |
---|---|
-pipe | Use standard input/output for input and/or output. |
-copy | Specify columns to copy from the first page to all pages of the output. |
-pass | Specify columns to pass through from each page of the input to the output. |
-baseline | Specify a baseline SDDS file to compute changes against. |
-parallelPages | Compares input and baseline files page-by-page. |
-keepEmpties | Ensures that empty pages are emitted to the output. |
| -majorOrder
| Specify the major order for writing the output file (row|column). |
-parallelPages
requires -baseline
.Definition in file sddschanges.c.
Go to the source code of this file.
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) |
int64_t addBaselineData | ( | CHANGE_DEFINITION * | change, |
long | changes, | ||
char * | baseline, | ||
long | page, | ||
int64_t | lastRows ) |
Definition at line 335 of file sddschanges.c.
long addChangeRequests | ( | CHANGE_REQUEST ** | request, |
long | requests, | ||
char ** | item, | ||
long | items, | ||
long | code, | ||
char * | excludeName, | ||
char * | newType ) |
Definition at line 463 of file sddschanges.c.
CHANGE_DEFINITION * compileChangeDefinitions | ( | SDDS_DATASET * | inSet, |
long * | changes, | ||
CHANGE_REQUEST * | request, | ||
long | requests ) |
Definition at line 483 of file sddschanges.c.
void computeChanges | ( | CHANGE_DEFINITION * | change, |
long | changes, | ||
SDDS_DATASET * | inSet, | ||
int64_t | rows ) |
Definition at line 402 of file sddschanges.c.
int64_t copyBaselineData | ( | CHANGE_DEFINITION * | change, |
long | changes, | ||
SDDS_DATASET * | dataset ) |
Definition at line 380 of file sddschanges.c.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 156 of file sddschanges.c.
void outputChanges | ( | CHANGE_DEFINITION * | change, |
long | changes, | ||
SDDS_DATASET * | outSet, | ||
int64_t | rows, | ||
SDDS_DATASET * | inSet ) |
Definition at line 430 of file sddschanges.c.
long setupOutputFile | ( | SDDS_DATASET * | outSet, |
char * | output, | ||
SDDS_DATASET * | inSet, | ||
CHANGE_DEFINITION * | change, | ||
long | changes, | ||
short | columnMajorOrder ) |
Definition at line 563 of file sddschanges.c.
long transferDefinitions | ( | SDDS_DATASET * | outSet, |
SDDS_DATASET * | inSet, | ||
CHANGE_DEFINITION * | change, | ||
long | changes, | ||
long | optionCode ) |
Definition at line 596 of file sddschanges.c.