mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:40:05 +00:00
Setting up for merging last and current scan's, and having archive and chunks
This commit is contained in:
parent
fc83a7a36f
commit
a754d66844
8 changed files with 143 additions and 23 deletions
|
|
@ -603,7 +603,13 @@ AwsLevel2ChunksDataProvider::LoadObjectByTime(
|
|||
std::shared_ptr<wsr88d::NexradFile>
|
||||
AwsLevel2ChunksDataProvider::LoadLatestObject()
|
||||
{
|
||||
return LoadObjectByTime(FindLatestTime());
|
||||
return p->currentScan_.nexradFile_;
|
||||
}
|
||||
|
||||
std::shared_ptr<wsr88d::NexradFile>
|
||||
AwsLevel2ChunksDataProvider::LoadSecondLatestObject()
|
||||
{
|
||||
return p->lastScan_.nexradFile_;
|
||||
}
|
||||
|
||||
int AwsLevel2ChunksDataProvider::Impl::GetScanNumber(const std::string& prefix)
|
||||
|
|
|
|||
|
|
@ -351,6 +351,12 @@ std::shared_ptr<wsr88d::NexradFile> AwsNexradDataProvider::LoadLatestObject()
|
|||
return LoadObjectByKey(FindLatestKey());
|
||||
}
|
||||
|
||||
std::shared_ptr<wsr88d::NexradFile>
|
||||
AwsNexradDataProvider::LoadSecondLatestObject()
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::pair<size_t, size_t> AwsNexradDataProvider::Refresh()
|
||||
{
|
||||
using namespace std::chrono;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#include <scwx/provider/nexrad_data_provider_factory.hpp>
|
||||
//#include <scwx/provider/aws_level2_data_provider.hpp>
|
||||
#include <scwx/provider/aws_level2_data_provider.hpp>
|
||||
#include <scwx/provider/aws_level2_chunks_data_provider.hpp>
|
||||
#include <scwx/provider/aws_level3_data_provider.hpp>
|
||||
|
||||
|
|
@ -14,6 +14,13 @@ static const std::string logPrefix_ =
|
|||
std::shared_ptr<NexradDataProvider>
|
||||
NexradDataProviderFactory::CreateLevel2DataProvider(
|
||||
const std::string& radarSite)
|
||||
{
|
||||
return std::make_unique<AwsLevel2DataProvider>(radarSite);
|
||||
}
|
||||
|
||||
std::shared_ptr<NexradDataProvider>
|
||||
NexradDataProviderFactory::CreateLevel2ChunksDataProvider(
|
||||
const std::string& radarSite)
|
||||
{
|
||||
return std::make_unique<AwsLevel2ChunksDataProvider>(radarSite);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue