SDDSlib
|
Perform time conversions on SDDS (Self Describing Data Sets) data. More...
Go to the source code of this file.
Classes | |
struct | TIME_CONVERSION |
Macros | |
#define | IS_COLUMN 0x0001U |
#define | IS_PARAMETER 0x0002U |
#define | EPOCH_GIVEN 0x0004U |
#define | YEAR_GIVEN 0x0008U |
#define | JDAY_GIVEN 0x0010U |
#define | MONTH_GIVEN 0x0020U |
#define | DAY_GIVEN 0x0040U |
#define | HOUR_GIVEN 0x0080U |
#define | DO_BREAKDOWN 0x0100U |
#define | DO_EPOCH 0x0200U |
#define | TEXT_GIVEN 0x0400U |
#define | FORMAT_GIVEN 0x0800U |
#define | DO_DATECONVERSION 0x1000U |
Enumerations | |
enum | option_type { SET_EPOCH , SET_PIPE , SET_BREAKDOWN , SET_MAJOR_ORDER , SET_DATE , N_OPTIONS } |
Variables | |
char * | option [N_OPTIONS] |
char * | USAGE |
Perform time conversions on SDDS (Self Describing Data Sets) data.
This program allows users to convert and manipulate time-related data within SDDS files. It supports various operations such as breaking down epoch times into components, converting date strings to epoch times, and specifying the major order of output data.
-pipe=<input>[,<output>] -majorOrder=row|column -breakdown={column|parameter},<timeName>[,year=<newName>][,julianDay=<newName>][,month=<newName>][,day=<newName>][,hour=<newName>][,text=<newName>] -dateToTime={column|parameter},<timeName>,<newName>,<stringName>,format=<formatString> -epoch={column|parameter},<newName>,year=<name>,[julianDay=<name>|month=<name>,day=<name>],hour=<name>
Definition in file sddstimeconvert.c.
#define DAY_GIVEN 0x0040U |
Definition at line 87 of file sddstimeconvert.c.
#define DO_BREAKDOWN 0x0100U |
Definition at line 89 of file sddstimeconvert.c.
#define DO_DATECONVERSION 0x1000U |
Definition at line 93 of file sddstimeconvert.c.
#define DO_EPOCH 0x0200U |
Definition at line 90 of file sddstimeconvert.c.
#define EPOCH_GIVEN 0x0004U |
Definition at line 83 of file sddstimeconvert.c.
#define FORMAT_GIVEN 0x0800U |
Definition at line 92 of file sddstimeconvert.c.
#define HOUR_GIVEN 0x0080U |
Definition at line 88 of file sddstimeconvert.c.
#define IS_COLUMN 0x0001U |
Definition at line 81 of file sddstimeconvert.c.
#define IS_PARAMETER 0x0002U |
Definition at line 82 of file sddstimeconvert.c.
#define JDAY_GIVEN 0x0010U |
Definition at line 85 of file sddstimeconvert.c.
#define MONTH_GIVEN 0x0020U |
Definition at line 86 of file sddstimeconvert.c.
#define TEXT_GIVEN 0x0400U |
Definition at line 91 of file sddstimeconvert.c.
#define YEAR_GIVEN 0x0008U |
Definition at line 84 of file sddstimeconvert.c.
enum option_type |
Definition at line 43 of file sddstimeconvert.c.
void CheckBreakdownConversionElements | ( | SDDS_DATASET * | SDDSin, |
TIME_CONVERSION * | conversion, | ||
long | conversions ) |
Definition at line 359 of file sddstimeconvert.c.
void CheckDateConversionElements | ( | SDDS_DATASET * | SDDSin, |
TIME_CONVERSION * | conversion, | ||
long | conversions ) |
Definition at line 376 of file sddstimeconvert.c.
void CheckEpochConversionElements | ( | SDDS_DATASET * | SDDSin, |
TIME_CONVERSION * | conversion, | ||
long | conversions ) |
Definition at line 312 of file sddstimeconvert.c.
void DoColumnBreakdownConversion | ( | SDDS_DATASET * | SDDSout, |
SDDS_DATASET * | SDDSin, | ||
TIME_CONVERSION * | conversion ) |
Definition at line 633 of file sddstimeconvert.c.
void DoColumnDateToTimeConversion | ( | SDDS_DATASET * | SDDSout, |
SDDS_DATASET * | SDDSin, | ||
TIME_CONVERSION * | conversion ) |
Definition at line 592 of file sddstimeconvert.c.
void DoColumnEpochConversion | ( | SDDS_DATASET * | SDDSout, |
SDDS_DATASET * | SDDSin, | ||
TIME_CONVERSION * | conversion ) |
Definition at line 556 of file sddstimeconvert.c.
void DoParameterBreakdownConversion | ( | SDDS_DATASET * | SDDSout, |
SDDS_DATASET * | SDDSin, | ||
TIME_CONVERSION * | conversion ) |
Definition at line 494 of file sddstimeconvert.c.
void DoParameterDateToTimeConversion | ( | SDDS_DATASET * | SDDSout, |
SDDS_DATASET * | SDDSin, | ||
TIME_CONVERSION * | conversion ) |
Definition at line 523 of file sddstimeconvert.c.
void DoParameterEpochConversion | ( | SDDS_DATASET * | SDDSout, |
SDDS_DATASET * | SDDSin, | ||
TIME_CONVERSION * | conversion ) |
Definition at line 476 of file sddstimeconvert.c.
void InitializeOutput | ( | SDDS_DATASET * | SDDSout, |
char * | outputfile, | ||
TIME_CONVERSION * | conversion, | ||
long | conversions, | ||
SDDS_DATASET * | SDDSin, | ||
short | columnMajorOrder ) |
Definition at line 397 of file sddstimeconvert.c.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 116 of file sddstimeconvert.c.
char* option[N_OPTIONS] |
Definition at line 52 of file sddstimeconvert.c.
char* USAGE |
Definition at line 61 of file sddstimeconvert.c.