SDDSlib
|
Collects data from multiple columns into new grouped columns based on specified criteria. More...
Go to the source code of this file.
Classes | |
struct | COLLECTION |
struct | NEW_PARAMETER |
Macros | |
#define | COLLECTION_SUFFIX 0x0001U |
#define | COLLECTION_PREFIX 0x0002U |
#define | COLLECTION_COLUMN 0x0004U |
#define | COLLECTION_MATCH 0x0008U |
#define | COLLECTION_EDIT 0x0010U |
#define | COLLECTION_EXCLUDE 0x0020U |
Enumerations | |
enum | option_type { CLO_COLLECT , CLO_PIPE , CLO_NOWARNINGS , CLO_MAJOR_ORDER , N_OPTIONS } |
Functions | |
long | InitializeOutput (SDDS_DATASET *SDDSout, char *output, SDDS_DATASET *SDDSin, COLLECTION *collection, long collections, NEW_PARAMETER **newParameter, int *newParameters, char ***rootname, char ***units, long warnings) |
void | CollectAndWriteData (SDDS_DATASET *SDDSout, COLLECTION *collection, long collections, NEW_PARAMETER *newParameter, int newParameters, char **rootname, char **units, long rootnames, int64_t inputRow, long origPage) |
void | GetAndOrganizeData (SDDS_DATASET *SDDSin, COLLECTION *collection, long collections, NEW_PARAMETER *newParameter, int newParameters) |
char ** | ConfirmMatchingColumns (COLLECTION *collection, long collections, SDDS_DATASET *SDDSin, SDDS_DATASET *SDDSout, long *rootnames, char ***units, long warnings) |
int | main (int argc, char **argv) |
Variables | |
static char * | USAGE |
static char * | option [N_OPTIONS] |
Collects data from multiple columns into new grouped columns based on specified criteria.
The program processes SDDS (Self Describing Data Sets) files, allowing users to collect data from various input columns and organize them into new output columns with specified suffixes, prefixes, or matching patterns. It supports options for pipeline processing, controlling warnings, and setting the major order of the output data.
@usage sddscollect [options] [<input>] [<output>]
@options -pipe=[input][,output] Use the standard SDDS toolkit pipe option for input and output.
-collect={suffix=<string>|prefix=<string>|match=<string>}[,column=<newName>][,editCommand=<string>][,exclude=<wildcard>]... Collects columns based on the specified suffix, prefix, or matching pattern.
suffix
: Selects columns ending with the given string.prefix
: Selects columns starting with the given string.match
: Selects columns matching the given wildcard pattern.column
: (Optional) Specifies the name of the new column. Defaults to the suffix or prefix.editCommand
: (Optional) Specifies a command to edit the column names.exclude
: (Optional) Excludes columns matching the given wildcard pattern.-nowarnings Suppresses warning messages.
-majorOrder=row|column Specifies the major order of the output file. Can be either row-major or column-major.
Definition in file sddscollect.c.
#define COLLECTION_COLUMN 0x0004U |
Definition at line 100 of file sddscollect.c.
#define COLLECTION_EDIT 0x0010U |
Definition at line 102 of file sddscollect.c.
#define COLLECTION_EXCLUDE 0x0020U |
Definition at line 103 of file sddscollect.c.
#define COLLECTION_MATCH 0x0008U |
Definition at line 101 of file sddscollect.c.
#define COLLECTION_PREFIX 0x0002U |
Definition at line 99 of file sddscollect.c.
#define COLLECTION_SUFFIX 0x0001U |
Definition at line 98 of file sddscollect.c.
enum option_type |
Definition at line 67 of file sddscollect.c.
void CollectAndWriteData | ( | SDDS_DATASET * | SDDSout, |
COLLECTION * | collection, | ||
long | collections, | ||
NEW_PARAMETER * | newParameter, | ||
int | newParameters, | ||
char ** | rootname, | ||
char ** | units, | ||
long | rootnames, | ||
int64_t | inputRow, | ||
long | origPage ) |
Definition at line 249 of file sddscollect.c.
char ** ConfirmMatchingColumns | ( | COLLECTION * | collection, |
long | collections, | ||
SDDS_DATASET * | SDDSin, | ||
SDDS_DATASET * | SDDSout, | ||
long * | rootnames, | ||
char *** | units, | ||
long | warnings ) |
Definition at line 430 of file sddscollect.c.
void GetAndOrganizeData | ( | SDDS_DATASET * | SDDSin, |
COLLECTION * | collection, | ||
long | collections, | ||
NEW_PARAMETER * | newParameter, | ||
int | newParameters ) |
Definition at line 285 of file sddscollect.c.
long InitializeOutput | ( | SDDS_DATASET * | SDDSout, |
char * | output, | ||
SDDS_DATASET * | SDDSin, | ||
COLLECTION * | collection, | ||
long | collections, | ||
NEW_PARAMETER ** | newParameter, | ||
int * | newParameters, | ||
char *** | rootname, | ||
char *** | units, | ||
long | warnings ) |
Definition at line 302 of file sddscollect.c.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 110 of file sddscollect.c.
|
static |
Definition at line 75 of file sddscollect.c.
|
static |
Definition at line 49 of file sddscollect.c.