Convert Excel codelist to YAML
¶
nomenclature convert-xlsx-codelist-to-yaml
¶
nomenclature convert-xlsx-codelist-to-yaml
Usage:
nomenclature convert-xlsx-codelist-to-yaml
[OPTIONS] {source} {target} {sheet_name} {col}
Convert Excel-based codelist to YAML format.
Reads a codelist from a specified Excel sheet and column,
preserving any
attributes, and exports it as a structured YAML file compatible
with the
nomenclature definitions format.
Example:
$ nomenclature convert-xlsx-codelist-to-yaml input.xlsx
output.yaml sheet1 variable
╭─
Arguments
──────────────────────────────────────────────────
─╮
│
*
source
<
path
>
Excel file with codelist
│
│
[required]
│
│
*
target
<
path
>
Output YAML file path
[required]
│
│
*
sheet_name
<
str
>
Sheet name in Excel file
│
│
[required]
│
│
*
col
<
str
>
Column to use as codes
│
│
[required]
│
╰───────────────────────────────────────────────────────────────╯
╭─
Options
────────────────────────────────────────────────────
─╮
│
-
-attrs
<
str
>
Columns to use as attributes
│
│
-
-help
Show this message and exit.
│
╰───────────────────────────────────────────────────────────────╯
nomenclature
A Python package for working with IAMC-style scenario data
Navigation
Installation
User Guide
API documentation
Command line interface
Validate YAML
Validate project
Check region aggregation
Export definitions
List missing variables
Run workflow
Validate scenarios
Convert Excel codelist to YAML
Parse model registration
Related Topics
Documentation overview
Command line interface
Previous:
Validate scenarios
Next:
Parse model registration