From 16a73ed872a9a4fd9c19077ce37463298d6d6f36 Mon Sep 17 00:00:00 2001 From: AdenKoperczak Date: Fri, 18 Apr 2025 10:59:19 -0400 Subject: [PATCH] Add previous scans for stepping back in time when merging level2 files --- wxdata/source/scwx/wsr88d/ar2v_file.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wxdata/source/scwx/wsr88d/ar2v_file.cpp b/wxdata/source/scwx/wsr88d/ar2v_file.cpp index 6d0e5c02..b4dc6248 100644 --- a/wxdata/source/scwx/wsr88d/ar2v_file.cpp +++ b/wxdata/source/scwx/wsr88d/ar2v_file.cpp @@ -568,6 +568,15 @@ Ar2vFile::Ar2vFile(const std::shared_ptr& 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)) {