33 #ifdef HOST_IS_LSB_FIRST
36 #define swapBufIfHostLE(p, s, n) _swapBufInPlace(p, s, n)
39 #define swapFloatIfHostLE(x) swapFloat(x)
43 #define swapBufIfHostLE(p, s, n)
45 #define swapFloatIfHostLE(x) x
64 int *year,
int *month,
int *mday,
int *yday,
65 int *hour,
int *minute,
double *second
92 int *year,
int *month,
int *mday,
int *yday,
int *hour,
int *minute,
102 double tt,
int *year,
int *month,
int *mday,
int *yday,
103 int *hour,
int *minute,
double *second
111 int *year,
int *month,
int *mday,
int *yday,
int *hour,
int *minute,
128 void yrdy1958(
int* pYear,
int* pDoy,
int days_since_1958);
148 void ms2hms(
int* pHour,
int* pMin,
float* pSec,
double ms_of_day);
151 void fail (
const char *message);
160 int getpkt(
char *ph, ubyte *data,
int max);
170 int fgetpkt(FILE* fin,
char* ph, ubyte* data,
int max);
180 int putpkt (
const char *ph,
const ubyte *data,
const int bytes);
int past_1958(int year, int day)
Get the number of days since 1958-01-01 given a year and day of year.
void yrdy1958(int *pYear, int *pDoy, int days_since_1958)
Return a year and day of year given the number of days past 1958.
DAS_API float swapFloat(float rIn)
Swap single floats, returns new float.
DAS_API void tnorm(int *year, int *month, int *mday, int *yday, int *hour, int *minute, double *second)
normalize date and time components NOTE: yday is OUTPUT only.
int fgetpkt(FILE *fin, char *ph, ubyte *data, int max)
Read a Tagged Das 1 packet from a file object.
DAS_API void _swapBufInPlace(void *pMem, size_t szEach, size_t numItems)
Swap whole buffers in place.
DAS_API void emitt(double tt, int *year, int *month, int *mday, int *yday, int *hour, int *minute, double *second)
convert double seconds since epoch to time components.
DAS_API int parsetime(const char *string, int *year, int *month, int *mday, int *yday, int *hour, int *minute, double *second)
Convert most human-parseable time strings to numeric components returns 0 on success and non-zero on ...
DAS_API double ttime(int *year, int *month, int *mday, int *yday, int *hour, int *minute, double *second)
Convert time components to double seconds since epoch.
DAS_API void swapU4(uint32_t *pIn)
Swap uint4 in place.
void ms2hms(int *pHour, int *pMin, float *pSec, double ms_of_day)
Return the hours, minutes and seconds of a day given then number of milliseconds since the start of t...
int getpkt(char *ph, ubyte *data, int max)
Read a Tagged Das 1 packet from stdin.
int putpkt(const char *ph, const ubyte *data, const int bytes)
Write das packet to stdout.
Minimal definitions for das2 utilities that can safely be run without calling das_init().