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 location tool #277

Merged
merged 21 commits into from
Jan 16, 2025
Merged

Conversation

dchassin
Copy link
Member

@dchassin dchassin commented Jan 15, 2025

Syntax: gridlabd location [OPTIONS ...] [FILENAME=KEY[:VALUE][,...] ...]

Options:

  • --debug: enable debug traceback on exception

  • --find[=KEY[:VALUE][,...]]: get location settings

  • `--format=FORMAT[,OPTION[:VALUE[,...]]]

  • --quiet: suppress error messages

  • --silent: suppress all error messages

  • --system[=KEY[:VALUE][,...]]: get/set the default location

  • --verbose: enable verbose output, if any

  • --warning: suppress warning messages

Description:

The location tool allows configuration of the location of a model.

The location tool --system option is used to setup the system's default
location for models when not location data is not specified in the model.
When values are change, the location data is returned and the new location
is stored in `GLD_ETC/location_config.glm

The location tool --find options can identify the current location of a
system or a location based on partial information.

Location setting on FILENAME will be performed in place, i.e., the file will
first be read and the it will be written with the new values. The result
output to stdout will be the previous values.

The keys and globals handled by the location tools include the following:

  • latitude: the location's latitude

  • longitude: the location's longitude

  • number: the location's street number, if any

  • street: the location's street name

  • zipcode: the location's postal code

  • city: the location's city

  • county: the location's county

  • state: the location's state

  • region: the location's region

  • country: the location's country

Examples:

Get the current location

gridlabd location --find

Display the default location

gridlabd location --system

Set the location in a model file

gridlabd location ieee123.json=country:US,state:CA,county:Kern,city:Bakersfield

@dchassin dchassin changed the title Add tool location Add location tool Jan 15, 2025
@dchassin dchassin mentioned this pull request Jan 15, 2025
9 tasks
@dchassin dchassin merged commit 294e81a into arras-energy:develop Jan 16, 2025
2 checks passed
@dchassin dchassin deleted the develop-add-tool-location branch January 16, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

1 participant