Add previous scans for stepping back in time when merging level2 files

This commit is contained in:
AdenKoperczak 2025-04-18 10:59:19 -04:00
parent 309a5ed25e
commit 16a73ed872
No known key found for this signature in database
GPG key ID: 9843017036F62EE7

View file

@ -568,6 +568,15 @@ Ar2vFile::Ar2vFile(const std::shared_ptr<Ar2vFile>& current,
continue;
}
// Add previous scans for stepping back in time
for (auto scan = ++(elevation.second.rbegin());
scan != elevation.second.rend();
++scan)
{
p->index_[type.first][elevation.first][scan->first] =
scan->second;
}
// Merge this scan with the last one if it is incomplete
if (IsRadarDataIncomplete(mostRecent->second))
{