mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:00:04 +00:00
Scale internal units for echo tops and accumulation for GR compatibility
This commit is contained in:
parent
5ee2d10a1b
commit
dccbf0d12f
5 changed files with 43 additions and 7 deletions
|
|
@ -1,6 +1,7 @@
|
|||
; NEXRAD Level-3 palette for product code 135 - EET - Enhanced Echo Tops
|
||||
|
||||
Units: KFT
|
||||
Scale: 3.281 ; convert internal units (KM) to KFT
|
||||
Color: 75 231 0 255
|
||||
Color: 70 255 255 255
|
||||
Color: 65 255 0 0
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
; NEXRAD Level-3 palette for product code 169, OHA, One Hour Precip, 16 Levels
|
||||
|
||||
Units IN
|
||||
Units: IN
|
||||
|
||||
Scale: 0.03937 ; convert internal units (MM) to INCHES
|
||||
Color: 4.0 255 255 255
|
||||
|
|
|
|||
|
|
@ -406,12 +406,7 @@ std::optional<float> Level3ProductView::GetDataValue(std::uint16_t level) const
|
|||
|
||||
bool Level3ProductView::IgnoreUnits() const
|
||||
{
|
||||
// Don't display units on these products. The current method of displaying
|
||||
// units is not accurate for these.
|
||||
static const std::unordered_set<std::string> kIgnoreUnitsProducts_ {
|
||||
"DAA", "DTA", "DU3", "DU6"};
|
||||
|
||||
return (kIgnoreUnitsProducts_.contains(p->product_));
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace view
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue