colregs 0.1.0

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 (54) hide show
  1. package/LICENSE +34 -0
  2. package/PROVENANCE.md +65 -0
  3. package/README.md +50 -0
  4. package/data/applicability.json +1108 -0
  5. package/data/facts.json +308 -0
  6. package/data/geometry.json +372 -0
  7. package/data/images.json +876 -0
  8. package/data/lights.json +229 -0
  9. package/data/rules.json +843 -0
  10. package/fixtures/applicability-fixtures.json +412 -0
  11. package/images/NRHB_23_Intl_dii.png +0 -0
  12. package/images/NRHB_23_a.png +0 -0
  13. package/images/NRHB_23_aii.png +0 -0
  14. package/images/NRHB_23_b.png +0 -0
  15. package/images/NRHB_23_di.png +0 -0
  16. package/images/NRHB_23_e.png +0 -0
  17. package/images/NRHB_24_a.png +0 -0
  18. package/images/NRHB_24_av.png +0 -0
  19. package/images/NRHB_24_d.png +0 -0
  20. package/images/NRHB_24_e.png +0 -0
  21. package/images/NRHB_24_eiii.png +0 -0
  22. package/images/NRHB_24_f.png +0 -0
  23. package/images/NRHB_24_j.png +0 -0
  24. package/images/NRHB_25_a.png +0 -0
  25. package/images/NRHB_25_b.png +0 -0
  26. package/images/NRHB_25_c.png +0 -0
  27. package/images/NRHB_25_d.png +0 -0
  28. package/images/NRHB_25_dii.png +0 -0
  29. package/images/NRHB_25_e.png +0 -0
  30. package/images/NRHB_26_b.png +0 -0
  31. package/images/NRHB_26_biii.png +0 -0
  32. package/images/NRHB_26_ciii.png +0 -0
  33. package/images/NRHB_27_a.png +0 -0
  34. package/images/NRHB_27_aiii.png +0 -0
  35. package/images/NRHB_27_biii.png +0 -0
  36. package/images/NRHB_27_biv.png +0 -0
  37. package/images/NRHB_27_c.png +0 -0
  38. package/images/NRHB_27_d.png +0 -0
  39. package/images/NRHB_27_diii.png +0 -0
  40. package/images/NRHB_27_ei.png +0 -0
  41. package/images/NRHB_27_eii.png +0 -0
  42. package/images/NRHB_27_f.png +0 -0
  43. package/images/NRHB_28.png +0 -0
  44. package/images/NRHB_29_a.png +0 -0
  45. package/images/NRHB_29_aiii.png +0 -0
  46. package/images/NRHB_30_a.png +0 -0
  47. package/images/NRHB_30_d.png +0 -0
  48. package/images/NRHB_30_dii.png +0 -0
  49. package/images/mastheadarc.gif +0 -0
  50. package/images/portarc.gif +0 -0
  51. package/images/stbdarc.gif +0 -0
  52. package/images/sternarc.gif +0 -0
  53. package/images/towingarc.gif +0 -0
  54. package/package.json +12 -0
@@ -0,0 +1,229 @@
1
+ {
2
+ "ruleset": "international",
3
+ "bearing_convention": {
4
+ "zero": "right ahead",
5
+ "direction": "clockwise (0 bow, 90 starboard beam, 180 right aft)",
6
+ "units": "degrees",
7
+ "wrap": "an arc with from_deg > to_deg wraps through 0"
8
+ },
9
+ "lights": {
10
+ "masthead": {
11
+ "name": "masthead light",
12
+ "colregs_term": "masthead light",
13
+ "cite": "21(a)",
14
+ "color": "white",
15
+ "character": "steady",
16
+ "arc_deg": 225,
17
+ "arc": {
18
+ "from_deg": 247.5,
19
+ "to_deg": 112.5
20
+ },
21
+ "placement": "over the fore and aft centerline of the vessel; shows from right ahead to 22.5 degrees abaft the beam on either side",
22
+ "rule21": true
23
+ },
24
+ "sidelights": {
25
+ "name": "sidelights",
26
+ "colregs_term": "sidelights",
27
+ "cite": "21(b)",
28
+ "character": "steady",
29
+ "composite": true,
30
+ "components": [
31
+ "sidelight_starboard",
32
+ "sidelight_port"
33
+ ],
34
+ "placement": "one on each side; in a vessel of less than 20 meters in length they may be combined in one lantern carried on the fore and aft centerline",
35
+ "combined_lantern_max_length_m": 20,
36
+ "rule21": true
37
+ },
38
+ "sidelight_starboard": {
39
+ "name": "starboard sidelight",
40
+ "colregs_term": "sidelight",
41
+ "cite": "21(b)",
42
+ "color": "green",
43
+ "character": "steady",
44
+ "arc_deg": 112.5,
45
+ "arc": {
46
+ "from_deg": 0.0,
47
+ "to_deg": 112.5
48
+ },
49
+ "side": "starboard",
50
+ "rule21": true
51
+ },
52
+ "sidelight_port": {
53
+ "name": "port sidelight",
54
+ "colregs_term": "sidelight",
55
+ "cite": "21(b)",
56
+ "color": "red",
57
+ "character": "steady",
58
+ "arc_deg": 112.5,
59
+ "arc": {
60
+ "from_deg": 247.5,
61
+ "to_deg": 360.0
62
+ },
63
+ "side": "port",
64
+ "rule21": true
65
+ },
66
+ "sternlight": {
67
+ "name": "sternlight",
68
+ "colregs_term": "sternlight",
69
+ "cite": "21(c)",
70
+ "color": "white",
71
+ "character": "steady",
72
+ "arc_deg": 135,
73
+ "arc": {
74
+ "from_deg": 112.5,
75
+ "to_deg": 247.5
76
+ },
77
+ "placement": "as nearly as practicable at the stern; shows 67.5 degrees from right aft on each side",
78
+ "rule21": true
79
+ },
80
+ "towing": {
81
+ "name": "towing light",
82
+ "colregs_term": "towing light",
83
+ "cite": "21(d)",
84
+ "color": "yellow",
85
+ "character": "steady",
86
+ "arc_deg": 135,
87
+ "arc": {
88
+ "from_deg": 112.5,
89
+ "to_deg": 247.5
90
+ },
91
+ "same_characteristics_as": "sternlight",
92
+ "rule21": true
93
+ },
94
+ "all_round": {
95
+ "name": "all-round light",
96
+ "colregs_term": "all-round light",
97
+ "cite": "21(e)",
98
+ "color": null,
99
+ "color_note": "colour is fixed by the citing paragraph, not by Rule 21",
100
+ "character": "steady",
101
+ "arc_deg": 360,
102
+ "arc": {
103
+ "from_deg": 0.0,
104
+ "to_deg": 360.0
105
+ },
106
+ "rule21": true
107
+ },
108
+ "flashing": {
109
+ "name": "flashing light",
110
+ "colregs_term": "flashing light",
111
+ "cite": "21(f)",
112
+ "color": null,
113
+ "color_note": "colour is fixed by the citing paragraph",
114
+ "character": "flashing",
115
+ "flashes_per_minute_min": 120,
116
+ "arc_deg": 360,
117
+ "arc": {
118
+ "from_deg": 0.0,
119
+ "to_deg": 360.0
120
+ },
121
+ "note": "Rule 21(f) defines the character only; every International use of it (23(b), 23(c)) is an all-round light.",
122
+ "rule21": true
123
+ },
124
+ "torch": {
125
+ "name": "electric torch or lighted lantern",
126
+ "colregs_term": "electric torch or lighted lantern",
127
+ "cite": "25(d)(i)",
128
+ "color": "white",
129
+ "character": "shown in sufficient time to prevent collision",
130
+ "arc_deg": null,
131
+ "arc": null,
132
+ "rule21": false,
133
+ "note": "Not a fixed navigation light: it is held ready at hand and shown on approach. It has no prescribed arc, range or position."
134
+ },
135
+ "deck_lights": {
136
+ "name": "working or equivalent lights",
137
+ "colregs_term": "working or equivalent lights",
138
+ "cite": "30(c)",
139
+ "color": null,
140
+ "character": "steady",
141
+ "arc_deg": null,
142
+ "arc": null,
143
+ "rule21": false,
144
+ "note": "Deck illumination for a vessel at anchor; not a signal light."
145
+ }
146
+ },
147
+ "visibility": {
148
+ "cite": "22",
149
+ "note": "Minimum ranges by length band; intensity per Annex I (see geometry.json).",
150
+ "bands": [
151
+ {
152
+ "cite": "22(a)",
153
+ "when": {
154
+ "length_m": {
155
+ "gte": 50
156
+ }
157
+ },
158
+ "ranges_nm": {
159
+ "masthead": 6,
160
+ "sidelight": 3,
161
+ "sternlight": 3,
162
+ "towing": 3,
163
+ "all_round": 3
164
+ }
165
+ },
166
+ {
167
+ "cite": "22(b)",
168
+ "when": {
169
+ "length_m": {
170
+ "gte": 12,
171
+ "lt": 50
172
+ }
173
+ },
174
+ "ranges_nm": {
175
+ "masthead": 5,
176
+ "sidelight": 2,
177
+ "sternlight": 2,
178
+ "towing": 2,
179
+ "all_round": 2
180
+ }
181
+ },
182
+ {
183
+ "cite": "22(b)(i)",
184
+ "when": {
185
+ "length_m": {
186
+ "gte": 12,
187
+ "lt": 20
188
+ }
189
+ },
190
+ "refines": "22(b)",
191
+ "overrides_nm": {
192
+ "masthead": 3
193
+ }
194
+ },
195
+ {
196
+ "cite": "22(c)",
197
+ "when": {
198
+ "length_m": {
199
+ "lt": 12
200
+ }
201
+ },
202
+ "ranges_nm": {
203
+ "masthead": 2,
204
+ "sidelight": 1,
205
+ "sternlight": 2,
206
+ "towing": 2,
207
+ "all_round": 2
208
+ }
209
+ },
210
+ {
211
+ "cite": "22(d)",
212
+ "when": {
213
+ "inconspicuous_partly_submerged_tow": true
214
+ },
215
+ "ranges_nm": {
216
+ "all_round": 3
217
+ }
218
+ }
219
+ ]
220
+ },
221
+ "colregs_vocabulary": [
222
+ "masthead light",
223
+ "sidelights",
224
+ "sternlight",
225
+ "towing light",
226
+ "all-round light",
227
+ "flashing light"
228
+ ]
229
+ }