Add support for _V04 products
This commit is contained in:
parent
6411d0516f
commit
2f7abbba4c
1 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,7 @@ class ArchiveDateError(Exception):
|
||||||
class ArchiveProductType(enum.Enum):
|
class ArchiveProductType(enum.Enum):
|
||||||
DEFAULT = 1
|
DEFAULT = 1
|
||||||
V03 = 3
|
V03 = 3
|
||||||
|
V04 = 4
|
||||||
|
|
||||||
class ArchiveProduct():
|
class ArchiveProduct():
|
||||||
__slots__ = 'typeof', 'radar', 'timestamp',
|
__slots__ = 'typeof', 'radar', 'timestamp',
|
||||||
|
@ -44,6 +45,8 @@ class ArchiveProduct():
|
||||||
|
|
||||||
if self.typeof == ArchiveProductType.V03:
|
if self.typeof == ArchiveProductType.V03:
|
||||||
ret += "_V03"
|
ret += "_V03"
|
||||||
|
elif self.typeof == ArchiveProductType.V04:
|
||||||
|
ret += "_V04"
|
||||||
|
|
||||||
ret += ".gz"
|
ret += ".gz"
|
||||||
|
|
||||||
|
@ -55,6 +58,8 @@ class ArchiveProduct():
|
||||||
|
|
||||||
if self.typeof == ArchiveProductType.V03:
|
if self.typeof == ArchiveProductType.V03:
|
||||||
ret += "_V03"
|
ret += "_V03"
|
||||||
|
elif self.typeof == ArchiveProductType.V04:
|
||||||
|
ret += "_V04"
|
||||||
|
|
||||||
ret += ".gz"
|
ret += ".gz"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue