mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:50:05 +00:00
Add hydrometeor classification level 3 product
This commit is contained in:
parent
447f3ee821
commit
587dbb7f1f
7 changed files with 45 additions and 11 deletions
17
scwx-qt/res/palettes/wct/HC.pal
Normal file
17
scwx-qt/res/palettes/wct/HC.pal
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
; WCT Palette for Hydrometeor Classification adapted for Supercell Wx
|
||||
|
||||
SolidColor: 10 156 156 156 ; BI = Biological
|
||||
SolidColor: 20 118 118 118 ; GC = Anomalous Propagation/Ground Clutter
|
||||
SolidColor: 30 255 176 176 ; IC = Ice Crystals
|
||||
SolidColor: 40 0 255 255 ; DS = Dry Snow
|
||||
SolidColor: 50 0 144 255 ; WS = Wet Snow
|
||||
SolidColor: 60 0 251 144 ; RA = Light and/or Moderate Rain
|
||||
SolidColor: 70 0 187 0 ; HR = Heavy Rain
|
||||
SolidColor: 80 208 208 96 ; BD = Big Drops
|
||||
SolidColor: 90 210 132 132 ; GR = Graupel
|
||||
SolidColor: 100 255 0 0 ; HA = Small Hail
|
||||
SolidColor: 110 160 20 20 ; LH = Large Hail
|
||||
SolidColor: 120 255 255 0 ; GH = Giant Hail
|
||||
SolidColor: 130 0 0 0 ; TBD
|
||||
SolidColor: 140 231 0 255 ; UK = Unknown Classification
|
||||
SolidColor: 150 119 0 125 ; RF = Range Folded
|
||||
|
|
@ -54,6 +54,7 @@
|
|||
<file>res/palettes/wct/DR.pal</file>
|
||||
<file>res/palettes/wct/DV.pal</file>
|
||||
<file>res/palettes/wct/ET.pal</file>
|
||||
<file>res/palettes/wct/HC.pal</file>
|
||||
<file>res/palettes/wct/KDP.pal</file>
|
||||
<file>res/palettes/wct/KDP2.pal</file>
|
||||
<file>res/palettes/wct/OHP.pal</file>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace settings
|
|||
|
||||
static const std::string logPrefix_ = "scwx::qt::settings::palette_settings";
|
||||
|
||||
static const std::array<std::string, 17> kPaletteKeys_ {
|
||||
static const std::array<std::string, 18> kPaletteKeys_ {
|
||||
// Level 2 / Common Products
|
||||
"BR",
|
||||
"BV",
|
||||
|
|
@ -27,6 +27,7 @@ static const std::array<std::string, 17> kPaletteKeys_ {
|
|||
"DOD",
|
||||
"DSD",
|
||||
"ET",
|
||||
"HC",
|
||||
"STP",
|
||||
"OHP",
|
||||
"STPIN",
|
||||
|
|
@ -48,6 +49,7 @@ static const std::unordered_map<std::string, std::string> kDefaultPalettes_ {
|
|||
{"DOD", ":/res/palettes/wct/DOD_DSD.pal"},
|
||||
{"DSD", ":/res/palettes/wct/DOD_DSD.pal"},
|
||||
{"ET", ":/res/palettes/wct/ET.pal"},
|
||||
{"HC", ":/res/palettes/wct/HC.pal"},
|
||||
{"OHP", ":/res/palettes/wct/OHP.pal"},
|
||||
{"OHPIN", ""},
|
||||
{"PHI3", ":/res/palettes/wct/KDP.pal"},
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ struct ColorTableConversions
|
|||
float scale {1.0f};
|
||||
};
|
||||
|
||||
static const std::array<std::pair<std::string, std::string>, 15>
|
||||
static const std::array<std::pair<std::string, std::string>, 16>
|
||||
kColorTableTypes_ {std::pair {"BR", "BR"},
|
||||
std::pair {"BV", "BV"},
|
||||
std::pair {"SW", "SW"},
|
||||
|
|
@ -64,6 +64,7 @@ static const std::array<std::pair<std::string, std::string>, 15>
|
|||
std::pair {"DOD", "DOD"},
|
||||
std::pair {"DSD", "DSD"},
|
||||
std::pair {"ET", "ET"},
|
||||
std::pair {"HC", "HC"},
|
||||
std::pair {"OHP", "OHP"},
|
||||
std::pair {"PHI3", "KDP"},
|
||||
std::pair {"SRV", "SRV"},
|
||||
|
|
@ -84,6 +85,7 @@ static const std::unordered_map<std::string, ColorTableConversions>
|
|||
{"DOD", {0u, 255u, 128.0f, 1.5f}},
|
||||
{"DSD", {0u, 255u, 128.0f, 1.5f}},
|
||||
{"ET", {0u, 255u, 2.0f, 1.0f}},
|
||||
{"HC", {10u, 160u, 0.0f, 1.0f}},
|
||||
{"OHP", {0u, 255u, 0.0f, 2.5f}},
|
||||
{"PHI3", {0u, 255u, 43.0f, 20.0f}},
|
||||
{"SRV", {0u, 255u, 128.0f, 2.0f}},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue