mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-02 06:20:05 +00:00
Add elevation to product label. Mainly for level 3 products
This commit is contained in:
parent
5968fd981c
commit
be972cdb7e
4 changed files with 24 additions and 8 deletions
|
|
@ -67,6 +67,7 @@ public:
|
|||
|
||||
float latitude_;
|
||||
float longitude_;
|
||||
float elevation_;
|
||||
float range_;
|
||||
std::uint16_t vcp_;
|
||||
|
||||
|
|
@ -91,6 +92,11 @@ boost::asio::thread_pool& Level3RadialView::thread_pool()
|
|||
return p->threadPool_;
|
||||
}
|
||||
|
||||
float Level3RadialView::elevation() const
|
||||
{
|
||||
return p->elevation_;
|
||||
}
|
||||
|
||||
float Level3RadialView::range() const
|
||||
{
|
||||
return p->range_;
|
||||
|
|
@ -306,6 +312,7 @@ void Level3RadialView::ComputeSweep()
|
|||
p->latitude_ = descriptionBlock->latitude_of_radar();
|
||||
p->longitude_ = descriptionBlock->longitude_of_radar();
|
||||
p->range_ = descriptionBlock->range();
|
||||
p->elevation_ = static_cast<float>(descriptionBlock->elevation().value());
|
||||
p->sweepTime_ =
|
||||
scwx::util::TimePoint(descriptionBlock->volume_scan_date(),
|
||||
descriptionBlock->volume_scan_start_time() * 1000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue