]>
Commit | Line | Data |
---|---|---|
f67e2651 | 1 | #ifndef _RDMC_AMANDA_H |
2 | #define _RDMC_AMANDA_H | |
3 | ||
4 | #define _USE_MATH_DEFINES | |
5 | #include <math.h> | |
6 | ||
7 | #include <malloc.h> | |
8 | ||
9 | #define PID180 (M_PI/180.) | |
10 | ||
11 | #define SEC_PER_DAY 86400 | |
12 | ||
13 | ||
14 | ||
15 | int rdmc_amanda_V(const char *s, mcfile *fp); | |
16 | ||
17 | int rdmc_rhd_amanda(mcfile *fp); /* reads the format info from the file */ | |
18 | int rdmc_rarr_amanda(mcfile *fp, array *ar); /* (amanda/f2000 ascii file) */ | |
19 | ||
20 | int rdmc_warr_amanda(const mcfile *fp, const array *ar); /* (amanda) */ | |
21 | int rdmc_wrend_amanda(const mcfile *fp); /* write end of file (F2000 format) */ | |
22 | ||
23 | #if 0 | |
24 | /* writes the arry of coment lines essentially as they are */ | |
25 | int rdmc_wrcomment_amanda(const mcfile *fp, const char *s); /* (amanda) */ | |
26 | /* writes an array of lines but puts prefix (e.g. "HI ") before each line */ | |
27 | int rdmc_wrhist_amanda(const mcfile *fp, const char *s, const char *prefix); | |
28 | #endif | |
29 | ||
30 | int rdmc_skipevt_amanda(mcfile *fp); /* (amanda) */ | |
31 | int rdmc_revt_amanda(mcfile *fp, mevt *ev, array *ar);/* (amanda/f2000 ascii) */ | |
32 | int rdmc_wevt_amanda(const mcfile *fp, const mevt *ev, const array *ar);/* amanda */ | |
33 | ||
34 | ||
35 | #endif | |
36 | ||
37 |