mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:00:04 +00:00
CFP moments may not always be present in a scan
This commit is contained in:
parent
6759766744
commit
85615cfffd
1 changed files with 3 additions and 1 deletions
|
|
@ -418,7 +418,9 @@ void Level2ProductView::ComputeSweep()
|
|||
dataMoments16.resize(radials * gates * VERTICES_PER_BIN);
|
||||
}
|
||||
|
||||
if (p->dataBlockType_ == wsr88d::rda::DataBlockType::MomentRef)
|
||||
if (p->dataBlockType_ == wsr88d::rda::DataBlockType::MomentRef &&
|
||||
radarData0->moment_data_block(wsr88d::rda::DataBlockType::MomentCfp) !=
|
||||
nullptr)
|
||||
{
|
||||
cfpMoments.resize(radials * gates * VERTICES_PER_BIN);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue