Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add converter from JSON to CSV #153

Closed
dchassin opened this issue Dec 20, 2023 · 0 comments
Closed

Add converter from JSON to CSV #153

dchassin opened this issue Dec 20, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dchassin
Copy link
Member

Convert JSON to CSV

SYNTAX

gridlabd -C input.glm -D csv_save_options="-t pandas -f PROPERTY=VALUE ..." -o output.csv

DESCRIPTION

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.

EXAMPLE

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
@dchassin dchassin added the enhancement New feature or request label Dec 20, 2023
@dchassin dchassin self-assigned this Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Closed
Development

No branches or pull requests

2 participants