Support ARCHIVE2

This commit is contained in:
Dan Paulat 2024-01-27 01:18:25 -06:00
parent 243a7c870c
commit 636f444c40
2 changed files with 13 additions and 9 deletions

View file

@ -114,14 +114,10 @@ std::shared_ptr<NexradFile> NexradFileFactory::Create(std::istream& is)
if (dataValid)
{
if (buffer.starts_with("AR2V"))
if (buffer.starts_with("AR2V") || buffer.starts_with("ARCHIVE2"))
{
message = std::make_shared<Ar2vFile>();
}
else if (buffer.starts_with("ARCHIVE2"))
{
logger_->warn("ARCHIVE2 format not supported");
}
else
{
message = std::make_shared<Level3File>();