@@ -166,11 +166,11 @@ def process_files(files,pattern,writers,title_prefix):
166
166
167
167
168
168
169
- # For Template rows, add computed Length
169
+ # For Template rows, add computed OctetNumer
170
170
if pattern == 'GRIB2_Template' :
171
171
for row in rows :
172
172
octet_str = row .get ("OctetNo" , "" )
173
- row ["Length " ] = parse_octet_length (octet_str )
173
+ row ["OctetCount " ] = parse_octet_length (octet_str )
174
174
175
175
for row in rows :
176
176
for writer in writers :
@@ -207,11 +207,11 @@ def process_files(files,pattern,writers,title_prefix):
207
207
# Template tables
208
208
template_files = load_files ("GRIB2_Template" ,basedir = "." )
209
209
210
- # Added "Length " to both fieldnames and xml_elements
211
- fieldnames = ["Title_en" ,"OctetNo" ,"Contents_en" ,"Note_en" ,"noteIDs" ,"codeTable" ,"flagTable" ,"Length " ,"Status" ]
210
+ # Added "OctetCount " to both fieldnames
211
+ fieldnames = ["Title_en" ,"OctetNo" ,"Contents_en" ,"Note_en" ,"noteIDs" ,"codeTable" ,"flagTable" ,"OctetCount " ,"Status" ]
212
212
csv_writer = CSVWriter ("txt/Template.txt" ,fieldnames )
213
213
214
- xml_elements = ["Title_en" ,"OctetNo" ,"Contents_en" ,"Note_en" ,"noteIDs" ,"codeTable" ,"flagTable" ,"Length" , " Status" ]
214
+ xml_elements = ["Title_en" ,"OctetNo" ,"Contents_en" ,"Note_en" ,"noteIDs" ,"codeTable" ,"flagTable" ,"Status" ]
215
215
xml_writer = XMLWriter ("xml/Template.xml" ,xml_elements ,"GRIB2_Template_en" )
216
216
217
217
writers = [csv_writer ,xml_writer ]
0 commit comments