atmosx-nwws-parser 1.0.1920 → 1.0.1922
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/dist/cjs/helper.cjs +6 -6
- package/dist/esm/helper.mjs +6 -6
- package/package.json +1 -1
- package/src/events.ts +5 -5
- package/src/helper.ts +1 -1
package/dist/cjs/helper.cjs
CHANGED
|
@@ -509,13 +509,13 @@ var mEvents = class {
|
|
|
509
509
|
}
|
|
510
510
|
if (eventName === "Tornado Warning") {
|
|
511
511
|
eventName = "Radar Indicated Tornado Warning";
|
|
512
|
-
if (
|
|
513
|
-
if (
|
|
512
|
+
if (torThreat == "RADAR INDICATED") eventName = "Radar Indicated Tornado Warning";
|
|
513
|
+
if (torThreat == "OBSERVED") eventName = "Confirmed Tornado Warning";
|
|
514
514
|
}
|
|
515
515
|
if (eventName === "Severe Thunderstorm Warning") {
|
|
516
|
-
if (dmgThreat
|
|
517
|
-
if (dmgThreat
|
|
518
|
-
if (torThreat
|
|
516
|
+
if (dmgThreat == "CONSIDERABLE") eventName = "Considerable Severe Thunderstorm Warning";
|
|
517
|
+
if (dmgThreat == "DESTRUCTIVE") eventName = "Destructive Severe Thunderstorm Warning";
|
|
518
|
+
if (torThreat == "POSSIBLE") eventName = `${eventName} (TPROB)`;
|
|
519
519
|
}
|
|
520
520
|
for (const [key, value] of Object.entries(definitions.tags)) {
|
|
521
521
|
if (description.includes(key.toLowerCase())) {
|
|
@@ -1083,7 +1083,7 @@ var AtmosXWireParser = class {
|
|
|
1083
1083
|
const shapefiles = [{ id: `C`, file: `USCounties` }, { id: `Z`, file: `ForecastZones` }, { id: `Z`, file: `FireZones` }, { id: `Z`, file: `OffShoreZones` }, { id: `Z`, file: `FireCounties` }, { id: `Z`, file: `Marine` }];
|
|
1084
1084
|
for (let shape of shapefiles) {
|
|
1085
1085
|
const { id, file } = shape;
|
|
1086
|
-
const filepath = path2.resolve(__dirname, "../../shapefiles", `${file}
|
|
1086
|
+
const filepath = path2.resolve(__dirname, "../../shapefiles", `${file}`);
|
|
1087
1087
|
const { features } = yield shapefile2.read(filepath, filepath);
|
|
1088
1088
|
console.log(`Importing ${features.length} features from ${file}...`);
|
|
1089
1089
|
for (let feature of features) {
|
package/dist/esm/helper.mjs
CHANGED
|
@@ -474,13 +474,13 @@ var mEvents = class {
|
|
|
474
474
|
}
|
|
475
475
|
if (eventName === "Tornado Warning") {
|
|
476
476
|
eventName = "Radar Indicated Tornado Warning";
|
|
477
|
-
if (
|
|
478
|
-
if (
|
|
477
|
+
if (torThreat == "RADAR INDICATED") eventName = "Radar Indicated Tornado Warning";
|
|
478
|
+
if (torThreat == "OBSERVED") eventName = "Confirmed Tornado Warning";
|
|
479
479
|
}
|
|
480
480
|
if (eventName === "Severe Thunderstorm Warning") {
|
|
481
|
-
if (dmgThreat
|
|
482
|
-
if (dmgThreat
|
|
483
|
-
if (torThreat
|
|
481
|
+
if (dmgThreat == "CONSIDERABLE") eventName = "Considerable Severe Thunderstorm Warning";
|
|
482
|
+
if (dmgThreat == "DESTRUCTIVE") eventName = "Destructive Severe Thunderstorm Warning";
|
|
483
|
+
if (torThreat == "POSSIBLE") eventName = `${eventName} (TPROB)`;
|
|
484
484
|
}
|
|
485
485
|
for (const [key, value] of Object.entries(definitions.tags)) {
|
|
486
486
|
if (description.includes(key.toLowerCase())) {
|
|
@@ -1048,7 +1048,7 @@ var AtmosXWireParser = class {
|
|
|
1048
1048
|
const shapefiles = [{ id: `C`, file: `USCounties` }, { id: `Z`, file: `ForecastZones` }, { id: `Z`, file: `FireZones` }, { id: `Z`, file: `OffShoreZones` }, { id: `Z`, file: `FireCounties` }, { id: `Z`, file: `Marine` }];
|
|
1049
1049
|
for (let shape of shapefiles) {
|
|
1050
1050
|
const { id, file } = shape;
|
|
1051
|
-
const filepath = path2.resolve(__dirname, "../../shapefiles", `${file}
|
|
1051
|
+
const filepath = path2.resolve(__dirname, "../../shapefiles", `${file}`);
|
|
1052
1052
|
const { features } = yield shapefile2.read(filepath, filepath);
|
|
1053
1053
|
console.log(`Importing ${features.length} features from ${file}...`);
|
|
1054
1054
|
for (let feature of features) {
|
package/package.json
CHANGED
package/src/events.ts
CHANGED
|
@@ -44,13 +44,13 @@ export class mEvents {
|
|
|
44
44
|
if (eventName === 'Flash Flood Warning') { if (dmgThreat === 'CONSIDERABLE') eventName = 'Considerable Flash Flood Warning'; }
|
|
45
45
|
if (eventName === 'Tornado Warning') {
|
|
46
46
|
eventName = 'Radar Indicated Tornado Warning';
|
|
47
|
-
if (
|
|
48
|
-
if (
|
|
47
|
+
if (torThreat == 'RADAR INDICATED') eventName = 'Radar Indicated Tornado Warning';
|
|
48
|
+
if (torThreat == 'OBSERVED') eventName = 'Confirmed Tornado Warning';
|
|
49
49
|
}
|
|
50
50
|
if (eventName === 'Severe Thunderstorm Warning') {
|
|
51
|
-
if (dmgThreat
|
|
52
|
-
if (dmgThreat
|
|
53
|
-
if (torThreat
|
|
51
|
+
if (dmgThreat == 'CONSIDERABLE') eventName = 'Considerable Severe Thunderstorm Warning';
|
|
52
|
+
if (dmgThreat == 'DESTRUCTIVE') eventName = 'Destructive Severe Thunderstorm Warning';
|
|
53
|
+
if (torThreat == 'POSSIBLE') eventName = `${eventName} (TPROB)`;
|
|
54
54
|
}
|
|
55
55
|
for (const [key, value] of Object.entries(loader.definitions.tags as Record<string, string>)) {
|
|
56
56
|
if (description.includes(key.toLowerCase())) {
|
package/src/helper.ts
CHANGED
|
@@ -49,7 +49,7 @@ export class AtmosXWireParser {
|
|
|
49
49
|
const shapefiles = [{ id: `C`, file: `USCounties` }, { id: `Z`, file: `ForecastZones` }, { id: `Z`, file: `FireZones` }, { id: `Z`, file: `OffShoreZones` }, { id: `Z`, file: `FireCounties` }, { id: `Z`, file: `Marine` }]
|
|
50
50
|
for (let shape of shapefiles) {
|
|
51
51
|
const { id, file } = shape;
|
|
52
|
-
const filepath = path.resolve(__dirname, '../../shapefiles', `${file}
|
|
52
|
+
const filepath = path.resolve(__dirname, '../../shapefiles', `${file}`);
|
|
53
53
|
const { features } = await shapefile.read(filepath, filepath);
|
|
54
54
|
console.log(`Importing ${features.length} features from ${file}...`);
|
|
55
55
|
for (let feature of features) {
|