Reintroduce invalid time warning, filter NWS_NEXRAD_* filenames instead

This commit is contained in:
Dan Paulat 2024-01-27 23:18:15 -06:00
parent 6af8e398dd
commit 0f215a9469
2 changed files with 3 additions and 2 deletions

View file

@ -94,7 +94,7 @@ AwsLevel2DataProvider::GetTimePointFromKey(const std::string& key)
if (in.fail())
{
logger_->trace("Invalid time: \"{}\"", timeStr);
logger_->warn("Invalid time: \"{}\"", timeStr);
}
}
else

View file

@ -246,7 +246,8 @@ AwsNexradDataProvider::ListObjects(std::chrono::system_clock::time_point date)
{
std::string key = object.GetKey();
if (!key.ends_with("_MDM"))
if (key.find("NWS_NEXRAD_") == std::string::npos &&
!key.ends_with("_MDM"))
{
auto time = GetTimePointByKey(key);