Examples: prepBufr messages after numberOfSubsets==0 do not need to be processed

This commit is contained in:
Shahram Najm 2022-01-20 21:03:24 +00:00
parent a4501b8f02
commit 66a5a0a3a6
1 changed files with 3 additions and 2 deletions

View File

@ -63,9 +63,10 @@ def generate_tables(INPUT, what):
codes_release(bufr)
continue
if codes_get(bufr, "numberOfSubsets") == 0:
# print('BUFR message number of subsets == 0. Ignoring')
# When we reach a message whose number of subsets == 0, we're done.
# All messages after this one encode observations (not tables)
codes_release(bufr)
continue
break
if DEBUG:
print(f"Processing message {cnt+1}")