Changeset 1552 for trunk/libIGCM/libIGCM_post
- Timestamp:
- 04/08/22 11:28:51 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_post/xios_parser.py
r1537 r1552 215 215 if childElem.attrib.get('name') == 'source_id': 216 216 childElem.text = args.ModelName[0] 217 if args.ExperimentName is not None: 218 for childElem in elem.iter(tag='variable'): 219 if args.verbosity >= 2: print childElem.tag, childElem.attrib 220 if childElem.attrib.get('name') is not None: 221 if childElem.attrib.get('name') == 'experiment': 222 childElem.text = args.ExperimentName[0] 217 223 218 224 … … 364 370 parser_check.add_argument('--ModelName', nargs=1, required=False, help='Name of the model to be added in the name of file produced from dr2xml_file type') 365 371 parser_check.add_argument('--ModelVersion', nargs=1, required=False, help='Model version to be added in global attributes of files produced from dr2xml_file type') 372 parser_check.add_argument('--ExperimentName',nargs=1, required=False, help='Name of the experiment') 366 373 parser_check.add_argument('--file', nargs='+', required=True, help='XIOS xml dr2xml_file type') 367 374 parser_check.add_argument('--splitLastDate', nargs=1, required=False, help='Date to be used as split_last_date')
Note: See TracChangeset
for help on using the changeset viewer.