SDDS ToolKit Programs and Libraries for C and Python
|
Generates an SDDS file with equispaced indices in a column.
This program creates an SDDS file containing a single page with one or more columns of data. The columns can be defined, and sequences of values can be generated using user-specified parameters. Multiple sequences, repeats, and page breaks are supported.
Required | Description |
---|---|
-define | Define a column with the given name and its entries. |
-sequence | Specify a sequence with flexible parameters (start, end, delta, interval). |
Optional | Description |
---|---|
-pipe | Define pipe output options. |
-repeat | Repeat the sequence a specified number of times. |
-break | Insert a page break between repeats. |
-majorOrder | Specify the major order for data storage (row or column). |
-break
requires -repeat=<number>
.-sequence
parameters must conform to one of these combinations:end
and delta
end
and number
delta
and number
Definition in file sddssequence.c.
Go to the source code of this file.
Functions | |
void | addSequence (char **item, long items, DEFINITION *definition) |
void | addDefinition (char **item, long items, DEFINITION **definition, long *definitions) |
void | generateOutput (SDDS_DATASET *outputTable, DEFINITION *definition, long definitions, long doBreak) |
void | setupOutputFile (SDDS_DATASET *outputTable, char *output, DEFINITION *definition, long definitions, short columnMajorOrder) |
void | createColumn (SDDS_DATASET *outputTable, DEFINITION *definition) |
int | main (int argc, char **argv) |
void addDefinition | ( | char ** | item, |
long | items, | ||
DEFINITION ** | definition, | ||
long * | definitions ) |
Definition at line 251 of file sddssequence.c.
void addSequence | ( | char ** | item, |
long | items, | ||
DEFINITION * | definition ) |
Definition at line 271 of file sddssequence.c.
void createColumn | ( | SDDS_DATASET * | outputTable, |
DEFINITION * | definition ) |
Definition at line 430 of file sddssequence.c.
void generateOutput | ( | SDDS_DATASET * | outputTable, |
DEFINITION * | definition, | ||
long | definitions, | ||
long | doBreak ) |
Definition at line 345 of file sddssequence.c.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 142 of file sddssequence.c.
void setupOutputFile | ( | SDDS_DATASET * | outputTable, |
char * | output, | ||
DEFINITION * | definition, | ||
long | definitions, | ||
short | columnMajorOrder ) |
Definition at line 413 of file sddssequence.c.