From 7518d477c3d4b7a10b407721a9d9e48e7e1aacc8 Mon Sep 17 00:00:00 2001
From: akrherz
Date: Tue, 28 Nov 2023 12:04:27 -0600
Subject: [PATCH] feat: add snow squall verification to iem cow
https://mesonet.agron.iastate.edu/cow/
refs akrherz/iem-web-services#163
---
htdocs/cow/index.phtml | 18 ++++++++++++++----
htdocs/lsr/static.js | 1 +
htdocs/plotting/auto/scripts200/p242.py | 1 +
3 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/htdocs/cow/index.phtml b/htdocs/cow/index.phtml
index 2e37a9b5b8..5f05bd8241 100644
--- a/htdocs/cow/index.phtml
+++ b/htdocs/cow/index.phtml
@@ -1,4 +1,5 @@
"Svr T'storm",
"MA" => "Marine",
"FF" => "Flash Flood (2008+)",
- "DS" => "Dust Storm (2018+)"
+ "DS" => "Dust Storm (2018+)",
+ "SQ" => "Snow Squall (2018+)",
);
$tselect = "";
foreach ($ar as $k => $v) {
@@ -104,7 +106,8 @@ $ar = array(
"G" => "Wind Gust",
"MA" => "Marine",
"FF" => "Flash Flood (2008+)",
- "DS" => "Dust Storm (2018+)"
+ "DS" => "Dust Storm (2018+)",
+ "SQ" => "Snow Squall (Oct 2023+)",
);
$ltselect = "";
foreach ($ar as $k => $v) {
@@ -196,6 +199,7 @@ function wtypeSelect()
document.getElementById("MA").checked = true;
document.getElementById("FF").checked = true;
document.getElementById("DS").checked = true;
+ document.getElementById("SQ").checked = true;
return false;
}
@@ -213,6 +217,7 @@ function ltypeSelect()
document.getElementById("FF2").checked = true;
document.getElementById("MA2").checked = true;
document.getElementById("DS2").checked = true;
+ document.getElementById("SQ").checked = true;
return false;
}
@@ -223,9 +228,9 @@ function ltypeSelect()
{$tagselect}
{$forecaster_form}
-
+
-
+
@@ -312,6 +317,11 @@ service was improved some, but should all still be backwards compat.
unwarned_reports
was updated to not include severe thunderstorm
type reports made during a tornado warning.
+28 Nov 2023: The option to do verification for Snow Squall
+Warnings was added, but note that verifying LSRs only became an option after
+1 October 2023. So no prior warnings will show as verified prior to that date.
+
+
The JSON emitting service endpoint is:
https://mesonet.agron.iastate.edu/api/1/cow.json
diff --git a/htdocs/lsr/static.js b/htdocs/lsr/static.js
index 367bfcce72..a47a719872 100644
--- a/htdocs/lsr/static.js
+++ b/htdocs/lsr/static.js
@@ -160,6 +160,7 @@ var lsrLookup = {
"N": "icons/wind.png",
"O": "icons/wind.png",
"P": "icons/other.png",
+ "q": "icons/downburst.png",
"Q": "icons/tropicalstorm.gif",
"s": "icons/sleet.png",
"T": "icons/tornado.png",
diff --git a/htdocs/plotting/auto/scripts200/p242.py b/htdocs/plotting/auto/scripts200/p242.py
index 736aaefd56..771c339113 100644
--- a/htdocs/plotting/auto/scripts200/p242.py
+++ b/htdocs/plotting/auto/scripts200/p242.py
@@ -49,6 +49,7 @@
"O": "wind.png",
"P": "other.png",
"Q": "tropicalstorm.gif",
+ "q": "downburst.png",
"s": "sleet.png",
"T": "tornado.png",
"U": "fire.png",