Closed dchassin closed 6 months ago
Convert JSON to CSV
gridlabd -C input.glm -D csv_save_options="-t pandas -f PROPERTY=VALUE ..." -o output.csv
The filter option can be used to limit the output to object with matching properties, e.g.,
-f class=CLASS
or
-f class="CLASS1|CLASS2".
Multiple filters may be specified in which case, all objects will match all filters, with an "and" operation, r.h.,
-f class=CLASS name=NAME
Filter values are interpreted using regular expressions, e.g.,
-f name=EXPRESSION
Be careful to quote expressions that can be interpreted by the shell.
The following command downloads the IEEE 13-bus model and saves all the PQ bus nodes and loads:
gridlabd model get IEEE/13 gridlabd -C 13.glm -D csv_save_options='-t pandas -f class="node|load" -f bustype=PQ' -o 13.csv
Convert JSON to CSV
SYNTAX
DESCRIPTION
The filter option can be used to limit the output to object with matching properties, e.g.,
or
Multiple filters may be specified in which case, all objects will match all filters, with an "and" operation, r.h.,
Filter values are interpreted using regular expressions, e.g.,
Be careful to quote expressions that can be interpreted by the shell.
EXAMPLE
The following command downloads the IEEE 13-bus model and saves all the PQ bus nodes and loads: