Only Allocate cordinates in level3_radial_view when they are needed

This commit is contained in:
AdenKoperczak 2025-03-14 13:23:07 -04:00
parent dc72e9fbfc
commit befa5f3ded

View file

@ -39,7 +39,6 @@ public:
vcp_ {},
sweepTime_ {}
{
coordinates_.resize(kMaxCoordinates_);
}
~Impl() { threadPool_.join(); };
@ -556,6 +555,8 @@ void Level3RadialView::Impl::ComputeCoordinates(
// Calculate azimuth coordinates
timer.start();
coordinates_.resize(kMaxCoordinates_);
const std::uint16_t numRadials = radialData->number_of_radials();
const std::uint16_t numRangeBins = radialData->number_of_range_bins();