mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 08:00:06 +00:00
Support ARCHIVE2
This commit is contained in:
parent
243a7c870c
commit
636f444c40
2 changed files with 13 additions and 9 deletions
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue