@aeroswarm/codec 0.0.0-stage → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +182 -3
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +1249 -0
  5. package/dist/surveillance/adsb/index.d.ts +16 -0
  6. package/dist/surveillance/adsb/index.d.ts.map +1 -0
  7. package/dist/surveillance/aftn/index.d.ts +3 -0
  8. package/dist/surveillance/aftn/index.d.ts.map +1 -0
  9. package/dist/surveillance/aftn/parser.d.ts +16 -0
  10. package/dist/surveillance/aftn/parser.d.ts.map +1 -0
  11. package/dist/surveillance/aftn/parser.test.d.ts +2 -0
  12. package/dist/surveillance/aftn/parser.test.d.ts.map +1 -0
  13. package/dist/surveillance/aftn/types.d.ts +75 -0
  14. package/dist/surveillance/aftn/types.d.ts.map +1 -0
  15. package/dist/surveillance/ais/index.d.ts +17 -0
  16. package/dist/surveillance/ais/index.d.ts.map +1 -0
  17. package/dist/surveillance/asmgcs/index.d.ts +14 -0
  18. package/dist/surveillance/asmgcs/index.d.ts.map +1 -0
  19. package/dist/surveillance/asterix/cat10/index.d.ts +3 -0
  20. package/dist/surveillance/asterix/cat10/index.d.ts.map +1 -0
  21. package/dist/surveillance/asterix/cat21/index.d.ts +5 -0
  22. package/dist/surveillance/asterix/cat21/index.d.ts.map +1 -0
  23. package/dist/surveillance/asterix/cat48/index.d.ts +5 -0
  24. package/dist/surveillance/asterix/cat48/index.d.ts.map +1 -0
  25. package/dist/surveillance/asterix/cat62/index.d.ts +3 -0
  26. package/dist/surveillance/asterix/cat62/index.d.ts.map +1 -0
  27. package/dist/surveillance/asterix/decoder.d.ts +14 -0
  28. package/dist/surveillance/asterix/decoder.d.ts.map +1 -0
  29. package/dist/surveillance/asterix/fields.d.ts +4 -0
  30. package/dist/surveillance/asterix/fields.d.ts.map +1 -0
  31. package/dist/surveillance/asterix/index.d.ts +5 -0
  32. package/dist/surveillance/asterix/index.d.ts.map +1 -0
  33. package/dist/surveillance/asterix/parser.d.ts +16 -0
  34. package/dist/surveillance/asterix/parser.d.ts.map +1 -0
  35. package/dist/surveillance/asterix/parser.test.d.ts +2 -0
  36. package/dist/surveillance/asterix/parser.test.d.ts.map +1 -0
  37. package/dist/surveillance/asterix/resolvers.d.ts +17 -0
  38. package/dist/surveillance/asterix/resolvers.d.ts.map +1 -0
  39. package/dist/surveillance/asterix/types.d.ts +56 -0
  40. package/dist/surveillance/asterix/types.d.ts.map +1 -0
  41. package/dist/surveillance/asterix/values.d.ts +10 -0
  42. package/dist/surveillance/asterix/values.d.ts.map +1 -0
  43. package/dist/surveillance/asterix/xml-loader.d.ts +46 -0
  44. package/dist/surveillance/asterix/xml-loader.d.ts.map +1 -0
  45. package/dist/surveillance/index.d.ts +7 -0
  46. package/dist/surveillance/index.d.ts.map +1 -0
  47. package/dist/surveillance/mlat/index.d.ts +16 -0
  48. package/dist/surveillance/mlat/index.d.ts.map +1 -0
  49. package/package.json +40 -6
  50. package/src/config/asterix.dtd +78 -0
  51. package/src/config/asterix.ini +17 -0
  52. package/src/config/asterix_bds.xml +462 -0
  53. package/src/config/asterix_cat001_1_1.xml +872 -0
  54. package/src/config/asterix_cat001_1_2.xml +836 -0
  55. package/src/config/asterix_cat002_1_0.xml +258 -0
  56. package/src/config/asterix_cat004_1_12.xml +1713 -0
  57. package/src/config/asterix_cat008_1_0.xml +353 -0
  58. package/src/config/asterix_cat010_1_1.xml +791 -0
  59. package/src/config/asterix_cat011_1_2.xml +1691 -0
  60. package/src/config/asterix_cat019_1_2.xml +293 -0
  61. package/src/config/asterix_cat020_1_7.xml +1256 -0
  62. package/src/config/asterix_cat021_0_26.xml +902 -0
  63. package/src/config/asterix_cat021_1_4.xml +1594 -0
  64. package/src/config/asterix_cat021_1_8.xml +1594 -0
  65. package/src/config/asterix_cat021_2_4.xml +2191 -0
  66. package/src/config/asterix_cat023_1_2.xml +357 -0
  67. package/src/config/asterix_cat025_1_2.xml +306 -0
  68. package/src/config/asterix_cat030_6_2.xml +1387 -0
  69. package/src/config/asterix_cat031_6_2.xml +214 -0
  70. package/src/config/asterix_cat032_6_2.xml +465 -0
  71. package/src/config/asterix_cat032_7_0.xml +702 -0
  72. package/src/config/asterix_cat034_1_26.xml +586 -0
  73. package/src/config/asterix_cat034_1_27.xml +683 -0
  74. package/src/config/asterix_cat048_1_14.xml +1142 -0
  75. package/src/config/asterix_cat048_1_21.xml +1241 -0
  76. package/src/config/asterix_cat062_0_17.xml +1442 -0
  77. package/src/config/asterix_cat062_1_16.xml +3031 -0
  78. package/src/config/asterix_cat062_1_18.xml +3303 -0
  79. package/src/config/asterix_cat062_1_7.xml +2817 -0
  80. package/src/config/asterix_cat062_1_9.xml +737 -0
  81. package/src/config/asterix_cat063_1_3.xml +298 -0
  82. package/src/config/asterix_cat065_1_2.xml +168 -0
  83. package/src/config/asterix_cat065_1_3.xml +183 -0
  84. package/src/config/asterix_cat094_0_1.xml +1103 -0
  85. package/src/config/asterix_cat205_1_0.xml +385 -0
  86. package/src/config/asterix_cat240_1_3.xml +289 -0
  87. package/src/config/asterix_cat242_1_0.xml +644 -0
  88. package/src/config/asterix_cat247_1_2.xml +92 -0
  89. package/src/config/asterix_cat252_6_1.xml +1826 -0
  90. package/src/config/asterix_cat252_6_2.xml +1831 -0
  91. package/src/config/asterix_cat252_7_0.xml +1867 -0
  92. package/src/config/eurocontroll_version/asterix-spec.xsd +343 -0
  93. package/src/config/eurocontroll_version/asterix_cat094.xml +457 -0
@@ -0,0 +1,289 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE Category SYSTEM "asterix.dtd">
3
+
4
+ <!--
5
+
6
+ Asterix Category 240 v1.3 definition (Radar Video Transmission)
7
+
8
+ Author: dsalantic
9
+ Created: 17.5.2017.
10
+
11
+ -->
12
+
13
+ <Category id="240" name="Radar Video Transmission" ver="1.3">
14
+
15
+
16
+ <DataItem id="000">
17
+ <DataItemName>Message Type</DataItemName>
18
+ <DataItemDefinition>This Data Item allows for a more convenient handling of the messages at the receiver side by further defining the type of transaction.</DataItemDefinition>
19
+ <DataItemFormat desc="One-octet fixed length Data Item.">
20
+ <Fixed length="1">
21
+ <Bits from="8" to="1">
22
+ <BitsShortName>TYP</BitsShortName>
23
+ <BitsName>Message Type</BitsName>
24
+ <BitsValue val="1">Video Summary message</BitsValue>
25
+ <BitsValue val="2">Video message</BitsValue>
26
+ </Bits>
27
+ </Fixed>
28
+ </DataItemFormat>
29
+ </DataItem>
30
+
31
+ <DataItem id="010">
32
+ <DataItemName>Data Source Identifier</DataItemName>
33
+ <DataItemDefinition>Identification of the system from which the data are received.</DataItemDefinition>
34
+ <DataItemFormat desc="Two-octets fixed length data item.">
35
+ <Fixed length="2">
36
+ <Bits from="16" to="9">
37
+ <BitsShortName>SAC</BitsShortName>
38
+ <BitsName>System Area Code</BitsName>
39
+ </Bits>
40
+ <Bits from="8" to="1">
41
+ <BitsShortName>SIC</BitsShortName>
42
+ <BitsName>System Identification Code</BitsName>
43
+ </Bits>
44
+ </Fixed>
45
+ </DataItemFormat>
46
+ </DataItem>
47
+
48
+ <DataItem id="020">
49
+ <DataItemName>Video Record Header</DataItemName>
50
+ <DataItemDefinition>Contains a message sequence identifier.</DataItemDefinition>
51
+ <DataItemFormat desc="Four-Octets fixed length data item.">
52
+ <Fixed length="4">
53
+ <Bits from="32" to="1">
54
+ <BitsShortName>MSG_INDEX</BitsShortName>
55
+ <BitsName>Message Sequence Identifier</BitsName>
56
+ </Bits>
57
+ </Fixed>
58
+ </DataItemFormat>
59
+ </DataItem>
60
+
61
+ <DataItem id="030">
62
+ <DataItemName>Video Summary</DataItemName>
63
+ <DataItemDefinition>Contains an ASCII string (free text to define stream meta data).</DataItemDefinition>
64
+ <DataItemFormat desc="Repetitive Data Item, starting with a one-octet Field Repetition Indicator (REP) followed by at least one sub-field of one octet (ASCII character).">
65
+ <Repetitive>
66
+ <Fixed length="1">
67
+ <Bits from="8" to="1" encode="ascii">
68
+ <BitsShortName>CHAR</BitsShortName>
69
+ <BitsName>Character in ASCII representation</BitsName>
70
+ </Bits>
71
+ </Fixed>
72
+ </Repetitive>
73
+ </DataItemFormat>
74
+ </DataItem>
75
+
76
+ <DataItem id="040">
77
+ <DataItemName>Video Header Nano</DataItemName>
78
+ <DataItemDefinition>Defines a group of video cells corresponding to a video radial: all cells have the same size in azimuth and range and are consecutive in range.</DataItemDefinition>
79
+ <DataItemFormat desc="Twelve-Octets fixed length data item.">
80
+ <Fixed length="12">
81
+ <Bits from="96" to="81">
82
+ <BitsShortName>START_AZ</BitsShortName>
83
+ <BitsName>Start azimuth of the cells group</BitsName>
84
+ <BitsUnit max="360" scale="0.0054931640625">deg</BitsUnit>
85
+ </Bits>
86
+ <Bits from="80" to="65">
87
+ <BitsShortName>END_AZ</BitsShortName>
88
+ <BitsName>End azimuth of the cells group</BitsName>
89
+ <BitsUnit max="360" scale="0.0054931640625">deg</BitsUnit>
90
+ </Bits>
91
+ <Bits from="64" to="33">
92
+ <BitsShortName>START_RG</BitsShortName>
93
+ <BitsName>Starting range of the cells group, expressed in number of cells</BitsName>
94
+ </Bits>
95
+ <Bits from="32" to="1">
96
+ <BitsShortName>CELL_DUR</BitsShortName>
97
+ <BitsName>Video cell duration in nano-seconds</BitsName>
98
+ <BitsUnit>ns</BitsUnit>
99
+ </Bits>
100
+ </Fixed>
101
+ </DataItemFormat>
102
+ </DataItem>
103
+
104
+ <DataItem id="041">
105
+ <DataItemName>Video Header Femto</DataItemName>
106
+ <DataItemDefinition>Defines a group of video cells corresponding to a video radial: all cells have the same size in azimuth and range and are consecutive in range.</DataItemDefinition>
107
+ <DataItemFormat desc="Twelve-Octets fixed length data item.">
108
+ <Fixed length="12">
109
+ <Bits from="96" to="81">
110
+ <BitsShortName>START_AZ</BitsShortName>
111
+ <BitsName>Start azimuth of the cells group</BitsName>
112
+ <BitsUnit max="360" scale="0.0054931640625">deg</BitsUnit>
113
+ </Bits>
114
+ <Bits from="80" to="65">
115
+ <BitsShortName>END_AZ</BitsShortName>
116
+ <BitsName>End azimuth of the cells group</BitsName>
117
+ <BitsUnit max="360" scale="0.0054931640625">deg</BitsUnit>
118
+ </Bits>
119
+ <Bits from="64" to="33">
120
+ <BitsShortName>START_RG</BitsShortName>
121
+ <BitsName>Starting range of the cells group, expressed in number of cells</BitsName>
122
+ </Bits>
123
+ <Bits from="32" to="1">
124
+ <BitsShortName>CELL_DUR</BitsShortName>
125
+ <BitsName>Video cell duration in femto-seconds</BitsName>
126
+ <BitsUnit>fs</BitsUnit>
127
+ </Bits>
128
+ </Fixed>
129
+ </DataItemFormat>
130
+ </DataItem>
131
+
132
+ <DataItem id="048">
133
+ <DataItemName>Video Cells Resolution and Data Compression Indicator</DataItemName>
134
+ <DataItemDefinition>This Data Item defines the bit resolution used in the coding of the video signal amplitude in all cells of the video group as well as an indicator whether data compression has been applied.</DataItemDefinition>
135
+ <DataItemFormat desc="Two-Octets fixed length data item.">
136
+ <Fixed length="2">
137
+ <Bits bit="16">
138
+ <BitsShortName>C</BitsShortName>
139
+ <BitsName>Data Compression Indicator</BitsName>
140
+ <BitsValue val="0">No compression applied</BitsValue>
141
+ <BitsValue val="1">Compression applied</BitsValue>
142
+ </Bits>
143
+ <Bits from="15" to="9">
144
+ <BitsShortName>spare</BitsShortName>
145
+ <BitsName>spares bit set to 0</BitsName>
146
+ <BitsConst>0</BitsConst>
147
+ </Bits>
148
+ <Bits from="8" to="1">
149
+ <BitsShortName>RES</BitsShortName>
150
+ <BitsName>Bit resolution used for the coding of the amplitude of the video signal in every cell of a video group</BitsName>
151
+ <BitsValue val="1">Monobit Resolution (coding length = 1 bit)</BitsValue>
152
+ <BitsValue val="2">Low Resolution (coding length = 2 bits)</BitsValue>
153
+ <BitsValue val="3">Medium Resolution (coding length = 4 bits)</BitsValue>
154
+ <BitsValue val="4">High Resolution (coding length = 8 bits)</BitsValue>
155
+ <BitsValue val="5">Very High Resolution (coding length = 16 bits)</BitsValue>
156
+ <BitsValue val="6">Ultra High Resolution (coding length = 32 bits)</BitsValue>
157
+ </Bits>
158
+ </Fixed>
159
+ </DataItemFormat>
160
+ </DataItem>
161
+
162
+ <DataItem id="049">
163
+ <DataItemName>Video Octets and Video Cells Counters</DataItemName>
164
+ <DataItemDefinition>This Data Item contains the number of valid octets (i.e. nonempty octets) used in the coding of the video signal amplitude and the number of valid cells in the video group</DataItemDefinition>
165
+ <DataItemFormat desc="Five-Octets fixed length data item.">
166
+ <Fixed length="5">
167
+ <Bits from="40" to="25">
168
+ <BitsShortName>NB_VB</BitsShortName>
169
+ <BitsName>Number of valid octets</BitsName>
170
+ </Bits>
171
+ <Bits from="24" to="1">
172
+ <BitsShortName>NB_CELLS</BitsShortName>
173
+ <BitsName>Number of valid cells</BitsName>
174
+ </Bits>
175
+ </Fixed>
176
+ </DataItemFormat>
177
+ </DataItem>
178
+
179
+ <DataItem id="050">
180
+ <DataItemName>Video Block Low Data Volume</DataItemName>
181
+ <DataItemDefinition>Contains a group of video cells corresponding to a video radial; all cells have the same size in azimuth and range and are consecutive in range. This item shall be used in cases where a low data volume, up to 1020 bytes, will be transmitted.</DataItemDefinition>
182
+ <DataItemFormat desc="Repetitive Data Item starting with a one-octet Field Repetition Indicator (REP) followed by at least one video block of four-octets.">
183
+ <Repetitive>
184
+ <Fixed length="4">
185
+ <Bits from="32" to="1" encode="hex">
186
+ <BitsShortName>VIDEO</BitsShortName>
187
+ <BitsName>Video signal amplitude of the cells in the group</BitsName>
188
+ </Bits>
189
+ </Fixed>
190
+ </Repetitive>
191
+ </DataItemFormat>
192
+ </DataItem>
193
+
194
+ <DataItem id="051">
195
+ <DataItemName>Video Block Medium Data Volume</DataItemName>
196
+ <DataItemDefinition>Contains a group of video cells corresponding to a video radial; all cells have the same size in azimuth and range and are consecutive in range. This item shall be used in cases where a medium data volume, up to 16320 bytes, will be transmitted.</DataItemDefinition>
197
+ <DataItemFormat desc="Repetitive Data Item starting with a one-octet Field Repetition Indicator (REP) followed by at least one video block of sixty fouroctets.">
198
+ <Repetitive>
199
+ <Fixed length="64">
200
+ <Bits from="512" to="1" encode="hex">
201
+ <BitsShortName>VIDEO</BitsShortName>
202
+ <BitsName>Video signal amplitude of the cells in the group</BitsName>
203
+ </Bits>
204
+ </Fixed>
205
+ </Repetitive>
206
+ </DataItemFormat>
207
+ </DataItem>
208
+
209
+ <DataItem id="052">
210
+ <DataItemName>Video Block High Data Volume</DataItemName>
211
+ <DataItemDefinition>Contains a group of video cells corresponding to a video radial; all cells have the same size in azimuth and range and are consecutive in range. This item shall be used in cases where a high data volume, up to 65024 bytes, will be transmitted.</DataItemDefinition>
212
+ <DataItemFormat desc="Repetitive Data Item starting with a one-octet Field Repetition Indicator (REP) followed by at least one video block of two hundred fifty six-octets.">
213
+ <Repetitive>
214
+ <Fixed length="256">
215
+ <Bits from="2048" to="1" encode="hex">
216
+ <BitsShortName>VIDEO</BitsShortName>
217
+ <BitsName>Video signal amplitude of the cells in the group</BitsName>
218
+ </Bits>
219
+ </Fixed>
220
+ </Repetitive>
221
+ </DataItemFormat>
222
+ </DataItem>
223
+
224
+ <DataItem id="140" >
225
+ <DataItemName>Time Of Day</DataItemName>
226
+ <DataItemDefinition>Absolute time stamping expressed as UTC.</DataItemDefinition>
227
+ <DataItemFormat desc="Three-octet fixed length Data Item">
228
+ <Fixed length="3">
229
+ <Bits from="24" to="1">
230
+ <BitsShortName>ToD</BitsShortName>
231
+ <BitsName>Time Of Day</BitsName>
232
+ <BitsUnit scale="0.0078125">s</BitsUnit>
233
+ </Bits>
234
+ </Fixed>
235
+ </DataItemFormat>
236
+ </DataItem>
237
+
238
+ <!--Special Purpose - content unknown -->
239
+ <DataItem id="SP" rule="optional">
240
+ <DataItemName>Special Purpose</DataItemName>
241
+ <DataItemDefinition>Special information</DataItemDefinition>
242
+ <DataItemFormat desc="Repetitive data length item">
243
+ <Explicit>
244
+ <Fixed length="1">
245
+ <Bits from="8" to="1">
246
+ <BitsShortName>SP</BitsShortName>
247
+ <BitsName>SP value</BitsName>
248
+ </Bits>
249
+ </Fixed>
250
+ </Explicit>
251
+ </DataItemFormat>
252
+ </DataItem>
253
+
254
+ <!--Reserved Field - content unknown -->
255
+ <DataItem id="RE" >
256
+ <DataItemName>Reserved Expansion Field</DataItemName>
257
+ <DataItemDefinition>RE</DataItemDefinition>
258
+ <DataItemFormat desc="Explicit">
259
+ <Explicit>
260
+ <Fixed length="1">
261
+ <Bits from="8" to="1">
262
+ <BitsShortName>RE</BitsShortName>
263
+ <BitsName>RE value</BitsName>
264
+ </Bits>
265
+ </Fixed>
266
+ </Explicit>
267
+ </DataItemFormat>
268
+ <DataItemNote/>
269
+ </DataItem>
270
+
271
+ <UAP>
272
+ <UAPItem bit="0" frn="1" len="2">010</UAPItem>
273
+ <UAPItem bit="1" frn="2" len="1">000</UAPItem>
274
+ <UAPItem bit="2" frn="3" len="4">020</UAPItem>
275
+ <UAPItem bit="3" frn="4" len="1+n">030</UAPItem>
276
+ <UAPItem bit="4" frn="5" len="12">040</UAPItem>
277
+ <UAPItem bit="5" frn="6" len="12">041</UAPItem>
278
+ <UAPItem bit="6" frn="7" len="2">048</UAPItem>
279
+ <UAPItem bit="7" frn="FX" len="-">-</UAPItem>
280
+ <UAPItem bit="8" frn="8" len="5">049</UAPItem>
281
+ <UAPItem bit="9" frn="9" len="1+4*n">050</UAPItem>
282
+ <UAPItem bit="10" frn="10" len="1+64*n">051</UAPItem>
283
+ <UAPItem bit="11" frn="11" len="1+256*n">052</UAPItem>
284
+ <UAPItem bit="12" frn="12" len="3">140</UAPItem>
285
+ <UAPItem bit="13" frn="13" len="1+1+">RE</UAPItem>
286
+ <UAPItem bit="14" frn="14" len="1+1+">SP</UAPItem>
287
+ <UAPItem bit="15" frn="FX" len="-">-</UAPItem>
288
+ </UAP>
289
+ </Category>