Add hydrometeor classification level 3 product

This commit is contained in:
Dan Paulat 2024-01-10 00:30:26 -06:00
parent 447f3ee821
commit 587dbb7f1f
7 changed files with 45 additions and 11 deletions

View 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"},

View file

@ -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}},