@ham2k/lib-cqmag-data 0.0.1
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.
- package/README.md +3 -0
- package/data/cqz-for-states.json +70 -0
- package/data/cqzones.README.md +1 -0
- package/data/cqzones.json +162 -0
- package/data/wae.json +62 -0
- package/package.json +8 -0
- package/scripts/generate.js +14 -0
- package/src/data/cqww.json +1 -0
- package/src/data/cqwwByPrefix.json +1 -0
- package/src/index.js +7 -0
- package/src/lib/preprocessing.js +33 -0
- package/src/lib/preprocessing.spec.js +31 -0
package/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Canada": {
|
|
3
|
+
"AB": 4,
|
|
4
|
+
"BC": 3,
|
|
5
|
+
"MB": 4,
|
|
6
|
+
"NB": 5,
|
|
7
|
+
"NL": 0,
|
|
8
|
+
"NS": 5,
|
|
9
|
+
"NT": 1,
|
|
10
|
+
"NU": 2,
|
|
11
|
+
"ON": 0,
|
|
12
|
+
"PE": 5,
|
|
13
|
+
"QC": 0,
|
|
14
|
+
"SK": 4,
|
|
15
|
+
"YT": 1
|
|
16
|
+
},
|
|
17
|
+
"United States": {
|
|
18
|
+
"AK": 1,
|
|
19
|
+
"AL": 4,
|
|
20
|
+
"AR": 4,
|
|
21
|
+
"AZ": 3,
|
|
22
|
+
"CA": 3,
|
|
23
|
+
"CO": 4,
|
|
24
|
+
"CT": 5,
|
|
25
|
+
"DC": 5,
|
|
26
|
+
"DE": 5,
|
|
27
|
+
"FL": 5,
|
|
28
|
+
"GA": 5,
|
|
29
|
+
"HI": 31,
|
|
30
|
+
"IA": 4,
|
|
31
|
+
"ID": 3,
|
|
32
|
+
"IL": 4,
|
|
33
|
+
"IN": 4,
|
|
34
|
+
"KS": 4,
|
|
35
|
+
"KY": 4,
|
|
36
|
+
"LA": 4,
|
|
37
|
+
"MA": 5,
|
|
38
|
+
"MD": 5,
|
|
39
|
+
"ME": 5,
|
|
40
|
+
"MI": 4,
|
|
41
|
+
"MN": 4,
|
|
42
|
+
"MO": 4,
|
|
43
|
+
"MS": 4,
|
|
44
|
+
"MT": 4,
|
|
45
|
+
"NC": 5,
|
|
46
|
+
"ND": 4,
|
|
47
|
+
"NE": 4,
|
|
48
|
+
"NH": 5,
|
|
49
|
+
"NJ": 5,
|
|
50
|
+
"NM": 4,
|
|
51
|
+
"NV": 3,
|
|
52
|
+
"NY": 5,
|
|
53
|
+
"OH": 4,
|
|
54
|
+
"OK": 4,
|
|
55
|
+
"OR": 3,
|
|
56
|
+
"PA": 5,
|
|
57
|
+
"RI": 5,
|
|
58
|
+
"SC": 5,
|
|
59
|
+
"SD": 4,
|
|
60
|
+
"TN": 4,
|
|
61
|
+
"TX": 4,
|
|
62
|
+
"UT": 3,
|
|
63
|
+
"VA": 5,
|
|
64
|
+
"VT": 5,
|
|
65
|
+
"WA": 3,
|
|
66
|
+
"WI": 4,
|
|
67
|
+
"WV": 5,
|
|
68
|
+
"WY": 4
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Official zone names from https://cq-amateur-radio.com/cq_awards/cq_waz_awards/cq_waz_list.html
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
{
|
|
2
|
+
"1": {
|
|
3
|
+
"cqName": "Northwestern Zone of North America",
|
|
4
|
+
"name": "Northwestern North America"
|
|
5
|
+
},
|
|
6
|
+
"2": {
|
|
7
|
+
"cqName": "Northeastern Zone of North America",
|
|
8
|
+
"name": "Northeastern North America"
|
|
9
|
+
},
|
|
10
|
+
"3": {
|
|
11
|
+
"cqName": "Western Zone of North America",
|
|
12
|
+
"name": "Western North America"
|
|
13
|
+
},
|
|
14
|
+
"4": {
|
|
15
|
+
"cqName": "Central Zone of North America",
|
|
16
|
+
"name": "Central North America"
|
|
17
|
+
},
|
|
18
|
+
"5": {
|
|
19
|
+
"cqName": "Eastern Zone of North America",
|
|
20
|
+
"name": "Eastern North America"
|
|
21
|
+
},
|
|
22
|
+
"6": {
|
|
23
|
+
"cqName": "Southern Zone of North America",
|
|
24
|
+
"name": "Southern North America"
|
|
25
|
+
},
|
|
26
|
+
"7": {
|
|
27
|
+
"cqName": "Central American Zone",
|
|
28
|
+
"name": "Central America"
|
|
29
|
+
},
|
|
30
|
+
"8": {
|
|
31
|
+
"cqName": "Western Indies Zone",
|
|
32
|
+
"name": "Western Indies"
|
|
33
|
+
},
|
|
34
|
+
"9": {
|
|
35
|
+
"cqName": "Northern Zone of South America",
|
|
36
|
+
"name": "Northern South America"
|
|
37
|
+
},
|
|
38
|
+
"10": {
|
|
39
|
+
"cqName": "Western Zone of South America",
|
|
40
|
+
"name": "Western South America"
|
|
41
|
+
},
|
|
42
|
+
"11": {
|
|
43
|
+
"cqName": "Central Zone of South America",
|
|
44
|
+
"name": "Central South America"
|
|
45
|
+
},
|
|
46
|
+
"12": {
|
|
47
|
+
"cqName": "Southwest Zone of South America",
|
|
48
|
+
"name": "Southwestern South America"
|
|
49
|
+
},
|
|
50
|
+
"13": {
|
|
51
|
+
"cqName": "Southeast Zone of South America",
|
|
52
|
+
"name": "Southeastern South America"
|
|
53
|
+
},
|
|
54
|
+
"14": {
|
|
55
|
+
"cqName": "Western Zone of Europe",
|
|
56
|
+
"name": "Western Europe"
|
|
57
|
+
},
|
|
58
|
+
"15": {
|
|
59
|
+
"cqName": "Central European Zone",
|
|
60
|
+
"name": "Central Europe"
|
|
61
|
+
},
|
|
62
|
+
"16": {
|
|
63
|
+
"cqName": "Eastern Zone of Europe",
|
|
64
|
+
"name": "Eastern Europe"
|
|
65
|
+
},
|
|
66
|
+
"17": {
|
|
67
|
+
"cqName": "Western Zone of Siberia",
|
|
68
|
+
"name": "Western Siberia"
|
|
69
|
+
},
|
|
70
|
+
"18": {
|
|
71
|
+
"cqName": "Central Siberian Zone",
|
|
72
|
+
"name": "Central Siberia"
|
|
73
|
+
},
|
|
74
|
+
"19": {
|
|
75
|
+
"cqName": "Eastern Siberian Zone",
|
|
76
|
+
"name": "Eastern Siberia"
|
|
77
|
+
},
|
|
78
|
+
"20": {
|
|
79
|
+
"cqName": "Balkan Zone",
|
|
80
|
+
"name": "Balkans"
|
|
81
|
+
},
|
|
82
|
+
"21": {
|
|
83
|
+
"cqName": "Southwestern Zone of Asia",
|
|
84
|
+
"name": "Southwestern Asia"
|
|
85
|
+
},
|
|
86
|
+
"22": {
|
|
87
|
+
"cqName": "Southern Zone of Asia",
|
|
88
|
+
"name": "Southern Asia"
|
|
89
|
+
},
|
|
90
|
+
"23": {
|
|
91
|
+
"cqName": "Central Zone of Asia",
|
|
92
|
+
"name": "Central Asia"
|
|
93
|
+
},
|
|
94
|
+
"24": {
|
|
95
|
+
"cqName": "Eastern Zone of Asia",
|
|
96
|
+
"name": "Eastern Asia"
|
|
97
|
+
},
|
|
98
|
+
"25": {
|
|
99
|
+
"cqName": "Japanese Zone",
|
|
100
|
+
"name": "Japan"
|
|
101
|
+
},
|
|
102
|
+
"26": {
|
|
103
|
+
"cqName": "Southeastern Zone of Asia",
|
|
104
|
+
"name": "Southeastern Asia"
|
|
105
|
+
},
|
|
106
|
+
"27": {
|
|
107
|
+
"cqName": "Philipine Zone",
|
|
108
|
+
"name": "Philipines"
|
|
109
|
+
},
|
|
110
|
+
"28": {
|
|
111
|
+
"cqName": "Indonesian Zone",
|
|
112
|
+
"name": "Indonesia"
|
|
113
|
+
},
|
|
114
|
+
"29": {
|
|
115
|
+
"cqName": "Western Zone of Australia",
|
|
116
|
+
"name": "Western Australia"
|
|
117
|
+
},
|
|
118
|
+
"30": {
|
|
119
|
+
"cqName": "Eastern Zone of Australia",
|
|
120
|
+
"name": "Eastern Australia"
|
|
121
|
+
},
|
|
122
|
+
"31": {
|
|
123
|
+
"cqName": "Central Pacific Zone",
|
|
124
|
+
"name": "Central Pacific"
|
|
125
|
+
},
|
|
126
|
+
"32": {
|
|
127
|
+
"cqName": "New Zealand Zone",
|
|
128
|
+
"name": "New Zealand"
|
|
129
|
+
},
|
|
130
|
+
"33": {
|
|
131
|
+
"cqName": "Northwestern Zone of Africa",
|
|
132
|
+
"name": "Northwestern Africa"
|
|
133
|
+
},
|
|
134
|
+
"34": {
|
|
135
|
+
"cqName": "Northeastern Zone of Africa",
|
|
136
|
+
"name": "Northeastern Africa"
|
|
137
|
+
},
|
|
138
|
+
"35": {
|
|
139
|
+
"cqName": "Central Zone of Africa",
|
|
140
|
+
"name": "Central Africa"
|
|
141
|
+
},
|
|
142
|
+
"36": {
|
|
143
|
+
"cqName": "Equatorial Zone of Africa",
|
|
144
|
+
"name": "Equatorial Africa"
|
|
145
|
+
},
|
|
146
|
+
"37": {
|
|
147
|
+
"cqName": "Eastern Zone of Africa",
|
|
148
|
+
"name": "Eastern Africa"
|
|
149
|
+
},
|
|
150
|
+
"38": {
|
|
151
|
+
"cqName": "South African Zone",
|
|
152
|
+
"name": "South Africa"
|
|
153
|
+
},
|
|
154
|
+
"39": {
|
|
155
|
+
"cqName": "Madagascar Zone",
|
|
156
|
+
"name": "Madagascar"
|
|
157
|
+
},
|
|
158
|
+
"40": {
|
|
159
|
+
"cqName": "North Atlantic Zone",
|
|
160
|
+
"name": "North Atlantic"
|
|
161
|
+
}
|
|
162
|
+
}
|
package/data/wae.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"IG9": {
|
|
3
|
+
"entityPrefix": "*IG9",
|
|
4
|
+
"source": "WAE",
|
|
5
|
+
"dxccCode": 248,
|
|
6
|
+
"continent": "AF",
|
|
7
|
+
"prefixes": ["IG9", "IH9"],
|
|
8
|
+
"name": "African Italy",
|
|
9
|
+
"fullName": "African Italy",
|
|
10
|
+
"shortName": "African Italy"
|
|
11
|
+
},
|
|
12
|
+
"IT9": {
|
|
13
|
+
"entityPrefix": "*IT9",
|
|
14
|
+
"source": "WAE",
|
|
15
|
+
"dxccCode": 248,
|
|
16
|
+
"continent": "EU",
|
|
17
|
+
"prefixes": ["IT9"],
|
|
18
|
+
"name": "Sicily",
|
|
19
|
+
"fullName": "Sicily (Italy)",
|
|
20
|
+
"shortName": "Sicily"
|
|
21
|
+
},
|
|
22
|
+
"JW/b": {
|
|
23
|
+
"entityPrefix": "*JW/b",
|
|
24
|
+
"source": "WAE",
|
|
25
|
+
"dxccCode": 259,
|
|
26
|
+
"continent": "EU",
|
|
27
|
+
"prefixes": ["JW/b"],
|
|
28
|
+
"name": "Bear I.",
|
|
29
|
+
"fullName": "Bear Island",
|
|
30
|
+
"shortName": "Bear I."
|
|
31
|
+
},
|
|
32
|
+
"TA1": {
|
|
33
|
+
"entityPrefix": "*TA1",
|
|
34
|
+
"source": "WAE",
|
|
35
|
+
"dxccCode": 390,
|
|
36
|
+
"continent": "EU",
|
|
37
|
+
"prefixes": ["TA1"],
|
|
38
|
+
"name": "European Turkey",
|
|
39
|
+
"fullName": "European Turkey",
|
|
40
|
+
"shortName": "European Turkey"
|
|
41
|
+
},
|
|
42
|
+
"4U1V": {
|
|
43
|
+
"entityPrefix": "*4U1V",
|
|
44
|
+
"source": "WAE",
|
|
45
|
+
"dxccCode": 206,
|
|
46
|
+
"continent": "EU",
|
|
47
|
+
"prefixes": ["4U1V"],
|
|
48
|
+
"name": "UN Vienna Int. Center",
|
|
49
|
+
"fullName": "United Nations Vienna International Center",
|
|
50
|
+
"shortName": "UN Viena IC"
|
|
51
|
+
},
|
|
52
|
+
"GM/s": {
|
|
53
|
+
"entityPrefix": "*GM/s",
|
|
54
|
+
"source": "WAE",
|
|
55
|
+
"dxccCode": 279,
|
|
56
|
+
"continent": "EU",
|
|
57
|
+
"prefixes": ["GM/s"],
|
|
58
|
+
"name": "Shetland Is.",
|
|
59
|
+
"fullName": "Shetland Islands",
|
|
60
|
+
"shortName": "Shetland Is."
|
|
61
|
+
}
|
|
62
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const fs = require("fs")
|
|
2
|
+
const path = require("path")
|
|
3
|
+
const { preprocessCQWWData } = require("../src/lib/preprocessing")
|
|
4
|
+
const dxccByCode = require("../../dxcc/src/data/dxccByCode.json")
|
|
5
|
+
|
|
6
|
+
console.log("Generating DXCC json")
|
|
7
|
+
|
|
8
|
+
const cqww = preprocessCQWWData(dxccByCode)
|
|
9
|
+
|
|
10
|
+
fs.writeFileSync(path.join(__dirname, "../src/data/cqwwByPrefix.json"), JSON.stringify(cqww), "utf8")
|
|
11
|
+
fs.writeFileSync(path.join(__dirname, "../src/data/cqww.json"), JSON.stringify(Object.values(cqww)), "utf8")
|
|
12
|
+
|
|
13
|
+
console.log("CQ WW Entities written to data/cqww.json and cqwwByPrefix.json")
|
|
14
|
+
console.log("")
|