mirror of https://github.com/ecmwf/eccodes.git
Examples: prepBufr messages after numberOfSubsets==0 do not need to be processed
This commit is contained in:
parent
a4501b8f02
commit
66a5a0a3a6
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue