-
Notifications
You must be signed in to change notification settings - Fork 0
/
APGlogger.ini
133 lines (115 loc) · 4.01 KB
/
APGlogger.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
##############################################################
# Binary file format descriptions for LDEO APG Logger Boards #
##############################################################
[EXAMPLE]
# APG data format is:
# Sequential 32-byte (256-bit) records, each containing one tic count,
# one temperature sample and eight pressure samples.
# File header length in bytes (16 records x 32 bytes)
head_len: 512
# Record length in bytes
rec_len: 32
# Number of pressure samples logged per record
smpls_per_rec: 8
# Milliseconds per pressure sample logged (eg 100 Hz = 10 milliseconds)
# epoch in millisec (100 Hz = 10 millisec)
epoch: 10
# clock_freq in Mhz
clock_freq: 50
# Factors and constants used for calculating temperature and pressure periods.
TP_fctr: 2**28
TP_cnst: 1
PP_fctr: 2**25
PP_cnst: 1
# Format of each record as a tuple of integer numbers indicating bits per field.
# A negative indicates a signed (2s compliment) value.
# Note: The pressure values are unpacked as:
# [Pcore Pcore+P2 Pcore+P2+P3 Pcore+P2+P3+P4... Pcore+P2+..+Pn]
# Assumes Pcore to Pn fields are consecutive. Reverse order is permitted.
# field 0 1 2 3 4 5 6 7 8 9 10
rec_fmt: 34, 40, 2, -20, -20, -20, -20, -20, -20, -20, 40
tic_field: 0
temperature_field: 1
pcore_field: 10
pn_field: 3
# 0. tic count 34 bits unsigned int
# 1. Temperature 40 bits unsigned int
# 2. unused 2 bits
# 3-9. P8-P2 7 x 20 bits signed int
# 10. Pcore 40 bits unsigned int
# Is the tic count taken at the first or last sample of each record?
timing: first
##########################################
# Edit or insert new records below here. #
##########################################
[CSAC2013]
head_len: 512
rec_len: 32
smpls_per_rec: 8
# epoch in millisec (100 Hz = 10 millisec)
epoch: 10
clock_freq: 50
TP_fctr: 2**28
TP_cnst: 1
PP_fctr: 2**25
PP_cnst: 1
# field 0 1 2 3 4 5 6 7 8 9 10
rec_fmt: 34, 40, 2, -20, -20, -20, -20, -20, -20, -20, 40
tic_field: 0
temperature_field: 1
pcore_field: 10
pn_field: 3
# 0. tic count 34 bits unsigned int
# 1. Temperature 40 bits unsigned int
# 2. unused 2 bits
# 3-9. P8-P2 7 x 20 bits signed int
# 10. Pcore 40 bits unsigned int
timing: first
[Seascan2018]
head_len: 512
rec_len: 32
smpls_per_rec: 9
# epoch in millisec (125 Hz = 8 millisec)
epoch: 8
clock_freq: 100
TP_fctr: 2**20
TP_cnst: 1
PP_fctr: 2**20
PP_cnst: 1
# field 0 1 2 3 4 5 6 7 8 9 10 11 12
rec_fmt: 32, 24, 32, 4, -16, -16, -16, -16, -16, -16, -16, -16, 36
tic_field: 0
temperature_field: 2
pcore_field: 12
pn_field: 4
# 0. tic count 32 bits unsigned int
# 1. unused 24 bits
# 2. Temperature 32 bits unsigned int
# 3. unused 4 bits
# 4-11. P9-P2 8 x 16 bits signed int
# 12. Pcore 36 bits unsigned int
timing: last
[Seascan_square]
head_len: 512
rec_len: 32
smpls_per_rec: 9
# epoch in millisec (125 Hz = 8 millisec, 100 Hz = 10 millisec)
epoch: 8
clock_freq: 100
TP_fctr: 2**20
TP_cnst: 1
PP_fctr: 2**20
PP_cnst: 1
# field 0 1 2 3 4 5 6 7 8 9 10 11 12
rec_fmt: 31, 25, 32, 4, -16, -16, -16, -16, -16, -16, -16, -16, 36
tic_field: 0
temperature_field: 2
pcore_field: 12
pn_field: 4
# 0. tic count 32 bits unsigned int
# 1. unused 24 bits
# 2. Temperature 32 bits unsigned int
# 3. unused 4 bits
# 4-11. P9-P2 8 x 16 bits signed int
# 12. Pcore 36 bits unsigned int
timing: last