From d578721b3d3efb72b669b7dc2c385efd34e77ea5 Mon Sep 17 00:00:00 2001 From: Bruce Flynn <brucef@ssec.wisc.edu> Date: Wed, 19 Aug 2015 19:11:24 +0000 Subject: [PATCH] All AMSU sequence_group types will used Gird headers --- edosl0util/headers.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/edosl0util/headers.py b/edosl0util/headers.py index 8b37aa8..aab5227 100644 --- a/edosl0util/headers.py +++ b/edosl0util/headers.py @@ -104,18 +104,16 @@ class SpacecraftBusSecondaryHeader(BaseStruct): def amsu_headers(): - return { + apids = [ # AMSU-A1 - (257, GROUP_FIRST): GirdSecondaryHeader, - (259, GROUP_FIRST): GirdSecondaryHeader, - (260, GROUP_FIRST): GirdSecondaryHeader, - (261, GROUP_FIRST): GirdSecondaryHeader, - (262, GROUP_FIRST): GirdSecondaryHeader, + 257, 259, 260, 261, 262, # AMSU-A2 - (288, GROUP_FIRST): GirdSecondaryHeader, - (289, GROUP_FIRST): GirdSecondaryHeader, - (290, GROUP_STANDALONE): GirdSecondaryHeader, - } + 288, 289, 290 + ] + flags = [GROUP_FIRST, GROUP_CONTINUING, GROUP_LAST, GROUP_STANDALONE] + return {(apid, flag): GirdSecondaryHeader + for apid in apids + for flag in flags} def airs_headers(): @@ -218,7 +216,7 @@ def jpss_header_lookup(primary_header): _aqua_headers = aqua_headers() -def aqua_header_lookup(primary_header): +def aqua_header_lookup(primary_header): # noqa apid = primary_header.apid grouping = primary_header.sequence_grouping return _aqua_headers.get((apid, grouping)) -- GitLab