FERS 0.1.0
The Flexible Extensible Radar Simulator
Loading...
Searching...
No Matches
fers-xml.xsd
Go to the documentation of this file.
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 XSD for FERS XML simulation script files.
4
5 Copyright (C) 2023-present FERS contributors (see AUTHORS.md).
6
7 This file is part of FERS. FERS is free software, licensed under the GPLv2.
8-->
9<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
10 <xs:element name="simulation">
11 <xs:complexType>
12 <xs:sequence>
13 <!-- First element must always be parameters, and only 1 allowed -->
14 <xs:element ref="parameters"/>
15
16 <!-- After parameters, the following elements can appear in any order -->
17 <xs:choice maxOccurs="unbounded">
18 <!-- At least 1 pulse is required -->
19 <xs:element ref="waveform"/>
20 <!-- At least 1 timing is required -->
21 <xs:element ref="timing"/>
22 <!-- At least 1 antenna is required -->
23 <xs:element ref="antenna"/>
24 <!-- At least 1 platform is required -->
25 <xs:element ref="platform"/>
26 <!-- Any number of include elements is allowed -->
27 <xs:element ref="include" minOccurs="0"/>
28 </xs:choice>
29 </xs:sequence>
30 <xs:attribute name="name" use="required"/>
31 </xs:complexType>
32 </xs:element>
33
34 <!-- Parameters Element -->
35 <xs:element name="parameters">
36 <xs:complexType>
37 <xs:sequence>
38 <xs:element name="starttime" type="xs:string"/>
39 <xs:element name="endtime" type="xs:string"/>
40 <xs:element name="rate" type="xs:string"/>
41 <xs:element minOccurs="0" name="c" type="xs:string"/>
42 <xs:element minOccurs="0" name="simSamplingRate" type="xs:string"/>
43 <xs:element minOccurs="0" name="randomseed" type="xs:string"/>
44 <xs:element minOccurs="0" name="adc_bits" type="xs:string"/>
45 <xs:element minOccurs="0" name="oversample" type="xs:string"/>
46 <xs:element minOccurs="0" name="rotationangleunit">
47 <xs:simpleType>
48 <xs:restriction base="xs:token">
49 <xs:enumeration value="deg"/>
50 <xs:enumeration value="rad"/>
51 </xs:restriction>
52 </xs:simpleType>
53 </xs:element>
54 <xs:element minOccurs="0" ref="origin"/>
55 <xs:element minOccurs="0" ref="coordinatesystem"/>
56 </xs:sequence>
57 </xs:complexType>
58 </xs:element>
59
60 <!-- Geodetic origin used only for ENU KML/geospatial export -->
61 <xs:element name="origin">
62 <xs:complexType>
63 <xs:attribute name="latitude" type="xs:double" use="required"/>
64 <xs:attribute name="longitude" type="xs:double" use="required"/>
65 <xs:attribute name="altitude" type="xs:double" default="0"/>
66 </xs:complexType>
67 </xs:element>
68
69 <!-- Coordinate system used only for KML/geospatial export -->
70 <xs:element name="coordinatesystem">
71 <xs:complexType>
72 <xs:attribute name="frame" use="required">
73 <xs:simpleType>
74 <xs:restriction base="xs:token">
75 <xs:enumeration value="ENU"/>
76 <xs:enumeration value="UTM"/>
77 <xs:enumeration value="ECEF"/>
78 </xs:restriction>
79 </xs:simpleType>
80 </xs:attribute>
81 <xs:attribute name="zone" type="xs:integer"/>
82 <xs:attribute name="hemisphere">
83 <xs:simpleType>
84 <xs:restriction base="xs:token">
85 <xs:enumeration value="N"/>
86 <xs:enumeration value="S"/>
87 </xs:restriction>
88 </xs:simpleType>
89 </xs:attribute>
90 </xs:complexType>
91 </xs:element>
92
93 <xs:element name="waveform">
94 <xs:complexType>
95 <xs:sequence>
96 <xs:element name="power" type="xs:string"/>
97 <xs:element name="carrier_frequency" type="xs:string"/>
98 <xs:choice>
99 <xs:element name="pulsed_from_file">
100 <xs:complexType>
101 <xs:attribute name="filename" type="xs:string" use="required"/>
102 </xs:complexType>
103 </xs:element>
104 <xs:element name="cw">
105 <xs:complexType/>
106 </xs:element>
107 <xs:element name="fmcw_linear_chirp">
108 <xs:complexType>
109 <xs:sequence>
110 <xs:element name="chirp_bandwidth" type="xs:string"/>
111 <xs:element name="chirp_duration" type="xs:string"/>
112 <xs:element name="chirp_period" type="xs:string"/>
113 <xs:element minOccurs="0" name="start_frequency_offset" type="xs:string"/>
114 <xs:element minOccurs="0" name="chirp_count" type="xs:string">
115 <xs:annotation>
116 <xs:documentation>
117 Per-schedule-segment maximum chirp count. If a transmitter has multiple
118 schedule periods, each period emits up to this many chirps.
119 </xs:documentation>
120 </xs:annotation>
121 </xs:element>
122 </xs:sequence>
123 <xs:attribute name="direction" use="required">
124 <xs:simpleType>
125 <xs:restriction base="xs:token">
126 <xs:enumeration value="up"/>
127 <xs:enumeration value="down"/>
128 </xs:restriction>
129 </xs:simpleType>
130 </xs:attribute>
131 </xs:complexType>
132 </xs:element>
133 <xs:element name="fmcw_triangle">
134 <xs:complexType>
135 <xs:sequence>
136 <xs:element name="chirp_bandwidth" type="xs:string"/>
137 <xs:element name="chirp_duration" type="xs:string"/>
138 <xs:element minOccurs="0" name="start_frequency_offset" type="xs:string"/>
139 <xs:element minOccurs="0" name="triangle_count" type="xs:string">
140 <xs:annotation>
141 <xs:documentation>
142 Per-schedule-segment maximum complete triangle count. If a transmitter has
143 multiple schedule periods, each period emits up to this many full triangles.
144 </xs:documentation>
145 </xs:annotation>
146 </xs:element>
147 </xs:sequence>
148 </xs:complexType>
149 </xs:element>
150 </xs:choice>
151 </xs:sequence>
152 <xs:attribute name="name" type="xs:string" use="required"/>
153 </xs:complexType>
154 </xs:element>
155
156 <!-- Timing Source Element -->
157 <xs:element name="timing">
158 <xs:complexType>
159 <xs:sequence>
160 <xs:element name="frequency" type="xs:string"/>
161 <xs:element minOccurs="0" name="freq_offset" type="xs:string"/>
162 <xs:element minOccurs="0" name="random_freq_offset_stdev" type="xs:string"/>
163 <xs:element minOccurs="0" name="phase_offset" type="xs:string"/>
164 <xs:element minOccurs="0" name="random_phase_offset_stdev" type="xs:string"/>
165 <xs:element minOccurs="0" ref="noise_entry" maxOccurs="unbounded"/>
166 </xs:sequence>
167 <xs:attribute name="name" use="required"/>
168 <xs:attribute name="synconpulse" default="false">
169 <xs:simpleType>
170 <xs:restriction base="xs:token">
171 <xs:enumeration value="true"/>
172 <xs:enumeration value="false"/>
173 </xs:restriction>
174 </xs:simpleType>
175 </xs:attribute>
176 </xs:complexType>
177 </xs:element>
178
179 <xs:element name="noise_entry">
180 <xs:complexType>
181 <xs:sequence>
182 <xs:element name="alpha" type="xs:string"/>
183 <xs:element name="weight" type="xs:string"/>
184 </xs:sequence>
185 </xs:complexType>
186 </xs:element>
187
188 <!-- Antenna Element -->
189 <xs:element name="antenna">
190 <xs:complexType>
191 <xs:sequence>
192 <xs:element minOccurs="0" name="alpha" type="xs:string"/>
193 <xs:element minOccurs="0" name="beta" type="xs:string"/>
194 <xs:element minOccurs="0" name="gamma" type="xs:string"/>
195 <xs:element minOccurs="0" name="diameter" type="xs:string"/>
196 <xs:element minOccurs="0" name="azscale" type="xs:string"/>
197 <xs:element minOccurs="0" name="elscale" type="xs:string"/>
198 <xs:element minOccurs="0" name="efficiency" type="xs:string"/>
199 </xs:sequence>
200 <xs:attribute name="name" use="required"/>
201 <xs:attribute name="pattern" use="required"/>
202 <xs:attribute name="filename"/>
203 </xs:complexType>
204 </xs:element>
205
206 <!-- Platform Element -->
207 <xs:element name="platform">
208 <xs:complexType>
209 <xs:sequence>
210 <xs:element ref="motionpath"/>
211 <xs:choice>
212 <xs:element ref="rotationpath"/>
213 <xs:element ref="fixedrotation"/>
214 </xs:choice>
215 <xs:choice minOccurs="0" maxOccurs="unbounded">
216 <xs:element ref="monostatic"/>
217 <xs:element ref="transmitter"/>
218 <xs:element ref="receiver"/>
219 <xs:element ref="target"/>
220 </xs:choice>
221 </xs:sequence>
222 <xs:attribute name="name" use="required"/>
223 </xs:complexType>
224 </xs:element>
225
226 <!-- Motion paths and Position Waypoints -->
227 <xs:element name="motionpath">
228 <xs:complexType>
229 <xs:sequence>
230 <!-- At least 1 positionwaypoint, no max limit -->
231 <xs:element maxOccurs="unbounded" ref="positionwaypoint"/>
232 </xs:sequence>
233 <xs:attribute name="interpolation" default="static">
234 <xs:simpleType>
235 <xs:restriction base="xs:token">
236 <xs:enumeration value="static"/>
237 <xs:enumeration value="linear"/>
238 <xs:enumeration value="cubic"/>
239 </xs:restriction>
240 </xs:simpleType>
241 </xs:attribute>
242 </xs:complexType>
243 </xs:element>
244
245 <!-- Definition for positionwaypoint element -->
246 <xs:element name="positionwaypoint">
247 <xs:complexType>
248 <xs:sequence>
249 <xs:element name="x" type="xs:string"/>
250 <xs:element name="y" type="xs:string"/>
251 <xs:element name="altitude" type="xs:string"/>
252 <xs:element name="time" type="xs:string"/>
253 </xs:sequence>
254 </xs:complexType>
255 </xs:element>
256
257 <!-- Constant Rate Rotation -->
258 <xs:element name="fixedrotation">
259 <xs:complexType>
260 <xs:sequence>
261 <xs:element name="startazimuth" type="xs:string"/>
262 <xs:element name="startelevation" type="xs:string"/>
263 <xs:element name="azimuthrate" type="xs:string"/>
264 <xs:element name="elevationrate" type="xs:string"/>
265 </xs:sequence>
266 </xs:complexType>
267 </xs:element>
268
269 <!-- Rotation Paths and Waypoints -->
270 <xs:element name="rotationpath">
271 <xs:complexType>
272 <xs:sequence>
273 <xs:element maxOccurs="unbounded" ref="rotationwaypoint"/>
274 </xs:sequence>
275 <xs:attribute name="interpolation" use="required">
276 <xs:simpleType>
277 <xs:restriction base="xs:token">
278 <xs:enumeration value="static"/>
279 <xs:enumeration value="linear"/>
280 <xs:enumeration value="cubic"/>
281 </xs:restriction>
282 </xs:simpleType>
283 </xs:attribute>
284 </xs:complexType>
285 </xs:element>
286
287 <xs:element name="rotationwaypoint">
288 <xs:complexType>
289 <xs:sequence>
290 <xs:element name="azimuth" type="xs:string"/>
291 <xs:element name="elevation" type="xs:string"/>
292 <xs:element name="time" type="xs:string"/>
293 </xs:sequence>
294 </xs:complexType>
295 </xs:element>
296
297 <!-- Schedule Element -->
298 <xs:element name="schedule">
299 <xs:complexType>
300 <xs:sequence>
301 <xs:element maxOccurs="unbounded" ref="period"/>
302 </xs:sequence>
303 </xs:complexType>
304 </xs:element>
305
306 <!-- Period Element -->
307 <xs:element name="period">
308 <xs:complexType>
309 <xs:attribute name="start" type="xs:string" use="required"/>
310 <xs:attribute name="end" type="xs:string" use="required"/>
311 </xs:complexType>
312 </xs:element>
313
314 <xs:complexType name="receiverFmcwModeType">
315 <xs:sequence>
316 <xs:element name="dechirp_reference" minOccurs="0" maxOccurs="1">
317 <xs:complexType>
318 <xs:attribute name="source" use="required">
319 <xs:simpleType>
320 <xs:restriction base="xs:string">
321 <xs:enumeration value="attached"/>
322 <xs:enumeration value="transmitter"/>
323 <xs:enumeration value="custom"/>
324 </xs:restriction>
325 </xs:simpleType>
326 </xs:attribute>
327 <xs:attribute name="transmitter_name" type="xs:string"/>
328 <xs:attribute name="waveform_name" type="xs:string"/>
329 </xs:complexType>
330 </xs:element>
331 <xs:element name="if_sample_rate" type="xs:string" minOccurs="0" maxOccurs="1"/>
332 <xs:element name="if_filter_bandwidth" type="xs:string" minOccurs="0" maxOccurs="1"/>
333 <xs:element name="if_filter_transition_width" type="xs:string" minOccurs="0" maxOccurs="1"/>
334 </xs:sequence>
335 <xs:attribute name="dechirp_mode" default="none">
336 <xs:simpleType>
337 <xs:restriction base="xs:string">
338 <xs:enumeration value="none"/>
339 <xs:enumeration value="physical"/>
340 <xs:enumeration value="ideal"/>
341 </xs:restriction>
342 </xs:simpleType>
343 </xs:attribute>
344 </xs:complexType>
345
346 <!-- Monostatic radar installations -->
347 <xs:element name="monostatic">
348 <xs:complexType>
349 <xs:sequence>
350 <xs:choice>
351 <xs:element name="pulsed_mode">
352 <xs:complexType>
353 <xs:sequence>
354 <xs:element name="prf" type="xs:string"/>
355 <xs:element name="window_skip" type="xs:string"/>
356 <xs:element name="window_length" type="xs:string"/>
357 </xs:sequence>
358 </xs:complexType>
359 </xs:element>
360 <xs:element name="cw_mode">
361 <xs:complexType/>
362 </xs:element>
363 <xs:element name="fmcw_mode" type="receiverFmcwModeType"/>
364 </xs:choice>
365 <xs:element minOccurs="0" name="noise_temp" type="xs:string"/>
366 <xs:element minOccurs="0" ref="schedule"/>
367 </xs:sequence>
368 <xs:attribute name="name" use="required"/>
369 <xs:attribute name="antenna" type="xs:string" use="required"/>
370 <xs:attribute name="waveform" type="xs:string" use="required"/>
371 <xs:attribute name="timing" type="xs:string" use="required"/>
372 <xs:attribute name="nodirect" type="xs:boolean" default="false"/>
373 <xs:attribute name="nopropagationloss" type="xs:boolean" default="false"/>
374 </xs:complexType>
375 </xs:element>
376
377 <!-- Standalone Transmitter -->
378 <xs:element name="transmitter">
379 <xs:complexType>
380 <xs:sequence>
381 <xs:choice>
382 <xs:element name="pulsed_mode">
383 <xs:complexType>
384 <xs:sequence>
385 <xs:element name="prf" type="xs:string"/>
386 </xs:sequence>
387 </xs:complexType>
388 </xs:element>
389 <xs:element name="cw_mode">
390 <xs:complexType/>
391 </xs:element>
392 <xs:element name="fmcw_mode">
393 <xs:complexType/>
394 </xs:element>
395 </xs:choice>
396 <xs:element minOccurs="0" ref="schedule"/>
397 </xs:sequence>
398 <xs:attribute name="name" use="required"/>
399 <xs:attribute name="waveform" type="xs:string" use="required"/>
400 <xs:attribute name="antenna" type="xs:string" use="required"/>
401 <xs:attribute name="timing" type="xs:string" use="required"/>
402 </xs:complexType>
403 </xs:element>
404
405 <!-- Standalone Receiver -->
406 <xs:element name="receiver">
407 <xs:complexType>
408 <xs:sequence>
409 <xs:choice>
410 <xs:element name="pulsed_mode">
411 <xs:complexType>
412 <xs:sequence>
413 <xs:element name="prf" type="xs:string"/>
414 <xs:element name="window_skip" type="xs:string"/>
415 <xs:element name="window_length" type="xs:string"/>
416 </xs:sequence>
417 </xs:complexType>
418 </xs:element>
419 <xs:element name="cw_mode">
420 <xs:complexType/>
421 </xs:element>
422 <xs:element name="fmcw_mode" type="receiverFmcwModeType"/>
423 </xs:choice>
424 <xs:element minOccurs="0" name="noise_temp" type="xs:string"/>
425 <xs:element minOccurs="0" ref="schedule"/>
426 </xs:sequence>
427 <xs:attribute name="name" use="required"/>
428 <xs:attribute name="antenna" type="xs:string" use="required"/>
429 <xs:attribute name="timing" type="xs:string" use="required"/>
430 <xs:attribute name="nodirect" type="xs:boolean" default="false"/>
431 <xs:attribute name="nopropagationloss" type="xs:boolean" default="false"/>
432 </xs:complexType>
433 </xs:element>
434
435 <!-- Target -->
436 <xs:element name="target">
437 <xs:complexType>
438 <xs:sequence>
439 <xs:element ref="rcs"/>
440 <xs:element ref="model" minOccurs="0"/> <!-- model is optional -->
441 </xs:sequence>
442 <xs:attribute name="name" use="required"/>
443 </xs:complexType>
444 </xs:element>
445
446 <xs:element name="rcs">
447 <xs:complexType>
448 <xs:sequence>
449 <xs:element name="value" type="xs:string" minOccurs="0"/> <!-- value is optional -->
450 </xs:sequence>
451 <xs:attribute name="type" use="required"/>
452 <xs:attribute name="filename" type="xs:string"/> <!-- filename is optional -->
453 </xs:complexType>
454 </xs:element>
455
456 <xs:element name="model">
457 <xs:complexType>
458 <xs:sequence>
459 <xs:element name="k" type="xs:string" minOccurs="0"/> <!-- k is optional -->
460 </xs:sequence>
461 <xs:attribute name="type" use="required"/>
462 </xs:complexType>
463 </xs:element>
464
465 <!-- Include another XML file -->
466 <xs:element name="include" type="xs:string"/>
467</xs:schema>