From dface88e00ee94ef6d33966ecb9292463006cc90 Mon Sep 17 00:00:00 2001 From: "David P. Chassin" Date: Mon, 23 Aug 2021 11:16:34 -0700 Subject: [PATCH] Fix geodata table input (#970) * Fix problems with table2glm converter when using geodata * Fix json.date_format type * Add --json.indent option for geodata output JSON format * Update tutorial files * Fix folium so it generates output even when no location data is present * Fix output of object name * Update Geodata.ipynb * Update Geodata.md * Update example_1.glm * Update example_2.glm * Update example_3.glm * Update example_4.glm * Create poles.csv * Create .gitignore * Removing ignored files * Delete example.html * Update .gitignore * Fixed geodata tutorial example 6 * Create example_5.glm * Update tutorial * Update .gitignore * Tutorial cleanup * Update csv-table2glm-object.py * Update example_2.glm * Update json2html.py * Update .gitignore * Update example_3.glm * Fix autotest errors * Update json2html.py * Fix import converter (#976) * Update version.h * Fix import converter * Delete table2glm_input.glm Co-authored-by: Alyona Teyber * Fixing the table2glm converter and adding a more robust testing input * Update test_table2glm.glm * Update Geodata.ipynb * Update test_geodata.glm * Update Geodata.md * Update test_geodata.txt Co-authored-by: Alyona Teyber --- .gitignore | 1 + docs/Tutorial/Geodata.md | 2046 ++++++++--------- .../converters/autotest/table2glm_input.csv | 5 +- .../converters/autotest/test_table2glm.glm | 6 +- .../autotest/test_table2glm_err.glm | 6 +- .../autotest/test_table2glm_noclass.glm | 6 +- .../autotest/test_table2glm_noname.glm | 17 +- gldcore/converters/csv-table2glm-object.py | 34 +- gldcore/converters/csv2glm.py | 7 +- gldcore/converters/json2html.py | 60 +- gldcore/geodata/docs/Geodata.ipynb | 342 +-- gldcore/geodata/tutorial/.gitignore | 4 + gldcore/geodata/tutorial/example_1.glm | 8 + gldcore/geodata/tutorial/example_2.glm | 12 + gldcore/geodata/tutorial/example_3.glm | 15 + gldcore/geodata/tutorial/example_4.glm | 15 + gldcore/geodata/tutorial/example_5.glm | 8 + gldcore/geodata/tutorial/example_6.glm | 20 + gldcore/geodata/tutorial/poles.csv | 38 + gldcore/geodata/tutorial/positions.csv | 38 + gldcore/scripts/autotest/test_geodata.glm | 6 +- gldcore/scripts/autotest/test_geodata.txt | 22 +- gldcore/scripts/gridlabd-convert | 4 +- gldcore/scripts/gridlabd-geodata | 18 +- 24 files changed, 1432 insertions(+), 1306 deletions(-) create mode 100644 gldcore/geodata/tutorial/.gitignore create mode 100644 gldcore/geodata/tutorial/example_1.glm create mode 100644 gldcore/geodata/tutorial/example_2.glm create mode 100644 gldcore/geodata/tutorial/example_3.glm create mode 100644 gldcore/geodata/tutorial/example_4.glm create mode 100644 gldcore/geodata/tutorial/example_5.glm create mode 100644 gldcore/geodata/tutorial/example_6.glm create mode 100644 gldcore/geodata/tutorial/poles.csv create mode 100644 gldcore/geodata/tutorial/positions.csv diff --git a/.gitignore b/.gitignore index 1ba0f2866..5dc0d6c5b 100644 --- a/.gitignore +++ b/.gitignore @@ -175,3 +175,4 @@ gldcore/converters/autotest/table2glm_input_noname.glm gldcore/converters/autotest/table2glm_input.glm gldcore/geodata/docs/geodata.conf gldcore/gridlabd.in +geodata.conf diff --git a/docs/Tutorial/Geodata.md b/docs/Tutorial/Geodata.md index 0c2a1fea6..e1d2dd049 100644 --- a/docs/Tutorial/Geodata.md +++ b/docs/Tutorial/Geodata.md @@ -22,7 +22,7 @@ The following command checks that the version of GridLAB-D supports the -
+
``` python bash% gridlabd --version='-ge 4.2.26' @@ -31,10 +31,11 @@ bash% gridlabd requirements
- DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621 - Requirement already satisfied: matplotlib_inline in /usr/local/lib/python3.9/site-packages (0.1.2) - Requirement already satisfied: traitlets in /usr/local/lib/python3.9/site-packages (from matplotlib_inline) (5.0.5) - Requirement already satisfied: ipython-genutils in /usr/local/lib/python3.9/site-packages (from traitlets->matplotlib_inline) (0.2.0) + + Usage: + /usr/local/opt/python@3.9/bin/python3.9 -m pip [options] + + no such option: -r
@@ -81,7 +82,7 @@ entity with the approximate location of SLAC's main gate.
-
+
``` python bash% gridlabd geodata create 37.415,-122.20 @@ -111,18 +112,9 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.21
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + id,latitude,longitude + 0,37.41,-122.2 + 1,37.42,-122.21
@@ -166,18 +158,10 @@ bash% gridlabd geodata create path_example.csv | head -n 4
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + id,latitude,longitude,configuration,pole_height + 0,37.41505,-122.20565,flat3,18.0 + 1,37.4147,-122.20849,sideT,20.0 + 2,37.41445,-122.21044,sideT,21.0
@@ -206,18 +190,10 @@ bash% head -n 4 path_example.csv | cut -f1-2 -d, | gridlabd geodata create
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + id,latitude,longitude + 0,37.41505,-122.20565 + 1,37.4147,-122.20849 + 2,37.41445,-122.21044
@@ -238,18 +214,9 @@ bash% gridlabd geodata create name=obj1+latitude=37.4205+longitude=-122.2046 nam
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + id,name,latitude,longitude + 0,obj1,37.4205,-122.2046 + 1,obj2,37.5205,-122.3046
@@ -270,18 +237,9 @@ bash% gridlabd geodata create --input_delimiter=',' 'name=obj1,latitude=37.4205,
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + id,name,latitude,longitude + 0,obj1,37.4205,-122.2046 + 1,obj2,37.5205,-122.3046
@@ -327,18 +285,10 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -p 4
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + id,latitude,longitude + 0,37.41,-122.2 + 1,37.42,-122.2 + 2,37.42,-122.21
@@ -359,18 +309,10 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 --pre
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + id,latitude,longitude + 0,37.41,-122.2 + 1,37.42,-122.2 + 2,37.42,-122.21
@@ -391,18 +333,9 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -f RA
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + 37.41,-122.2 + 37.42,-122.2 + 37.42,-122.21
@@ -431,18 +364,7 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -f RA
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + 37.41,-122.2;37.42,-122.2;37.42,-122.21
@@ -490,23 +412,6 @@ the `set` option bash% gridlabd geodata config set name local_value -w ``` -
- - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - -
-
@@ -523,23 +428,6 @@ suppressed using the `-w` or `--warn` option, e.g., bash% gridlabd geodata config set name local_value -w ``` -
- - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - -
-
@@ -556,18 +444,7 @@ bash% gridlabd geodata config get name
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + local_value
@@ -587,18 +464,14 @@ bash% gridlabd geodata config show
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + geodata_url='http://geodata.gridlabd.us/' + output_format='CSV' + path_join='outer' + column_names='{'ID': 'id', 'UUID': 'uuid', 'LAT': 'latitude', 'LON': 'longitude', 'DIST': 'distance', 'HEAD': 'heading', 'LOC': 'location', 'POS': 'position'}' + uuid_type='4' + vegetation.username='name@example.com' + vegetation.password='password5839' + name='local_value'
@@ -619,30 +492,15 @@ bash% gridlabd geodata config show
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + geodata_url='http://geodata.gridlabd.us/' + output_format='CSV' + path_join='outer' + column_names='{'ID': 'id', 'UUID': 'uuid', 'LAT': 'latitude', 'LON': 'longitude', 'DIST': 'distance', 'HEAD': 'heading', 'LOC': 'location', 'POS': 'position'}' + uuid_type='4' + vegetation.username='name@example.com' + vegetation.password='password5839' + name='local_value' + user.name='user_value'
@@ -663,30 +521,16 @@ bash% gridlabd geodata config show
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + geodata_url='http://geodata.gridlabd.us/' + output_format='CSV' + path_join='outer' + column_names='{'ID': 'id', 'UUID': 'uuid', 'LAT': 'latitude', 'LON': 'longitude', 'DIST': 'distance', 'HEAD': 'heading', 'LOC': 'location', 'POS': 'position'}' + uuid_type='4' + vegetation.username='name@example.com' + vegetation.password='password5839' + name='local_value' + user.name='user_value' + system.name='system_value'
@@ -707,30 +551,15 @@ bash% gridlabd geodata config show
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + geodata_url='http://geodata.gridlabd.us/' + output_format='CSV' + path_join='outer' + column_names='{'ID': 'id', 'UUID': 'uuid', 'LAT': 'latitude', 'LON': 'longitude', 'DIST': 'distance', 'HEAD': 'heading', 'LOC': 'location', 'POS': 'position'}' + uuid_type='4' + vegetation.username='name@example.com' + vegetation.password='password5839' + user.name='user_value' + system.name='system_value'
@@ -749,12 +578,6 @@ To remove all the local configuration values, simply delete the bash% rm geodata.conf ``` -
- - rm: geodata.conf: No such file or directory - -
-
@@ -776,18 +599,10 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -f CS
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + id,latitude,longitude + 0,37.41,-122.2 + 1,37.42,-122.2 + 2,37.42,-122.21
@@ -807,18 +622,7 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -f JS
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + {"0":{"latitude":37.41,"longitude":-122.2},"1":{"latitude":37.42,"longitude":-122.2},"2":{"latitude":37.42,"longitude":-122.21}}
@@ -840,18 +644,7 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -f JS
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + {"schema":{"fields":[{"name":"id","type":"integer"},{"name":"latitude","type":"number"},{"name":"longitude","type":"number"}],"primaryKey":["id"],"pandas_version":"0.20.0"},"data":[{"id":0,"latitude":37.41,"longitude":-122.2},{"id":1,"latitude":37.42,"longitude":-122.2},{"id":2,"latitude":37.42,"longitude":-122.21}]}
@@ -880,18 +673,9 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -f RA
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + 37.41 -122.2 + 37.42 -122.2 + 37.42 -122.21
@@ -911,18 +695,11 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -f TA
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude + id + 0 37.41 -122.20 + 1 37.42 -122.20 + 2 37.42 -122.21
@@ -942,18 +719,9 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -f RA
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + -122.2,37.41 + -122.2,37.42 + -122.21,37.42
@@ -977,18 +745,10 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -k id
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + id,latitude,longitude + 0,37.41,-122.2 + 1,37.42,-122.2 + 2,37.42,-122.21
@@ -1008,18 +768,10 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -k lo
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + location,latitude,longitude,id + 9q9hg629j97y,37.41,-122.2,0 + 9q9hgk0em9ef,37.42,-122.2,1 + 9q9hgh17k9e4,37.42,-122.21,2
@@ -1041,18 +793,10 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -k po
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + position,latitude,longitude,id,distance,heading + 0,37.41,-122.2,0,0.0, + 1112,37.42,-122.2,1,1112.0,0.0 + 1995,37.42,-122.21,2,1995.0,270.0
@@ -1072,18 +816,10 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -k la
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude,longitude,id + 37.41,-122.2,0 + 37.42,-122.2,1 + 37.42,-122.21,2
@@ -1104,18 +840,10 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -k uu
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + uuid,latitude,longitude,id + 814feaf2794e4dc08a25eddc4a68f043,37.41,-122.2,0 + 0f1c64584e604b2cac8c69eb40135b70,37.42,-122.2,1 + adc8ba4186874fbb9a7ff18fe1b9eaad,37.42,-122.21,2
@@ -1137,18 +865,10 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -k uu
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + uuid,latitude,longitude,id + 0705a628020d11ecbde8d0817adb129d,37.41,-122.2,0 + 0705a6e6020d11ecbde8d0817adb129d,37.42,-122.2,1 + 0705a718020d11ecbde8d0817adb129d,37.42,-122.21,2
@@ -1172,18 +892,18 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -r 25
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude id distance heading + position + 0 37.41000 -122.20000 0.0 0.0 NaN + 250 37.41225 -122.20000 NaN 250.0 0.0 + 500 37.41450 -122.20000 NaN 500.0 0.0 + 750 37.41674 -122.20000 NaN 750.0 0.0 + 1000 37.41899 -122.20000 NaN 1000.0 0.0 + 1112 37.42000 -122.20000 1.0 1112.0 0.0 + 1362 37.42000 -122.20283 NaN 1362.0 270.0 + 1612 37.42000 -122.20566 NaN 1612.0 270.0 + 1862 37.42000 -122.20849 NaN 1862.0 270.0 + 1995 37.42000 -122.21000 2.0 1995.0 270.0
@@ -1203,18 +923,18 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 --res
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude id distance heading + position + 0 37.41000 -122.20000 0.0 0.0 NaN + 250 37.41225 -122.20000 NaN 250.0 0.0 + 500 37.41450 -122.20000 NaN 500.0 0.0 + 750 37.41674 -122.20000 NaN 750.0 0.0 + 1000 37.41899 -122.20000 NaN 1000.0 0.0 + 1112 37.42000 -122.20000 1.0 1112.0 0.0 + 1362 37.42000 -122.20283 NaN 1362.0 270.0 + 1612 37.42000 -122.20566 NaN 1612.0 270.0 + 1862 37.42000 -122.20849 NaN 1862.0 270.0 + 1995 37.42000 -122.21000 2.0 1995.0 270.0
@@ -1246,18 +966,18 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -f TA
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude id distance heading + position + 0 37.41000 -122.20000 0.000 0.0 NaN + 250 37.41225 -122.20000 0.125 250.0 0.0 + 500 37.41450 -122.20000 0.251 500.0 0.0 + 750 37.41674 -122.20000 0.376 750.0 0.0 + 1000 37.41899 -122.20000 0.501 1000.0 0.0 + 1112 37.42000 -122.20000 0.557 1112.0 0.0 + 1362 37.42000 -122.20283 0.683 1362.0 270.0 + 1612 37.42000 -122.20566 0.808 1612.0 270.0 + 1862 37.42000 -122.20849 0.933 1862.0 270.0 + 1995 37.42000 -122.21000 1.000 1995.0 270.0
@@ -1284,18 +1004,18 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -f TA
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude id distance heading + position + 0 37.41000 -122.20000 0.00000 0.0 NaN + 250 37.41225 -122.20000 0.12531 250.0 0.0 + 500 37.41450 -122.20000 0.25063 500.0 0.0 + 750 37.41674 -122.20000 0.37594 750.0 0.0 + 1000 37.41899 -122.20000 0.50125 1000.0 0.0 + 1112 37.42000 -122.20000 0.55739 1112.0 0.0 + 1362 37.42000 -122.20283 0.68271 1362.0 270.0 + 1612 37.42000 -122.20566 0.80802 1612.0 270.0 + 1862 37.42000 -122.20849 0.93333 1862.0 270.0 + 1995 37.42000 -122.21000 1.00000 1995.0 270.0
@@ -1318,30 +1038,18 @@ bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -r 25
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + position latitude longitude id distance heading + location + 9q9hg629j97y 0 37.41000 -122.20000 0.0 0.0 NaN + 9q9hg68wjsgu 250 37.41225 -122.20000 NaN 250.0 0.0 + 9q9hg70em87c 500 37.41450 -122.20000 NaN 500.0 0.0 + 9q9hg788m9gu 750 37.41674 -122.20000 NaN 750.0 0.0 + 9q9hg7btmt7c 1000 37.41899 -122.20000 NaN 1000.0 0.0 + 9q9hgk0em9ef 1112 37.42000 -122.20000 1.0 1112.0 0.0 + 9q9hghne79td 1362 37.42000 -122.20283 NaN 1362.0 270.0 + 9q9hghhe39x6 1612 37.42000 -122.20566 NaN 1612.0 270.0 + 9q9hgh47rc94 1862 37.42000 -122.20849 NaN 1862.0 270.0 + 9q9hgh17k9e4 1995 37.42000 -122.21000 2.0 1995.0 270.0
@@ -1365,19 +1073,10 @@ bash% cat /tmp/test.csv
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - cat: /tmp/test.csv: No such file or directory + id,latitude,longitude + 0,37.41,-122.2 + 1,37.42,-122.2 + 2,37.42,-122.21
@@ -1397,23 +1096,6 @@ automatically created from the latitude and longitude fields, e.g., bash% gridlabd geodata create 37.410,-122.20 37.420,-122.20 37.420,-122.21 -o /tmp/test.gdf -f GDF ``` -
- - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - -
-
@@ -1470,18 +1152,11 @@ bash% gridlabd geodata merge -D distance 37.410,-122.20 37.420,-122.20 37.420,-1
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude distance + id + 0 37.41 -122.20 0.0 + 1 37.42 -122.20 1112.0 + 2 37.42 -122.21 1995.0
@@ -1502,18 +1177,11 @@ bash% gridlabd geodata merge -D distance 37.410,-122.20 37.420,-122.20 37.420,-1
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude distance + id + 0 37.41 -122.20 0.0 + 1 37.42 -122.20 0.0 + 2 37.42 -122.21 0.0
@@ -1535,18 +1203,11 @@ bash% gridlabd geodata merge -D distance 37.410,-122.20 37.420,-122.20 37.420,-1
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude distance + id + 0 37.41 -122.20 0.0 + 1 37.42 -122.20 3648.0 + 2 37.42 -122.21 6545.0
@@ -1567,18 +1228,11 @@ bash% gridlabd geodata merge -D distance 37.410,-122.20 37.420,-122.20 37.420,-1
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude distance + id + 0 37.41 -122.20 0.0 + 1 37.42 -122.20 1.0 + 2 37.42 -122.21 2.0
@@ -1598,18 +1252,11 @@ bash% gridlabd geodata merge -D distance 37.410,-122.20 37.420,-122.20 37.420,-1
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude distance + id + 0 37.41 -122.20 0.00 + 1 37.42 -122.20 1.11 + 2 37.42 -122.21 2.00
@@ -1630,18 +1277,18 @@ bash% gridlabd geodata -D distance merge 37.410,-122.20 37.420,-122.20 37.420,-1
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude id distance heading + position + 0 37.41000 -122.20000 0.0 0.0 NaN + 250 37.41225 -122.20000 NaN 250.0 0.0 + 500 37.41450 -122.20000 NaN 500.0 0.0 + 750 37.41674 -122.20000 NaN 750.0 0.0 + 1000 37.41899 -122.20000 NaN 1000.0 0.0 + 1112 37.42000 -122.20000 1.0 0.0 0.0 + 1362 37.42000 -122.20283 NaN 250.0 270.0 + 1612 37.42000 -122.20566 NaN 500.0 270.0 + 1862 37.42000 -122.20849 NaN 750.0 270.0 + 1995 37.42000 -122.21000 2.0 0.0 270.0
@@ -1666,18 +1313,8 @@ bash% gridlabd geodata merge -D address 37.420,-122.20
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + id,latitude,longitude,address + 0,37.42,-122.2,"Stanford Linear Accelerator Center National Accelerator Laboratory, Sand Hill Road, Menlo Park, San Mateo County, California, 94028, United States"
@@ -1697,18 +1334,8 @@ bash% gridlabd geodata merge -D address --reverse "2575 Sand Hill Rd, Menlo Park
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + id,index,address,longitude,latitude + 0,0,"2575 Sand Hill Rd, Menlo Park CA 94025",-122.20457,37.42046
@@ -1730,18 +1357,8 @@ bash% gridlabd geodata merge -D address --reverse "Main St." # insufficient info
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + id,index,address,longitude,latitude + 0,0,Main St.,114.04407,22.31315
@@ -1762,30 +1379,8 @@ bash% gridlabd geodata merge -D address --reverse "2575 Sand Hill Rd, Menlo Park
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + id,index,address,longitude,latitude + 0,0,"54 - Stanford Research Computing Facility, 2575, Sand Hill Road, Stanford Hills, Menlo Park, San Mateo County, California, 94305, United States",-122.20118,37.41546
@@ -1807,18 +1402,11 @@ bash% gridlabd geodata merge -D elevation 37.410,-122.20 37.420,-122.20 37.420,-
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude elevation + id + 0 37.41 -122.20 58.0 + 1 37.42 -122.20 76.0 + 2 37.42 -122.21 105.0
@@ -1839,18 +1427,11 @@ bash% gridlabd geodata merge -D elevation 37.410,-122.20 37.420,-122.20 37.420,-
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude elevation + id + 0 37.41 -122.20 190.0 + 1 37.42 -122.20 249.0 + 2 37.42 -122.21 344.0
@@ -1872,18 +1453,11 @@ bash% gridlabd geodata merge -D elevation 37.410,-122.20 37.420,-122.20 37.420,-
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude elevation + id + 0 37.41 -122.20 190.29 + 1 37.42 -122.20 249.34 + 2 37.42 -122.21 344.49
@@ -1904,18 +1478,18 @@ bash% gridlabd geodata merge -D elevation 37.410,-122.20 37.420,-122.20 37.420,-
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude id distance heading elevation + position + 0 37.41000 -122.20000 0.0 0.0 NaN 58.0 + 250 37.41225 -122.20000 NaN 250.0 0.0 63.0 + 500 37.41450 -122.20000 NaN 500.0 0.0 75.0 + 750 37.41674 -122.20000 NaN 750.0 0.0 76.0 + 1000 37.41899 -122.20000 NaN 1000.0 0.0 96.0 + 1112 37.42000 -122.20000 1.0 1112.0 0.0 76.0 + 1362 37.42000 -122.20283 NaN 1362.0 270.0 85.0 + 1612 37.42000 -122.20566 NaN 1612.0 270.0 92.0 + 1862 37.42000 -122.20849 NaN 1862.0 270.0 104.0 + 1995 37.42000 -122.21000 2.0 1995.0 270.0 105.0
@@ -1941,35 +1515,6 @@ bash% gridlabd geodata config set -w vegetation.username name@example.com bash% gridlabd geodata config set vegetation.password password5839 ``` -
- - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - -
-
@@ -1987,18 +1532,11 @@ bash% gridlabd geodata merge -D vegetation 37.410,-122.20 37.420,-122.20 37.420,
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude base cover height + id + 0 37.41 -122.20 2.0 0.17 11.0 + 1 37.42 -122.20 1.0 0.18 15.0 + 2 37.42 -122.21 2.0 0.01 0.0
@@ -2019,18 +1557,11 @@ bash% gridlabd geodata merge -D vegetation 37.410,-122.20 37.420,-122.20 37.420,
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude base cover height + id + 0 37.41 -122.20 2.0 0.17 11.0 + 1 37.42 -122.20 1.0 0.18 15.0 + 2 37.42 -122.21 2.0 0.01 0.0
@@ -2057,18 +1588,9 @@ bash% gridlabd geodata merge -D utility 37.420,-122.20 -f TABLE
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude NAME + id + 0 37.42 -122.2 PACIFIC GAS ...
@@ -2094,18 +1616,9 @@ bash% gridlabd geodata merge -D utility 37.420,-122.20 --fields=WINTR_PEAK,SUMMR
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude WINTR_PEAK SUMMR_PEAK CUSTOMERS YEAR + id + 0 37.42 -122.2 12624.0 17263.0 5471786.0 2018.0
@@ -2125,23 +1638,6 @@ specified, e.g., bash% gridlabd geodata merge -D utility 37.420,-122.20 --geometry -f PLOT -o /tmp/utility.png --plot.figsize=10,5 ``` -
- - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - -
-
@@ -2158,89 +1654,9 @@ from IPython.display import Image Image("/tmp/utility.png") ``` -
- - --------------------------------------------------------------------------- - TypeError Traceback (most recent call last) - /usr/local/Cellar/jupyterlab/3.1.4/libexec/lib/python3.9/site-packages/IPython/core/display.py in _data_and_metadata(self, always_both) - 1299 try: - -> 1300 b64_data = b2a_base64(self.data).decode('ascii') - 1301 except TypeError: - - TypeError: a bytes-like object is required, not 'str' - - During handling of the above exception, another exception occurred: - - FileNotFoundError Traceback (most recent call last) - /usr/local/Cellar/jupyterlab/3.1.4/libexec/lib/python3.9/site-packages/IPython/core/formatters.py in __call__(self, obj, include, exclude) - 968 - 969 if method is not None: - --> 970 return method(include=include, exclude=exclude) - 971 return None - 972 else: - - /usr/local/Cellar/jupyterlab/3.1.4/libexec/lib/python3.9/site-packages/IPython/core/display.py in _repr_mimebundle_(self, include, exclude) - 1288 if self.embed: - 1289 mimetype = self._mimetype - -> 1290 data, metadata = self._data_and_metadata(always_both=True) - 1291 if metadata: - 1292 metadata = {mimetype: metadata} - - /usr/local/Cellar/jupyterlab/3.1.4/libexec/lib/python3.9/site-packages/IPython/core/display.py in _data_and_metadata(self, always_both) - 1300 b64_data = b2a_base64(self.data).decode('ascii') - 1301 except TypeError: - -> 1302 raise FileNotFoundError( - 1303 "No such file or directory: '%s'" % (self.data)) - 1304 md = {} - - FileNotFoundError: No such file or directory: '/tmp/utility.png' - -
- -
- - --------------------------------------------------------------------------- - TypeError Traceback (most recent call last) - /usr/local/Cellar/jupyterlab/3.1.4/libexec/lib/python3.9/site-packages/IPython/core/display.py in _data_and_metadata(self, always_both) - 1299 try: - -> 1300 b64_data = b2a_base64(self.data).decode('ascii') - 1301 except TypeError: - - TypeError: a bytes-like object is required, not 'str' - - During handling of the above exception, another exception occurred: - - FileNotFoundError Traceback (most recent call last) - /usr/local/Cellar/jupyterlab/3.1.4/libexec/lib/python3.9/site-packages/IPython/core/formatters.py in __call__(self, obj) - 343 method = get_real_method(obj, self.print_method) - 344 if method is not None: - --> 345 return method() - 346 return None - 347 else: - - /usr/local/Cellar/jupyterlab/3.1.4/libexec/lib/python3.9/site-packages/IPython/core/display.py in _repr_png_(self) - 1318 def _repr_png_(self): - 1319 if self.embed and self.format == self._FMT_PNG: - -> 1320 return self._data_and_metadata() - 1321 - 1322 def _repr_jpeg_(self): - - /usr/local/Cellar/jupyterlab/3.1.4/libexec/lib/python3.9/site-packages/IPython/core/display.py in _data_and_metadata(self, always_both) - 1300 b64_data = b2a_base64(self.data).decode('ascii') - 1301 except TypeError: - -> 1302 raise FileNotFoundError( - 1303 "No such file or directory: '%s'" % (self.data)) - 1304 md = {} - - FileNotFoundError: No such file or directory: '/tmp/utility.png' - -
-
- +bash% [](1f3dc876b6d8f3e42eebe70dba2d97e427eb4b79.png)
@@ -2291,18 +1707,22 @@ bash% gridlabd geodata merge -D powerline path_example.csv --cable_type="TACSR/A
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + WARNING [geodata/powerline]: cannot run function CONTACT and 'height' is missing or invalid + linesag + position + 0 18.0 + 50 12.2 + 100 9.4 + 150 9.7 + 200 13.0 + ... ... + 8390 -16.6 + 8440 -8.9 + 8490 0.6 + 8540 12.0 + 8583 23.0 + + [191 rows x 1 columns]
@@ -2390,18 +1810,23 @@ bash% gridlabd geodata merge -D powerline path_example.csv -f TABLE:linesag # mi
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + WARNING [geodata/powerline]: cable_type not specified + WARNING [geodata/powerline]: cannot run function CONTACT and 'height' is missing or invalid + linesag + id + 0 NaN + 1 NaN + 2 NaN + 3 NaN + 4 NaN + .. ... + 32 NaN + 33 NaN + 34 NaN + 35 NaN + 36 NaN + + [37 rows x 1 columns]
@@ -2415,18 +1840,23 @@ bash% gridlabd geodata merge -D powerline path_example.csv -f TABLE:linesag --ca
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + WARNING [geodata/powerline]: cable_type='My cabletype' not found + WARNING [geodata/powerline]: cannot run function CONTACT and 'height' is missing or invalid + linesag + id + 0 NaN + 1 NaN + 2 NaN + 3 NaN + 4 NaN + .. ... + 32 NaN + 33 NaN + 34 NaN + 35 NaN + 36 NaN + + [37 rows x 1 columns]
@@ -2450,18 +1880,16 @@ bash% gridlabd geodata help | head -n 10
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + Help on module __main__: + + NAME + __main__ - Syntax: gridlabd geodata OPTIONS DIRECTIVE [ARGUMENTS] + + DESCRIPTION + The geodata command gathers and joins geographic data. The geodata subcommand + uses directives that are documented in the DIRECTIVES section below. + + In general geodata is used to acquire geographic information at a location or
@@ -2475,18 +1903,16 @@ bash% gridlabd geodata help distance | head -n 10
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + Help on module geodata_distance: + + NAME + geodata_distance - GridLAB-D Geodata Distance Package + + DESCRIPTION + The distance package computes the shortest distance between consecutive + positions. + + OPTIONS
@@ -2521,18 +1947,108 @@ bash% gridlabd geodata merge -D distance 37,-122 38,-122 -v --units=km --precisi
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + VERBOSE [geodata/distance]: verbose output enabled + VERBOSE [geodata/distance]: arg=37,-122 --> append 1 rows from args + VERBOSE [geodata/distance]: arg=38,-122 --> append 1 rows from args + VERBOSE [geodata/distance]: arg=--units=km --> option ['units', 'km'] accepted + VERBOSE [geodata/distance]: arg=--precision.distance=3 --> option ['precision.distance', '3'] accepted + VERBOSE [geodata/distance]: 2 rows total received + VERBOSE [geodata/distance]: creating row index + VERBOSE [geodata/distance]: data = + -------------------------- + latitude longitude id + 0 37.0 -122.0 0 + 1 38.0 -122.0 1 + -------------------------- + + VERBOSE [geodata/distance]: options = { + "verbose": true, + "debug": false, + "silent": false, + "quiet": false, + "warning": true, + "key_index": "", + "max_threads": 1, + "config_file": "geodata.conf", + "field_separator": " ", + "record_separator": "\n", + "input_delimiter": "+", + "warning_as_error": false, + "plot": { + "figsize": [ + 7.0, + 5.0 + ], + "cmap": "", + "categorical": false, + "legend": false, + "scheme": "", + "k": 5, + "vmin": NaN, + "vmax": NaN, + "aspect": "auto" + }, + "show": { + "block": true + }, + "savefig": { + "dpi": 300, + "facecolor": "w", + "edgecolor": "k", + "orientation": "landscape", + "format": "png", + "transparent": false, + "pad_inches": 0.1 + }, + "table": { + "max_rows": 10, + "max_columns": 10, + "width": 80, + "max_colwidth": 16 + }, + "precision": { + "distance": 3, + "heading": 1, + "geolocation": 5, + "id": 0, + "resolution_id": 3 + }, + "resolution": 0, + "resolution_id": false, + "json": { + "orient": "index", + "data_format": "iso", + "double_precision": 10, + "force_ascii": true, + "date_unit": "s" + }, + "filter": "", + "select": "", + "units": "km", + "relative": false + } + VERBOSE [geodata/distance]: config = { + "geodata_url": "http://geodata.gridlabd.us/", + "output_format": "CSV", + "path_join": "outer", + "column_names": { + "ID": "id", + "UUID": "uuid", + "LAT": "latitude", + "LON": "longitude", + "DIST": "distance", + "HEAD": "heading", + "LOC": "location", + "POS": "position" + }, + "uuid_type": 4, + "vegetation.username": "name@example.com", + "vegetation.password": "password5839", + "method": "haversine" + } + id,latitude,longitude,distance + 0,37.0,-122.0,0.0 + 1,38.0,-122.0,111.195
@@ -2559,19 +2075,7 @@ bash% gridlabd geodata merge -D distance 37,-122 38,-122 --badoption -s || echo
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - Exit code 1 + Exit code 4
@@ -2597,18 +2101,10 @@ bash% gridlabd geodata merge -D distance 37,-122 38,-122 -r 100 -k location -w -
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude id distance + location + 9q94rzdk9gyt 37.0 -122.0 0 0.0 + 9qc0pvdq1cqt 38.0 -122.0 1 111195.0
@@ -2629,18 +2125,7 @@ bash% gridlabd geodata merge -D distance 37,-122 38,-122 -r 100 -k location --wa
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + ERROR [geodata/distance]: using index 'location' cannot be used with '--resolution=100.0' option
@@ -2668,18 +2153,7 @@ bash% gridlabd geodata merge -D distance 37,-122 38,-122 --units=furlongs
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + ERROR [geodata/distance]: unit 'furlongs' is not recognized
@@ -2703,17 +2177,100 @@ bash% gridlabd geodata merge -D distance 37,-122 38,-122 --units=furlongs -d # i
Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + File "/usr/local/opt/gridlabd/4.2.26-210820-develop_add_cyme_converter/bin/gridlabd-geodata", line 854, in merge + result = MODULE.apply(data,options,config,warning) + File "/usr/local/opt/gridlabd/4.2.26-210820-develop_add_cyme_converter/share/gridlabd/geodata_distance.py", line 119, in apply + raise Exception(f"unit '{options['units']}' is not recognized") + Exception: unit 'furlongs' is not recognized + DEBUG [geodata/distance]: merge(args=['37,-122', '38,-122', '--units=furlongs']) --> data = + ---- + None + ---- + options = { + "verbose": false, + "debug": true, + "silent": false, + "quiet": false, + "warning": true, + "key_index": "", + "max_threads": 1, + "config_file": "geodata.conf", + "field_separator": " ", + "record_separator": "\n", + "input_delimiter": "+", + "warning_as_error": false, + "plot": { + "figsize": [ + 7.0, + 5.0 + ], + "cmap": "", + "categorical": false, + "legend": false, + "scheme": "", + "k": 5, + "vmin": NaN, + "vmax": NaN, + "aspect": "auto" + }, + "show": { + "block": true + }, + "savefig": { + "dpi": 300, + "facecolor": "w", + "edgecolor": "k", + "orientation": "landscape", + "format": "png", + "transparent": false, + "pad_inches": 0.1 + }, + "table": { + "max_rows": 10, + "max_columns": 10, + "width": 80, + "max_colwidth": 16 + }, + "precision": { + "distance": 0, + "heading": 1, + "geolocation": 5, + "id": 0, + "resolution_id": 3 + }, + "resolution": 0, + "resolution_id": false, + "json": { + "orient": "index", + "data_format": "iso", + "double_precision": 10, + "force_ascii": true, + "date_unit": "s" + }, + "filter": "", + "select": "", + "units": "furlongs", + "relative": false + } + config = { + "geodata_url": "http://geodata.gridlabd.us/", + "output_format": "CSV", + "path_join": "outer", + "column_names": { + "ID": "id", + "UUID": "uuid", + "LAT": "latitude", + "LON": "longitude", + "DIST": "distance", + "HEAD": "heading", + "LOC": "location", + "POS": "position" + }, + "uuid_type": 4, + "vegetation.username": "name@example.com", + "vegetation.password": "password5839", + "method": "haversine" + }
@@ -2752,18 +2309,20 @@ bash% gridlabd geodata --show_config
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + --geodata_url='http://geodata.gridlabd.us/' + --output_format='CSV' + --path_join='outer' + --column_names.ID='id' + --column_names.UUID='uuid' + --column_names.LAT='latitude' + --column_names.LON='longitude' + --column_names.DIST='distance' + --column_names.HEAD='heading' + --column_names.LOC='location' + --column_names.POS='position' + --uuid_type=4 + --vegetation.username='name@example.com' + --vegetation.password='password5839'
@@ -2791,18 +2350,53 @@ bash% gridlabd geodata --show_options
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + --verbose=False + --debug=False + --silent=False + --quiet=False + --warning=True + --key_index='' + --max_threads=1 + --config_file='geodata.conf' + --field_separator=' ' + --record_separator='\n' + --input_delimiter='+' + --warning_as_error=False + --plot.figsize=7.0.5.0 + --plot.cmap='' + --plot.categorical=False + --plot.legend=False + --plot.scheme='' + --plot.k=5 + --plot.vmin=nan + --plot.vmax=nan + --plot.aspect='auto' + --show.block=True + --savefig.dpi=300 + --savefig.facecolor='w' + --savefig.edgecolor='k' + --savefig.orientation='landscape' + --savefig.format='png' + --savefig.transparent=False + --savefig.pad_inches=0.1 + --table.max_rows=10 + --table.max_columns=10 + --table.width=80 + --table.max_colwidth=16 + --precision.distance=0 + --precision.heading=1 + --precision.geolocation=5 + --precision.id=0 + --precision.resolution_id=3 + --resolution=0 + --resolution_id=False + --json.orient='index' + --json.data_format='iso' + --json.double_precision=10 + --json.force_ascii=True + --json.date_unit='s' + --filter='' + --select=''
@@ -2988,20 +2582,8 @@ bash% gridlabd json-get objects Building_53 - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - ERROR [INIT] : GldMain::subcommand(format='%s/gridlabd-%s',...): command '/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata merge -D address /tmp/address.csv --reverse --format GLM:@latitude,longitude -o /tmp/latlon.glm - ' returns code 1 + "latitude": "37.415460", + "longitude": "-122.201180", "address": "2575 Sand Hill Rd., Menlo Park, CA",
@@ -3020,7 +2602,7 @@ dataset.
-
+
``` python bash% gridlabd geodata merge -D elevation path_example.csv -r 250 \ @@ -3029,30 +2611,57 @@ bash% gridlabd geodata merge -D elevation path_example.csv -r 250 \
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + position latitude longitude configuration pole_height distance heading elevation + id + 0.0 0 37.41505 -122.20565 flat3 18.0 0.0 NaN 88.0 + NaN 250 37.41471 -122.20845 NaN NaN 250.0 263.0 100.0 + 1.0 254 37.41470 -122.20849 sideT 20.0 0.0 263.0 100.0 + 2.0 428 37.41445 -122.21044 sideT 21.0 0.0 262.7 111.0 + 3.0 595 37.41422 -122.21231 sideT 18.0 0.0 263.0 110.0 + 4.0 771 37.41398 -122.21427 sideT 20.0 0.0 263.0 98.0 + 5.0 976 37.41370 -122.21657 sideT 18.0 0.0 263.1 91.0 + 6.0 1128 37.41348 -122.21827 sideT 21.0 0.0 262.6 77.0 + 7.0 1326 37.41321 -122.22048 sideT 18.0 0.0 263.0 91.0 + 8.0 1490 37.41298 -122.22232 sideT 16.0 0.0 262.9 80.0 + 9.0 1690 37.41271 -122.22456 sideT 21.0 0.0 263.1 79.0 + NaN 1940 37.41236 -122.22736 NaN NaN 250.0 262.9 96.0 + 10.0 1941 37.41236 -122.22736 sideT 18.0 0.0 262.9 96.0 + 11.0 2123 37.41211 -122.22940 sideT 19.0 0.0 263.0 82.0 + 12.0 2341 37.41181 -122.23184 3pole 15.0 0.0 263.0 103.0 + NaN 2591 37.41058 -122.23421 NaN NaN 250.0 242.5 83.0 + 13.0 2718 37.40995 -122.23541 3pole 16.0 0.0 242.5 129.0 + 14.0 2941 37.40912 -122.23771 2pole 15.0 0.0 250.2 109.0 + NaN 3191 37.40818 -122.24028 NaN NaN 250.0 249.9 89.0 + 15.0 3268 37.40789 -122.24107 2pole 17.0 0.0 249.9 108.0 + 16.0 3466 37.40715 -122.24311 2pole 15.0 0.0 250.1 115.0 + 17.0 3653 37.40644 -122.24503 3pole 17.0 0.0 249.7 124.0 + 18.0 3759 37.40562 -122.24443 vert3 17.0 0.0 143.8 127.0 + 19.0 3878 37.40456 -122.24418 vert3 20.0 0.0 166.7 123.0 + 20.0 4009 37.40339 -122.24429 vert3 20.0 0.0 185.4 117.0 + 21.0 4115 37.40249 -122.24468 vert3 20.0 0.0 203.4 110.0 + 22.0 4267 37.40136 -122.24566 vert3 22.0 0.0 220.9 106.0 + NaN 4517 37.40032 -122.24817 NaN NaN 250.0 247.6 106.0 + 23.0 4627 37.39987 -122.24927 3pole 16.0 0.0 247.6 116.0 + 24.0 4793 37.39966 -122.25113 2pole 18.0 0.0 263.6 167.0 + NaN 5043 37.39950 -122.25395 NaN NaN 250.0 266.8 206.0 + 25.0 5248 37.39937 -122.25627 2pole 22.0 0.0 266.8 267.0 + 26.0 5397 37.39928 -122.25795 3pole 15.0 0.0 266.9 285.0 + NaN 5647 37.39908 -122.26077 NaN NaN 250.0 266.0 205.0 + NaN 5897 37.39888 -122.26359 NaN NaN 500.0 266.0 308.0 + 27.0 5977 37.39882 -122.26449 3pole 18.0 0.0 266.0 331.0 + 28.0 6119 37.39871 -122.26610 2pole 15.0 0.0 266.1 352.0 + 29.0 6250 37.39861 -122.26757 3pole 18.0 0.0 266.1 341.0 + NaN 6500 37.39667 -122.26901 NaN NaN 250.0 216.5 343.0 + NaN 6750 37.39473 -122.27044 NaN NaN 500.0 216.5 439.0 + 30.0 6783 37.39448 -122.27063 3pole 21.0 0.0 216.5 444.0 + 31.0 6971 37.39306 -122.27180 3pole 21.0 0.0 219.5 448.0 + 32.0 7215 37.39248 -122.27446 2pole 17.0 0.0 257.7 505.0 + 33.0 7463 37.39190 -122.27717 2pole 21.0 0.0 257.9 578.0 + 34.0 7593 37.39161 -122.27860 2pole 23.0 0.0 258.5 615.0 + 35.0 7840 37.39171 -122.28139 3pole 16.0 0.0 272.1 642.0 + NaN 8090 37.39048 -122.28376 NaN NaN 250.0 242.6 548.0 + NaN 8340 37.38926 -122.28613 NaN NaN 500.0 242.6 544.0 + 36.0 8583 37.38806 -122.28844 tower 23.0 0.0 242.6 634.0
@@ -3067,7 +2676,7 @@ powerline data.
-
+
``` python bash% gridlabd geodata merge -D elevation path_example.csv -r 30 --resolution_id \ @@ -3077,42 +2686,313 @@ bash% gridlabd geodata merge -D elevation path_example.csv -r 30 --resolution_id
- Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' - Traceback (most recent call last): - File "/usr/local/opt/gridlabd/4.2.25-210808-develop_add_model_browser/bin/gridlabd-geodata", line 358, in - import matplotlib.pyplot as plt - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2336, in - switch_backend(rcParams["backend"]) - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 276, in switch_backend - class backend_mod(matplotlib.backend_bases._Backend): - File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 277, in backend_mod - locals().update(vars(importlib.import_module(backend_name))) - File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ModuleNotFoundError: No module named 'matplotlib_inline' + latitude longitude pole_height elevation linesag cover height contact + id + 0.000 37.41505 -122.20565 18.0 88.0 18.0 0.68 14.0 0.00 + 0.003 37.41501 -122.20599 NaN 89.0 14.5 0.73 16.0 0.73 + 0.007 37.41497 -122.20632 NaN 89.0 13.2 0.74 16.0 0.74 + 0.010 37.41493 -122.20666 NaN 90.0 12.0 0.72 17.0 0.72 + 0.014 37.41488 -122.20699 NaN 91.0 11.8 0.56 17.0 0.56 + 0.017 37.41484 -122.20733 NaN 92.0 12.8 0.30 17.0 0.30 + 0.021 37.41480 -122.20766 NaN 93.0 14.8 0.14 16.0 0.14 + 0.024 37.41476 -122.20800 NaN 95.0 17.0 0.07 10.0 0.00 + 0.028 37.41472 -122.20834 NaN 98.0 19.3 0.09 1.0 0.00 + 0.030 37.41470 -122.20849 20.0 100.0 20.0 0.09 1.0 0.00 + 0.033 37.41466 -122.20883 NaN 103.0 15.9 0.14 1.0 0.00 + 0.037 37.41461 -122.20916 NaN 99.0 20.1 0.16 1.0 0.00 + 0.040 37.41457 -122.20950 NaN 98.0 22.7 0.14 1.0 0.00 + 0.044 37.41453 -122.20983 NaN 103.0 20.5 0.11 0.0 0.00 + 0.047 37.41449 -122.21017 NaN 110.0 17.7 0.33 1.0 0.00 + 0.050 37.41445 -122.21044 21.0 111.0 21.0 0.31 1.0 0.00 + 0.053 37.41441 -122.21078 NaN 111.0 17.2 0.30 1.0 0.00 + 0.057 37.41437 -122.21111 NaN 113.0 12.8 0.33 1.0 0.00 + 0.060 37.41433 -122.21145 NaN 115.0 9.7 0.40 1.0 0.00 + 0.064 37.41428 -122.21178 NaN 114.0 10.9 0.44 1.0 0.00 + 0.067 37.41424 -122.21212 NaN 111.0 15.5 0.51 1.0 0.00 + 0.069 37.41422 -122.21231 18.0 110.0 18.0 0.51 1.0 0.00 + 0.073 37.41418 -122.21265 NaN 108.0 15.1 0.69 6.0 0.00 + 0.076 37.41414 -122.21298 NaN 107.0 12.6 0.72 13.0 0.72 + 0.080 37.41410 -122.21332 NaN 105.0 12.3 0.66 15.0 0.66 + 0.083 37.41406 -122.21365 NaN 104.0 12.3 0.62 15.0 0.62 + 0.087 37.41401 -122.21399 NaN 101.0 15.7 0.65 16.0 0.65 + 0.090 37.41398 -122.21427 20.0 98.0 20.0 0.68 17.0 0.00 + 0.093 37.41394 -122.21461 NaN 96.0 17.1 0.65 18.0 0.65 + 0.097 37.41390 -122.21494 NaN 94.0 15.5 0.52 19.0 0.52 + 0.100 37.41386 -122.21528 NaN 92.0 15.1 0.38 15.0 0.38 + 0.104 37.41382 -122.21561 NaN 91.0 14.8 0.20 9.0 0.00 + 0.107 37.41378 -122.21595 NaN 89.0 16.8 0.10 4.0 0.00 + 0.111 37.41373 -122.21628 NaN 90.0 17.0 0.07 2.0 0.00 + 0.114 37.41370 -122.21657 18.0 91.0 18.0 0.06 1.0 0.00 + 0.117 37.41366 -122.21691 NaN 90.0 13.9 0.06 0.0 0.00 + 0.121 37.41361 -122.21724 NaN 87.0 13.3 0.10 0.0 0.00 + 0.124 37.41357 -122.21758 NaN 83.0 15.1 0.11 1.0 0.00 + 0.128 37.41353 -122.21791 NaN 80.0 17.3 0.29 3.0 0.00 + 0.131 37.41348 -122.21825 NaN 77.0 20.9 0.50 4.0 0.00 + 0.131 37.41348 -122.21827 21.0 77.0 21.0 0.50 4.0 0.00 + 0.135 37.41344 -122.21861 NaN 76.0 20.2 0.67 7.0 0.00 + 0.138 37.41340 -122.21894 NaN 79.0 16.7 0.71 10.0 0.00 + 0.142 37.41336 -122.21928 NaN 82.0 14.4 0.67 13.0 0.67 + 0.145 37.41332 -122.21961 NaN 85.0 13.3 0.59 15.0 0.59 + 0.149 37.41327 -122.21995 NaN 89.0 12.5 0.54 16.0 0.54 + 0.152 37.41323 -122.22028 NaN 91.0 14.8 0.60 16.0 0.60 + 0.154 37.41321 -122.22048 18.0 91.0 18.0 0.68 16.0 0.00 + 0.158 37.41317 -122.22082 NaN 92.0 11.6 0.73 16.0 0.73 + 0.161 37.41313 -122.22115 NaN 89.0 10.6 0.74 17.0 0.74 + 0.165 37.41308 -122.22149 NaN 84.0 12.8 0.71 17.0 0.71 + 0.168 37.41304 -122.22182 NaN 82.0 13.5 0.70 15.0 0.70 + 0.172 37.41300 -122.22216 NaN 81.0 14.5 0.68 13.0 0.68 + 0.174 37.41298 -122.22232 16.0 80.0 16.0 0.62 12.0 0.00 + 0.177 37.41294 -122.22266 NaN 78.0 15.1 0.57 11.0 0.00 + 0.181 37.41290 -122.22299 NaN 77.0 14.5 0.42 9.0 0.00 + 0.184 37.41286 -122.22333 NaN 73.0 18.0 0.25 5.0 0.00 + 0.188 37.41282 -122.22366 NaN 74.0 17.8 0.12 3.0 0.00 + 0.191 37.41278 -122.22400 NaN 78.0 15.9 0.08 1.0 0.00 + 0.195 37.41274 -122.22433 NaN 79.0 18.1 0.06 1.0 0.00 + 0.197 37.41271 -122.22456 21.0 79.0 21.0 0.04 1.0 0.00 + 0.200 37.41267 -122.22490 NaN 79.0 18.6 0.02 0.0 0.00 + 0.204 37.41263 -122.22523 NaN 78.0 18.4 0.00 0.0 0.00 + 0.207 37.41258 -122.22557 NaN 74.0 22.2 0.01 0.0 0.00 + 0.211 37.41254 -122.22590 NaN 74.0 23.1 0.02 0.0 0.00 + 0.214 37.41250 -122.22624 NaN 79.0 20.2 0.06 1.0 0.00 + 0.218 37.41246 -122.22657 NaN 86.0 16.3 0.10 1.0 0.00 + 0.221 37.41242 -122.22691 NaN 93.0 13.6 0.19 2.0 0.00 + 0.225 37.41237 -122.22724 NaN 95.0 16.9 0.29 4.0 0.00 + 0.226 37.41236 -122.22736 18.0 96.0 18.0 0.29 4.0 0.00 + 0.230 37.41232 -122.22770 NaN 95.0 13.6 0.34 2.0 0.00 + 0.233 37.41228 -122.22803 NaN 92.0 12.5 0.41 3.0 0.00 + 0.237 37.41224 -122.22837 NaN 87.0 14.6 0.37 4.0 0.00 + 0.240 37.41220 -122.22870 NaN 82.0 18.1 0.26 4.0 0.00 + 0.244 37.41215 -122.22904 NaN 83.0 16.8 0.09 2.0 0.00 + 0.247 37.41211 -122.22937 NaN 82.0 18.9 0.07 2.0 0.00 + 0.247 37.41211 -122.22940 19.0 82.0 19.0 0.07 2.0 0.00 + 0.251 37.41207 -122.22974 NaN 82.0 17.6 0.05 1.0 0.00 + 0.254 37.41203 -122.23007 NaN 83.0 16.5 0.07 3.0 0.00 + 0.258 37.41199 -122.23041 NaN 84.0 16.5 0.10 3.0 0.00 + 0.261 37.41194 -122.23074 NaN 85.0 17.6 0.13 4.0 0.00 + 0.265 37.41190 -122.23108 NaN 89.0 17.1 0.12 4.0 0.00 + 0.268 37.41186 -122.23141 NaN 99.0 11.5 0.11 4.0 0.00 + 0.272 37.41182 -122.23175 NaN 103.0 13.3 0.13 2.0 0.00 + 0.273 37.41181 -122.23184 15.0 103.0 15.0 0.15 1.0 0.00 + 0.276 37.41166 -122.23212 NaN 102.0 12.9 0.07 1.0 0.00 + 0.280 37.41151 -122.23241 NaN 96.0 16.7 0.08 1.0 0.00 + 0.283 37.41137 -122.23269 NaN 94.0 17.4 0.04 1.0 0.00 + 0.287 37.41122 -122.23298 NaN 95.0 16.0 0.04 0.0 0.00 + 0.290 37.41107 -122.23326 NaN 97.0 14.5 0.04 1.0 0.00 + 0.294 37.41092 -122.23354 NaN 96.0 17.0 0.04 1.0 0.00 + 0.297 37.41077 -122.23383 NaN 92.0 23.4 0.14 4.0 0.00 + 0.301 37.41063 -122.23411 NaN 85.0 33.5 0.18 5.0 0.00 + 0.304 37.41048 -122.23440 NaN 81.0 41.8 0.49 9.0 0.00 + 0.308 37.41033 -122.23468 NaN 92.0 35.8 0.47 8.0 0.00 + 0.311 37.41018 -122.23496 NaN 109.0 24.8 0.48 6.0 0.00 + 0.315 37.41003 -122.23525 NaN 126.0 14.9 0.40 6.0 0.00 + 0.317 37.40995 -122.23541 16.0 129.0 16.0 0.40 6.0 0.00 + 0.320 37.40984 -122.23572 NaN 127.0 11.5 0.18 2.0 0.00 + 0.324 37.40973 -122.23603 NaN 119.0 14.1 0.10 2.0 0.00 + 0.327 37.40962 -122.23634 NaN 110.0 18.8 0.08 1.0 0.00 + 0.331 37.40950 -122.23665 NaN 105.0 20.7 0.09 1.0 0.00 + 0.334 37.40939 -122.23696 NaN 104.0 19.8 0.14 1.0 0.00 + 0.338 37.40928 -122.23727 NaN 103.0 20.0 0.28 2.0 0.00 + 0.341 37.40917 -122.23757 NaN 107.0 16.4 0.26 2.0 0.00 + 0.343 37.40912 -122.23771 15.0 109.0 15.0 0.42 5.0 0.00 + 0.346 37.40901 -122.23802 NaN 107.0 12.3 0.53 6.0 0.00 + 0.350 37.40889 -122.23833 NaN 98.0 17.5 0.28 5.0 0.00 + 0.353 37.40878 -122.23864 NaN 89.0 23.7 0.32 7.0 0.00 + 0.357 37.40867 -122.23894 NaN 87.0 24.0 0.42 11.0 0.00 + 0.360 37.40856 -122.23925 NaN 86.0 24.1 0.30 11.0 0.00 + 0.364 37.40844 -122.23956 NaN 85.0 25.3 0.26 9.0 0.00 + 0.367 37.40833 -122.23987 NaN 87.0 24.4 0.16 7.0 0.00 + 0.371 37.40822 -122.24018 NaN 88.0 25.5 0.15 4.0 0.00 + 0.374 37.40810 -122.24049 NaN 97.0 19.6 0.16 2.0 0.00 + 0.378 37.40799 -122.24079 NaN 105.0 15.5 0.19 1.0 0.00 + 0.381 37.40789 -122.24107 17.0 108.0 17.0 0.14 1.0 0.00 + 0.384 37.40778 -122.24138 NaN 109.0 13.3 0.09 1.0 0.00 + 0.388 37.40767 -122.24169 NaN 109.0 11.8 0.09 1.0 0.00 + 0.391 37.40755 -122.24200 NaN 111.0 9.6 0.11 1.0 0.00 + 0.395 37.40744 -122.24231 NaN 111.0 10.6 0.17 1.0 0.00 + 0.398 37.40733 -122.24261 NaN 113.0 10.8 0.28 1.0 0.00 + 0.402 37.40722 -122.24292 NaN 115.0 12.3 0.32 1.0 0.00 + 0.404 37.40715 -122.24311 15.0 115.0 15.0 0.32 1.0 0.00 + 0.407 37.40704 -122.24342 NaN 115.0 13.4 0.32 1.0 0.00 + 0.411 37.40692 -122.24373 NaN 117.0 11.2 0.33 1.0 0.00 + 0.414 37.40681 -122.24403 NaN 119.0 10.1 0.22 1.0 0.00 + 0.418 37.40669 -122.24434 NaN 120.0 11.4 0.16 1.0 0.00 + 0.421 37.40658 -122.24465 NaN 123.0 11.9 0.09 1.0 0.00 + 0.425 37.40647 -122.24496 NaN 124.0 15.7 0.09 1.0 0.00 + 0.426 37.40644 -122.24503 17.0 124.0 17.0 0.09 1.0 0.00 + 0.429 37.40621 -122.24486 NaN 127.0 12.7 0.09 1.0 0.00 + 0.433 37.40597 -122.24469 NaN 128.0 12.1 0.15 1.0 0.00 + 0.436 37.40574 -122.24452 NaN 127.0 15.2 0.12 1.0 0.00 + 0.438 37.40562 -122.24443 17.0 127.0 17.0 0.12 1.0 0.00 + 0.441 37.40535 -122.24437 NaN 126.0 15.3 0.08 2.0 0.00 + 0.445 37.40509 -122.24430 NaN 124.0 16.3 0.08 2.0 0.00 + 0.448 37.40482 -122.24424 NaN 123.0 17.9 0.11 2.0 0.00 + 0.452 37.40456 -122.24418 20.0 123.0 20.0 0.11 2.0 0.00 + 0.455 37.40429 -122.24421 NaN 122.0 17.1 0.15 2.0 0.00 + 0.459 37.40402 -122.24423 NaN 120.0 16.7 0.15 2.0 0.00 + 0.462 37.40375 -122.24426 NaN 118.0 17.8 0.23 3.0 0.00 + 0.466 37.40348 -122.24428 NaN 117.0 19.4 0.31 4.0 0.00 + 0.467 37.40339 -122.24429 20.0 117.0 20.0 0.31 3.0 0.00 + 0.471 37.40313 -122.24440 NaN 116.0 16.8 0.31 3.0 0.00 + 0.474 37.40288 -122.24451 NaN 115.0 15.4 0.22 1.0 0.00 + 0.478 37.40262 -122.24462 NaN 111.0 18.7 0.16 1.0 0.00 + 0.479 37.40249 -122.24468 20.0 110.0 20.0 0.16 1.0 0.00 + 0.483 37.40227 -122.24487 NaN 108.0 18.8 0.09 2.0 0.00 + 0.486 37.40205 -122.24507 NaN 108.0 16.9 0.08 1.0 0.00 + 0.490 37.40182 -122.24526 NaN 108.0 16.4 0.09 1.0 0.00 + 0.493 37.40160 -122.24545 NaN 107.0 18.4 0.10 1.0 0.00 + 0.497 37.40138 -122.24564 NaN 106.0 21.7 0.15 1.0 0.00 + 0.497 37.40136 -122.24566 22.0 106.0 22.0 0.15 1.0 0.00 + 0.501 37.40124 -122.24596 NaN 106.0 17.3 0.16 1.0 0.00 + 0.504 37.40111 -122.24626 NaN 106.0 13.4 0.18 1.0 0.00 + 0.508 37.40099 -122.24656 NaN 106.0 10.5 0.15 1.0 0.00 + 0.511 37.40086 -122.24687 NaN 106.0 8.5 0.20 1.0 0.00 + 0.515 37.40074 -122.24717 NaN 106.0 7.4 0.21 1.0 0.00 + 0.518 37.40061 -122.24747 NaN 106.0 7.3 0.28 2.0 0.00 + 0.522 37.40049 -122.24777 NaN 106.0 8.1 0.37 3.0 0.00 + 0.525 37.40036 -122.24807 NaN 106.0 9.9 0.49 4.0 0.00 + 0.529 37.40024 -122.24837 NaN 106.0 12.5 0.54 4.0 0.00 + 0.532 37.40012 -122.24867 NaN 108.0 14.1 0.59 5.0 0.00 + 0.536 37.39999 -122.24898 NaN 110.0 16.8 0.35 10.0 0.00 + 0.539 37.39987 -122.24927 16.0 116.0 16.0 0.36 11.0 0.00 + 0.543 37.39983 -122.24961 NaN 123.0 10.5 0.39 10.0 0.39 + 0.546 37.39979 -122.24994 NaN 134.0 4.5 0.43 10.0 0.43 + 0.550 37.39976 -122.25028 NaN 146.0 1.3 0.47 9.0 0.47 + 0.553 37.39972 -122.25061 NaN 156.0 3.6 0.49 8.0 0.49 + 0.557 37.39968 -122.25095 NaN 164.0 12.3 0.51 7.0 0.00 + 0.558 37.39966 -122.25113 18.0 167.0 18.0 0.51 7.0 0.00 + 0.562 37.39964 -122.25147 NaN 166.0 19.0 0.49 6.0 0.00 + 0.565 37.39962 -122.25181 NaN 163.0 23.1 0.46 5.0 0.00 + 0.569 37.39960 -122.25215 NaN 166.0 22.0 0.43 5.0 0.00 + 0.572 37.39958 -122.25249 NaN 171.0 20.0 0.47 7.0 0.00 + 0.576 37.39956 -122.25282 NaN 178.0 16.8 0.52 7.0 0.00 + 0.579 37.39955 -122.25316 NaN 186.0 13.7 0.55 7.0 0.00 + 0.583 37.39953 -122.25350 NaN 194.0 11.5 0.59 7.0 0.00 + 0.586 37.39951 -122.25384 NaN 203.0 9.4 0.65 8.0 0.65 + 0.590 37.39949 -122.25418 NaN 210.0 10.2 0.71 9.0 0.71 + 0.593 37.39947 -122.25452 NaN 219.0 10.1 0.73 11.0 0.73 + 0.597 37.39945 -122.25486 NaN 227.0 12.0 0.69 10.0 0.00 + 0.600 37.39943 -122.25520 NaN 233.0 16.8 0.60 9.0 0.00 + 0.604 37.39941 -122.25553 NaN 244.0 17.4 0.54 6.0 0.00 + 0.607 37.39939 -122.25587 NaN 256.0 18.4 0.42 6.0 0.00 + 0.611 37.39937 -122.25621 NaN 265.0 23.4 0.31 8.0 0.00 + 0.611 37.39937 -122.25627 22.0 267.0 22.0 0.31 8.0 0.00 + 0.615 37.39935 -122.25661 NaN 274.0 14.4 0.29 9.0 0.00 + 0.618 37.39933 -122.25695 NaN 281.0 8.2 0.31 9.0 0.31 + 0.622 37.39932 -122.25729 NaN 284.0 7.5 0.32 10.0 0.32 + 0.625 37.39930 -122.25763 NaN 284.0 11.2 0.30 11.0 0.30 + 0.629 37.39928 -122.25795 15.0 285.0 15.0 0.27 11.0 0.00 + 0.632 37.39926 -122.25829 NaN 283.0 12.8 0.26 10.0 0.00 + 0.636 37.39923 -122.25863 NaN 274.0 18.3 0.24 10.0 0.00 + 0.639 37.39921 -122.25896 NaN 262.0 27.7 0.24 12.0 0.00 + 0.643 37.39918 -122.25930 NaN 248.0 39.6 0.25 10.0 0.00 + 0.646 37.39916 -122.25964 NaN 235.0 51.4 0.26 8.0 0.00 + 0.650 37.39914 -122.25998 NaN 222.0 63.9 0.29 6.0 0.00 + 0.653 37.39911 -122.26032 NaN 213.0 73.1 0.34 5.0 0.00 + 0.657 37.39909 -122.26066 NaN 207.0 80.0 0.38 7.0 0.00 + 0.660 37.39907 -122.26099 NaN 203.0 85.7 0.40 17.0 0.00 + 0.664 37.39904 -122.26133 NaN 205.0 86.1 0.41 21.0 0.00 + 0.667 37.39902 -122.26167 NaN 224.0 70.2 0.46 22.0 0.00 + 0.671 37.39899 -122.26201 NaN 247.0 51.2 0.54 21.0 0.00 + 0.674 37.39897 -122.26235 NaN 262.0 40.8 0.66 21.0 0.00 + 0.678 37.39895 -122.26269 NaN 274.0 34.2 0.70 20.0 0.00 + 0.681 37.39892 -122.26302 NaN 285.0 29.2 0.73 17.0 0.00 + 0.685 37.39890 -122.26336 NaN 296.0 25.1 0.76 16.0 0.00 + 0.688 37.39888 -122.26370 NaN 312.0 16.8 0.80 16.0 0.80 + 0.692 37.39885 -122.26404 NaN 322.0 15.2 0.82 19.0 0.82 + 0.695 37.39883 -122.26438 NaN 328.0 18.4 0.79 21.0 0.79 + 0.696 37.39882 -122.26449 18.0 331.0 18.0 0.79 21.0 0.79 + 0.700 37.39880 -122.26483 NaN 339.0 10.2 0.68 19.0 0.68 + 0.703 37.39877 -122.26517 NaN 346.0 5.4 0.64 16.0 0.64 + 0.707 37.39875 -122.26551 NaN 350.0 5.4 0.58 12.0 0.58 + 0.710 37.39873 -122.26584 NaN 352.0 9.2 0.53 11.0 0.53 + 0.713 37.39871 -122.26610 15.0 352.0 15.0 0.52 12.0 0.00 + 0.716 37.39869 -122.26644 NaN 352.0 10.6 0.55 13.0 0.55 + 0.720 37.39866 -122.26678 NaN 351.0 8.7 0.59 15.0 0.59 + 0.723 37.39864 -122.26712 NaN 348.0 10.4 0.60 15.0 0.60 + 0.727 37.39862 -122.26745 NaN 343.0 15.6 0.60 14.0 0.60 + 0.728 37.39861 -122.26757 18.0 341.0 18.0 0.60 14.0 0.00 + 0.732 37.39838 -122.26774 NaN 323.0 35.5 0.57 10.0 0.00 + 0.735 37.39814 -122.26791 NaN 309.0 49.9 0.48 8.0 0.00 + 0.739 37.39791 -122.26809 NaN 300.0 60.0 0.48 8.0 0.00 + 0.742 37.39768 -122.26826 NaN 299.0 62.8 0.47 8.0 0.00 + 0.746 37.39745 -122.26843 NaN 305.0 59.4 0.53 7.0 0.00 + 0.749 37.39721 -122.26860 NaN 317.0 50.8 0.68 13.0 0.00 + 0.753 37.39698 -122.26878 NaN 327.0 45.0 0.68 13.0 0.00 + 0.756 37.39675 -122.26895 NaN 339.0 37.9 0.80 18.0 0.00 + 0.760 37.39652 -122.26912 NaN 351.0 31.5 0.79 11.0 0.00 + 0.763 37.39628 -122.26929 NaN 361.0 28.2 0.65 6.0 0.00 + 0.767 37.39605 -122.26946 NaN 372.0 24.4 0.60 8.0 0.00 + 0.770 37.39582 -122.26964 NaN 383.0 21.5 0.44 5.0 0.00 + 0.774 37.39559 -122.26981 NaN 395.0 18.2 0.40 9.0 0.00 + 0.777 37.39535 -122.26998 NaN 408.0 15.1 0.44 9.0 0.00 + 0.781 37.39512 -122.27015 NaN 421.0 12.4 0.41 11.0 0.41 + 0.784 37.39489 -122.27033 NaN 432.0 12.8 0.45 8.0 0.00 + 0.788 37.39466 -122.27050 NaN 441.0 15.7 0.45 4.0 0.00 + 0.790 37.39448 -122.27063 21.0 444.0 21.0 0.45 4.0 0.00 + 0.794 37.39425 -122.27082 NaN 446.0 16.3 0.48 3.0 0.00 + 0.797 37.39403 -122.27100 NaN 445.0 15.9 0.52 5.0 0.00 + 0.801 37.39380 -122.27119 NaN 446.0 14.7 0.56 11.0 0.00 + 0.804 37.39358 -122.27137 NaN 447.0 14.7 0.55 11.0 0.00 + 0.808 37.39335 -122.27156 NaN 448.0 16.1 0.68 22.0 0.68 + 0.811 37.39313 -122.27175 NaN 448.0 19.7 0.79 27.0 0.79 + 0.812 37.39306 -122.27180 21.0 448.0 21.0 0.79 27.0 0.79 + 0.816 37.39299 -122.27213 NaN 450.0 19.4 0.77 26.0 0.77 + 0.819 37.39292 -122.27245 NaN 451.0 20.5 0.79 25.0 0.79 + 0.823 37.39285 -122.27278 NaN 458.0 17.3 0.81 30.0 0.81 + 0.826 37.39277 -122.27311 NaN 466.0 15.0 0.83 33.0 0.83 + 0.830 37.39270 -122.27344 NaN 477.0 11.4 0.85 35.0 0.85 + 0.833 37.39263 -122.27376 NaN 489.0 8.3 0.86 33.0 0.86 + 0.837 37.39256 -122.27409 NaN 498.0 10.3 0.85 29.0 0.85 + 0.840 37.39249 -122.27442 NaN 504.0 17.2 0.81 25.0 0.81 + 0.841 37.39248 -122.27446 17.0 505.0 17.0 0.81 25.0 0.81 + 0.844 37.39241 -122.27479 NaN 499.0 23.8 0.76 21.0 0.00 + 0.848 37.39234 -122.27512 NaN 500.0 26.1 0.73 19.0 0.00 + 0.851 37.39227 -122.27544 NaN 514.0 17.5 0.73 18.0 0.73 + 0.855 37.39220 -122.27577 NaN 529.0 10.4 0.75 19.0 0.75 + 0.858 37.39213 -122.27610 NaN 541.0 8.9 0.77 20.0 0.77 + 0.862 37.39206 -122.27643 NaN 555.0 7.8 0.79 22.0 0.79 + 0.865 37.39199 -122.27676 NaN 566.0 12.4 0.81 23.0 0.81 + 0.869 37.39192 -122.27708 NaN 576.0 20.1 0.82 21.0 0.82 + 0.870 37.39190 -122.27717 21.0 578.0 21.0 0.84 23.0 0.84 + 0.873 37.39183 -122.27750 NaN 586.0 14.8 0.84 24.0 0.84 + 0.877 37.39177 -122.27783 NaN 594.0 13.0 0.82 25.0 0.82 + 0.880 37.39170 -122.27816 NaN 603.0 14.6 0.81 26.0 0.81 + 0.883 37.39163 -122.27849 NaN 613.0 20.0 0.67 20.0 0.67 + 0.885 37.39161 -122.27860 23.0 615.0 23.0 0.67 20.0 0.00 + 0.888 37.39162 -122.27894 NaN 619.0 17.4 0.67 18.0 0.67 + 0.892 37.39163 -122.27928 NaN 620.0 16.0 0.64 15.0 0.64 + 0.895 37.39165 -122.27962 NaN 626.0 10.6 0.57 14.0 0.57 + 0.899 37.39166 -122.27996 NaN 639.0 -0.6 0.48 12.0 0.48 + 0.902 37.39167 -122.28030 NaN 643.0 -1.7 0.54 13.0 0.54 + 0.906 37.39168 -122.28064 NaN 643.0 2.3 0.61 15.0 0.61 + 0.909 37.39170 -122.28097 NaN 643.0 7.2 0.68 16.0 0.68 + 0.913 37.39171 -122.28131 NaN 642.0 14.5 0.72 16.0 0.72 + 0.913 37.39171 -122.28139 16.0 642.0 16.0 0.72 16.0 0.72 + 0.917 37.39156 -122.28167 NaN 633.0 17.6 0.79 16.0 0.79 + 0.920 37.39142 -122.28196 NaN 621.0 22.5 0.79 16.0 0.00 + 0.924 37.39127 -122.28224 NaN 608.0 29.1 0.75 17.0 0.00 + 0.927 37.39112 -122.28253 NaN 596.0 35.3 0.74 17.0 0.00 + 0.931 37.39097 -122.28281 NaN 582.0 44.2 0.76 21.0 0.00 + 0.934 37.39083 -122.28310 NaN 564.0 57.7 0.73 21.0 0.00 + 0.938 37.39068 -122.28338 NaN 556.0 61.9 0.68 18.0 0.00 + 0.941 37.39053 -122.28367 NaN 551.0 63.7 0.64 16.0 0.00 + 0.945 37.39038 -122.28395 NaN 542.0 70.2 0.65 14.0 0.00 + 0.948 37.39024 -122.28423 NaN 531.0 79.3 0.63 14.0 0.00 + 0.952 37.39009 -122.28452 NaN 523.0 86.0 0.63 14.0 0.00 + 0.955 37.38994 -122.28480 NaN 522.0 86.4 0.62 14.0 0.00 + 0.959 37.38980 -122.28509 NaN 523.0 85.4 0.68 16.0 0.00 + 0.962 37.38965 -122.28537 NaN 529.0 80.1 0.68 16.0 0.00 + 0.966 37.38950 -122.28566 NaN 537.0 73.4 0.73 22.0 0.00 + 0.969 37.38935 -122.28594 NaN 541.0 71.4 0.71 24.0 0.00 + 0.973 37.38921 -122.28623 NaN 545.0 70.0 0.68 21.0 0.00 + 0.976 37.38906 -122.28651 NaN 552.0 66.2 0.69 26.0 0.00 + 0.980 37.38891 -122.28680 NaN 559.0 63.2 0.64 22.0 0.00 + 0.983 37.38876 -122.28708 NaN 570.0 56.7 0.65 27.0 0.00 + 0.987 37.38862 -122.28736 NaN 583.0 48.7 0.66 25.0 0.00 + 0.990 37.38847 -122.28765 NaN 597.0 40.6 0.63 21.0 0.00 + 0.994 37.38832 -122.28793 NaN 614.0 30.1 0.64 18.0 0.00 + 0.997 37.38817 -122.28822 NaN 627.0 24.4 0.58 12.0 0.00 + 1.000 37.38806 -122.28844 23.0 634.0 23.0 0.56 9.0 0.00
diff --git a/gldcore/converters/autotest/table2glm_input.csv b/gldcore/converters/autotest/table2glm_input.csv index 0e9c05d5d..a2d9d67f2 100644 --- a/gldcore/converters/autotest/table2glm_input.csv +++ b/gldcore/converters/autotest/table2glm_input.csv @@ -1,2 +1,3 @@ -class,name ,wind_speed,temperature -climate,weather,4 m/s,95 degF \ No newline at end of file +name,wind_speed,temperature,phases,nominal_voltage,class +weather,4 m/s,95 degF,,,climate +node1,,,AB,120, \ No newline at end of file diff --git a/gldcore/converters/autotest/test_table2glm.glm b/gldcore/converters/autotest/test_table2glm.glm index b6365b0ac..080d51eec 100644 --- a/gldcore/converters/autotest/test_table2glm.glm +++ b/gldcore/converters/autotest/test_table2glm.glm @@ -1,5 +1,9 @@ module assert; +#ifexist "../table2glm_input.csv" +#define DIR=.. +#endif + clock { starttime "2019-01-01 00:00:00"; @@ -9,7 +13,7 @@ clock module powerflow; module climate; -#input "../table2glm_input.csv" -f "table" -t "object" +#input "${DIR:-.}/table2glm_input.csv" -f "table" -t "object" -C "powerflow.node" object assert { parent "weather"; diff --git a/gldcore/converters/autotest/test_table2glm_err.glm b/gldcore/converters/autotest/test_table2glm_err.glm index fc8d18712..a98026caa 100644 --- a/gldcore/converters/autotest/test_table2glm_err.glm +++ b/gldcore/converters/autotest/test_table2glm_err.glm @@ -1,5 +1,9 @@ module assert; +#ifexist "../table2glm_input_noclass.csv" +#define DIR=.. +#endif + clock { starttime "2019-01-01 00:00:00"; @@ -9,7 +13,7 @@ clock module powerflow; module climate; -#input "../table2glm_input_noclass.csv" -f "table" -t "object" +#input "${DIR:-.}/table2glm_input_noclass.csv" -f "table" -t "object" object assert { parent "weather"; diff --git a/gldcore/converters/autotest/test_table2glm_noclass.glm b/gldcore/converters/autotest/test_table2glm_noclass.glm index ef9872dcc..ba35b7e86 100644 --- a/gldcore/converters/autotest/test_table2glm_noclass.glm +++ b/gldcore/converters/autotest/test_table2glm_noclass.glm @@ -1,5 +1,9 @@ module assert; +#ifexist "../table2glm_input_noclass.csv" +#define DIR=.. +#endif + clock { starttime "2019-01-01 00:00:00"; @@ -9,7 +13,7 @@ clock module powerflow; module climate; -#input "../table2glm_input_noclass.csv" -f "table" -t "object" -C "climate" +#input "${DIR:-.}/table2glm_input_noclass.csv" -f "table" -t "object" -C "climate" object assert { parent "weather"; diff --git a/gldcore/converters/autotest/test_table2glm_noname.glm b/gldcore/converters/autotest/test_table2glm_noname.glm index 98b5104fe..ac7c2ca25 100644 --- a/gldcore/converters/autotest/test_table2glm_noname.glm +++ b/gldcore/converters/autotest/test_table2glm_noname.glm @@ -1,5 +1,9 @@ module assert; +#ifexist "../table2glm_input_noname.csv" +#define DIR=.. +#endif + clock { starttime "2019-01-01 00:00:00"; @@ -9,16 +13,21 @@ clock module powerflow; module climate; -#input "../table2glm_input_noname.csv" -f "table" -t "object" +global double wind_speed[m/s] 4; +global double temperature[degF] 95; + +#input "${DIR:-.}/table2glm_input_noname.csv" -f "table" -t "object" +#for OBJ in ${FIND class=climate} object assert { - parent "climate_1"; + parent ${OBJ}; target "wind_speed"; value 4 m/s; } object assert { - parent "climate_1"; + parent ${OBJ}; target "temperature"; value 95 degF; -} \ No newline at end of file +} +#done \ No newline at end of file diff --git a/gldcore/converters/csv-table2glm-object.py b/gldcore/converters/csv-table2glm-object.py index 9c0fafabb..4ecce70c8 100644 --- a/gldcore/converters/csv-table2glm-object.py +++ b/gldcore/converters/csv-table2glm-object.py @@ -1,38 +1,44 @@ -"""Convert Anticipation data sheet in CSV to an pole vulnerability GLM template parameter set +"""Convert generable CSV table into a list of GLM objects +Valid options: + class: specifies the default class to use when class is not specified in the table """ import csv import re import sys, getopt def error(msg): - print(f'ERROR {msg}') + print(f'ERROR [converters/csv-table2glm-object]: {msg}',file=sys.stderr) sys.exit(1) +def warning(msg): + print(f'WARNING [converters/csv-table2glm-object]: {msg}',file=sys.stderr) + def convert (p_configuration_in, p_configuration_out, options={} ) : - with open(p_configuration_in, newline='') as csvfile: + with open(p_configuration_in, "r", newline='') as csvfile: configurations = csv.reader(csvfile, delimiter=',') - p_config_out = open(p_configuration_out, "a") - p_config_out.truncate(0) - p_config_out.write("// Objects \n") - module_list = [] + p_config_out = open(p_configuration_out, "w") + p_config_out.write(f"// {__file__} {p_configuration_in} {p_configuration_out} {options} \n") for i, row in enumerate(configurations): if i == 0 : headers = row + if "class" in headers: + class_index = headers.index("class") + if options: + warning(f"class data overrides option from file") + + else: + class_index = None else : if "class" not in headers and not options: error("No class name found, please edit your CSV to include class or add -C to your input command") else : class_index=headers.index("class") if not row[class_index] : + p_config_out.write(f"object {options['class']} ") class_name = options['class'] if row[class_index] : + p_config_out.write(f"object {row[class_index]} ") class_name = row[class_index] - if "." in class_name : - class_spec = class_name.split(".")[0] - if class_spec not in module_list: - p_config_out.write(f"module {class_spec};\n") - module_list.append(class_spec) - p_config_out.write(f"object {class_name} ") p_config_out.write("{ \n") for j,value in enumerate (row) : if j!=class_index and headers[j] : @@ -45,4 +51,4 @@ def convert (p_configuration_in, p_configuration_out, options={} ) : else : p_config_out.write("\t" + headers[j].strip() + " " + "\"" +value + "\"" + ";\n") p_config_out.write("}\n") - p_config_out.close() + p_config_out.close() \ No newline at end of file diff --git a/gldcore/converters/csv2glm.py b/gldcore/converters/csv2glm.py index fa964b9c5..8e691bd8b 100644 --- a/gldcore/converters/csv2glm.py +++ b/gldcore/converters/csv2glm.py @@ -21,7 +21,8 @@ def help(): print(f' -f|--from : [REQUIRED] input {config["input"]} data type') print(f' -t|--type : [REQUIRED] output {config["output"]} data type') print(f' -p|--property : [OPTIONAL] property option') - print(f' -C|--class : [OPTIONAL] optional specification for class definition in the table converter') + print(f' -C|--class : [OPTIONAL] default class definition when generating GLM objects') + print(f' -M|--module : [OPTIONAL] default module definition when generating GLM objects') def error(msg): print(f'ERROR [{config["input"]}2{config["output"]}]: {msg}') @@ -33,7 +34,7 @@ def error(msg): output_type = None options = {} -opts, args = getopt.getopt(sys.argv[1:],"hci:o:f:t:p:C:",["help","config","ifile=","ofile=","from=","type=","property=","class="]) +opts, args = getopt.getopt(sys.argv[1:],"hci:o:f:t:p:C:M:",["help","config","ifile=","ofile=","from=","type=","property=","class="]) if not opts : help() @@ -59,6 +60,8 @@ def error(msg): options[prop[0]] = prop[1] elif opt in ("-C","--class"): options["class"] = arg.strip() + elif opt in ("-M","--module"): + options["module"] = arg.strip() else: error(f"{opt}={arg} is not a valid option"); diff --git a/gldcore/converters/json2html.py b/gldcore/converters/json2html.py index 3fe48f0b1..121a96a58 100644 --- a/gldcore/converters/json2html.py +++ b/gldcore/converters/json2html.py @@ -1,4 +1,14 @@ -"""Convert GLM to HTML Folium interactive map""" +"""Convert GLM to HTML Folium interactive map + +Object properties that affect map generation: + + hidden + map_color + map_weight (link only) + map_opacity (link only) + +If defined in the object will be created (if hidden not TRUE) using these properties. +""" import os, sys, getopt import json import folium @@ -97,11 +107,15 @@ def help(): lats = numpy.array(lats) lons = numpy.array(lons) - if zoomlevel == 'auto': - map = folium.Map(location=[lats.mean(),lons.mean()],tiles=tiles) - map.fit_bounds([[lats.min(),lons.min()],[lats.max(),lons.max()]]) - else: - map = folium.Map(location=[lats.mean(),lons.mean()],tiles=tiles,zoom_start=zoomlevel) + try: + if zoomlevel == 'auto': + map = folium.Map(location=[lats.mean(),lons.mean()],tiles=tiles) + map.fit_bounds([[lats.min(),lons.min()],[lats.max(),lons.max()]]) + else: + map = folium.Map(location=[lats.mean(),lons.mean()],tiles=tiles,zoom_start=zoomlevel) + except: + map = folium.Map(tiles=tiles,zoom_start=zoomlevel) + pass try: if cluster_ok: cluster = MarkerCluster().add_to(map) @@ -115,6 +129,8 @@ def help(): popup = get_popup(name,tag) oclass = tag['class'] color = get_color(tag) + if "hidden" in tag.keys() and tag["hidden"] == "TRUE": + continue if icon_prefix in icons.keys(): if oclass in icons[icon_prefix].keys(): icon = folium.Icon(icon=icons[icon_prefix][oclass],color=color,prefix=icon_prefix) @@ -122,6 +138,7 @@ def help(): icon = None else: icon = folium.Icon(color=color) + obj = None try: # attempt to handle as a link from_name = tag['from'] from_obj = data['objects'][from_name] @@ -131,24 +148,34 @@ def help(): to_obj = data['objects'][to_name] lat1 = float(to_obj['latitude']) lon1 = float(to_obj['longitude']) - phases = tag['phases'] - if tag['class'].startswith('underground'): - opacity = 0.3 - else: - opacity = 0.7 pos0 = (lat0,lon0) pos1 = (lat1,lon1) if pos0 != pos1: - obj = folium.PolyLine([pos0,pos1],color=color,weight=len(phases)*2,opacity=opacity,popup=popup,name=name) + if "phases" in tag.keys(): + weight = len(tag['phases'])*2 + if tag['class'].startswith('underground'): + opacity = 0.3 + else: + opacity = 0.7 + else: + opacity = 0.5 + weight = 3 + if "map_opacity" in tag.keys(): + opacity = tag["map_opacity"] + if "map_weight" in tag.keys(): + weight = tag["map_weight"] + obj = folium.PolyLine([pos0,pos1],color=color,weight=weight,opacity=opacity,popup=popup,name=name) else: obj = folium.Marker(pos,icon=icon,popup=popup,name=name) - except: # apparently not a link, so it's a node or other object + except Exception as err: # apparently not a link, so it's a node or other object + #print(f"DEBUG: {err}",file=sys.stderr) if not icon: warning(f"object '{name}' has no known icon (class '{oclass})'") icon = folium.Icon(color=color) if pos: obj = folium.Marker(pos,icon=icon,popup=popup,name=name) - obj.add_to(cluster) + if obj: + obj.add_to(cluster) if mouseposition: folium.plugins.MousePosition(auto_start=True,position=mouseposition).add_to(map) if search: @@ -189,6 +216,11 @@ def get_current_color(C,C0,C1): return current_colors['emergency'] def get_color(tag): + + # direct color assignment + if "map_color" in tag.keys(): + return tag["map_color"] + # try node scheme first try: VN = float(tag['nominal_voltage'].split()[0]) diff --git a/gldcore/geodata/docs/Geodata.ipynb b/gldcore/geodata/docs/Geodata.ipynb index 4cc00ff0e..bd34ab4b3 100644 --- a/gldcore/geodata/docs/Geodata.ipynb +++ b/gldcore/geodata/docs/Geodata.ipynb @@ -120,9 +120,9 @@ "name": "stdout", "output_type": "stream", "text": [ - "id,latitude,longitude\r\n", - "0,37.41,-122.2\r\n", - "1,37.42,-122.21\r\n" + "id,latitude,longitude\n", + "0,37.41,-122.2\n", + "1,37.42,-122.21\n" ] } ], @@ -214,10 +214,10 @@ "name": "stdout", "output_type": "stream", "text": [ - "id,latitude,longitude\r\n", - "0,37.41505,-122.20565\r\n", - "1,37.4147,-122.20849\r\n", - "2,37.41445,-122.21044\r\n" + "id,latitude,longitude\n", + "0,37.41505,-122.20565\n", + "1,37.4147,-122.20849\n", + "2,37.41445,-122.21044\n" ] } ], @@ -685,10 +685,10 @@ "name": "stdout", "output_type": "stream", "text": [ - "id,latitude,longitude\r\n", - "0,37.41,-122.2\r\n", - "1,37.42,-122.2\r\n", - "2,37.42,-122.21\r\n" + "id,latitude,longitude\n", + "0,37.41,-122.2\n", + "1,37.42,-122.2\n", + "2,37.42,-122.21\n" ] } ], @@ -979,9 +979,9 @@ "output_type": "stream", "text": [ "uuid,latitude,longitude,id\r\n", - "3208295d458644f09249c079023e6a18,37.41,-122.2,0\r\n", - "a10f53ce53fb42698afedd78a7d5a20d,37.42,-122.2,1\r\n", - "b727dd33eb2c4872b340397e43c665ed,37.42,-122.21,2\r\n" + "814feaf2794e4dc08a25eddc4a68f043,37.41,-122.2,0\r\n", + "0f1c64584e604b2cac8c69eb40135b70,37.42,-122.2,1\r\n", + "adc8ba4186874fbb9a7ff18fe1b9eaad,37.42,-122.21,2\r\n" ] } ], @@ -1008,9 +1008,9 @@ "output_type": "stream", "text": [ "uuid,latitude,longitude,id\r\n", - "964cfb1ef84a11eb9f32acde48001122,37.41,-122.2,0\r\n", - "964cfbbef84a11eb9f32acde48001122,37.42,-122.2,1\r\n", - "964cfbe6f84a11eb9f32acde48001122,37.42,-122.21,2\r\n" + "0705a628020d11ecbde8d0817adb129d,37.41,-122.2,0\r\n", + "0705a6e6020d11ecbde8d0817adb129d,37.42,-122.2,1\r\n", + "0705a718020d11ecbde8d0817adb129d,37.42,-122.21,2\r\n" ] } ], @@ -1837,15 +1837,11 @@ "name": "stdout", "output_type": "stream", "text": [ - "2021-08-08 06:15:22,148 WARNING cfo.utils [_auth_request] | Authentication failed. Try and run .authenticate(ignore_temp=True)\n", - "2021-08-08 06:15:22,148 WARNING cfo.utils [_auth_request] | b'{}\\n'\n", - "2021-08-08 06:15:22,148 WARNING cfo.utils [authenticate] | Authentication failed with status code 401\n", - "WARNING [geodata/vegetation]: vegetation data provider authentication failed\n", - " latitude longitude base cover height\n", - "id \n", - "0 37.41 -122.20 2.0 0.17 11.0\n", - "1 37.42 -122.20 1.0 0.18 15.0\n", - "2 37.42 -122.21 2.0 0.01 0.0\n" + " latitude longitude base cover height\r\n", + "id \r\n", + "0 37.41 -122.20 2.0 0.17 11.0\r\n", + "1 37.42 -122.20 1.0 0.18 15.0\r\n", + "2 37.42 -122.21 2.0 0.01 0.0\r\n" ] } ], @@ -1871,15 +1867,11 @@ "name": "stdout", "output_type": "stream", "text": [ - "2021-08-08 06:15:24,185 WARNING cfo.utils [_auth_request] | Authentication failed. Try and run .authenticate(ignore_temp=True)\n", - "2021-08-08 06:15:24,185 WARNING cfo.utils [_auth_request] | b'{}\\n'\n", - "2021-08-08 06:15:24,185 WARNING cfo.utils [authenticate] | Authentication failed with status code 401\n", - "WARNING [geodata/vegetation]: vegetation data provider authentication failed\n", - " latitude longitude base cover height\n", - "id \n", - "0 37.41 -122.20 2.0 0.17 11.0\n", - "1 37.42 -122.20 1.0 0.18 15.0\n", - "2 37.42 -122.21 2.0 0.01 0.0\n" + " latitude longitude base cover height\r\n", + "id \r\n", + "0 37.41 -122.20 2.0 0.17 11.0\r\n", + "1 37.42 -122.20 1.0 0.18 15.0\r\n", + "2 37.42 -122.21 2.0 0.01 0.0\r\n" ] } ], @@ -2026,7 +2018,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 62, "id": "f6cc13cb", "metadata": { "scrolled": false @@ -2036,22 +2028,22 @@ "name": "stdout", "output_type": "stream", "text": [ - "WARNING [geodata/powerline]: cannot run function CONTACT and 'height' is missing or invalid\n", - " linesag\n", - "position \n", - "0 18.0\n", - "50 12.2\n", - "100 9.4\n", - "150 9.7\n", - "200 13.0\n", - "... ...\n", - "8390 -16.6\n", - "8440 -8.9\n", - "8490 0.6\n", - "8540 12.0\n", - "8583 23.0\n", - "\n", - "[191 rows x 1 columns]\n" + "WARNING [geodata/powerline]: cannot run function CONTACT and 'height' is missing or invalid\r\n", + " linesag\r\n", + "position \r\n", + "0 18.0\r\n", + "50 12.2\r\n", + "100 9.4\r\n", + "150 9.7\r\n", + "200 13.0\r\n", + "... ...\r\n", + "8390 -16.6\r\n", + "8440 -8.9\r\n", + "8490 0.6\r\n", + "8540 12.0\r\n", + "8583 23.0\r\n", + "\r\n", + "[191 rows x 1 columns]\r\n" ] } ], @@ -2237,8 +2229,23 @@ "name": "stdout", "output_type": "stream", "text": [ - "WARNING [geodata/powerline]: cable_type not specified\r\n", - "ERROR [geodata/powerline]: 'height'\r\n" + "WARNING [geodata/powerline]: cable_type not specified\n", + "WARNING [geodata/powerline]: cannot run function CONTACT and 'height' is missing or invalid\n", + " linesag\n", + "id \n", + "0 NaN\n", + "1 NaN\n", + "2 NaN\n", + "3 NaN\n", + "4 NaN\n", + ".. ...\n", + "32 NaN\n", + "33 NaN\n", + "34 NaN\n", + "35 NaN\n", + "36 NaN\n", + "\n", + "[37 rows x 1 columns]\n" ] } ], @@ -2256,8 +2263,23 @@ "name": "stdout", "output_type": "stream", "text": [ - "WARNING [geodata/powerline]: cable_type='My cabletype' not found\r\n", - "ERROR [geodata/powerline]: 'height'\r\n" + "WARNING [geodata/powerline]: cable_type='My cabletype' not found\n", + "WARNING [geodata/powerline]: cannot run function CONTACT and 'height' is missing or invalid\n", + " linesag\n", + "id \n", + "0 NaN\n", + "1 NaN\n", + "2 NaN\n", + "3 NaN\n", + "4 NaN\n", + ".. ...\n", + "32 NaN\n", + "33 NaN\n", + "34 NaN\n", + "35 NaN\n", + "36 NaN\n", + "\n", + "[37 rows x 1 columns]\n" ] } ], @@ -2367,108 +2389,108 @@ "name": "stdout", "output_type": "stream", "text": [ - "VERBOSE [geodata/distance]: verbose output enabled\n", - "VERBOSE [geodata/distance]: arg=37,-122 --> append 1 rows from args\n", - "VERBOSE [geodata/distance]: arg=38,-122 --> append 1 rows from args\n", - "VERBOSE [geodata/distance]: arg=--units=km --> option ['units', 'km'] accepted\n", - "VERBOSE [geodata/distance]: arg=--precision.distance=3 --> option ['precision.distance', '3'] accepted\n", - "VERBOSE [geodata/distance]: 2 rows total received\n", - "VERBOSE [geodata/distance]: creating row index\n", - "VERBOSE [geodata/distance]: data = \n", - "--------------------------\n", - " latitude longitude id\n", - "0 37.0 -122.0 0\n", - "1 38.0 -122.0 1\n", - "--------------------------\n", - "\n", - "VERBOSE [geodata/distance]: options = {\n", - " \"verbose\": true,\n", - " \"debug\": false,\n", - " \"silent\": false,\n", - " \"quiet\": false,\n", - " \"warning\": true,\n", - " \"key_index\": \"\",\n", - " \"max_threads\": 1,\n", - " \"config_file\": \"geodata.conf\",\n", - " \"field_separator\": \" \",\n", - " \"record_separator\": \"\\n\",\n", - " \"input_delimiter\": \"+\",\n", - " \"warning_as_error\": false,\n", - " \"plot\": {\n", - " \"figsize\": [\n", - " 7.0,\n", - " 5.0\n", - " ],\n", - " \"cmap\": \"\",\n", - " \"categorical\": false,\n", - " \"legend\": false,\n", - " \"scheme\": \"\",\n", - " \"k\": 5,\n", - " \"vmin\": NaN,\n", - " \"vmax\": NaN,\n", - " \"aspect\": \"auto\"\n", - " },\n", - " \"show\": {\n", - " \"block\": true\n", - " },\n", - " \"savefig\": {\n", - " \"dpi\": 300,\n", - " \"facecolor\": \"w\",\n", - " \"edgecolor\": \"k\",\n", - " \"orientation\": \"landscape\",\n", - " \"format\": \"png\",\n", - " \"transparent\": false,\n", - " \"pad_inches\": 0.1\n", - " },\n", - " \"table\": {\n", - " \"max_rows\": 10,\n", - " \"max_columns\": 10,\n", - " \"width\": 80,\n", - " \"max_colwidth\": 16\n", - " },\n", - " \"precision\": {\n", - " \"distance\": 3,\n", - " \"heading\": 1,\n", - " \"geolocation\": 5,\n", - " \"id\": 0,\n", - " \"resolution_id\": 3\n", - " },\n", - " \"resolution\": 0,\n", - " \"resolution_id\": false,\n", - " \"json\": {\n", - " \"orient\": \"index\",\n", - " \"data_format\": \"iso\",\n", - " \"double_precision\": 10,\n", - " \"force_ascii\": true,\n", - " \"date_unit\": \"s\"\n", - " },\n", - " \"filter\": \"\",\n", - " \"select\": \"\",\n", - " \"units\": \"km\",\n", - " \"relative\": false\n", - "}\n", - "VERBOSE [geodata/distance]: config = {\n", - " \"geodata_url\": \"http://geodata.gridlabd.us/\",\n", - " \"output_format\": \"CSV\",\n", - " \"path_join\": \"outer\",\n", - " \"column_names\": {\n", - " \"ID\": \"id\",\n", - " \"UUID\": \"uuid\",\n", - " \"LAT\": \"latitude\",\n", - " \"LON\": \"longitude\",\n", - " \"DIST\": \"distance\",\n", - " \"HEAD\": \"heading\",\n", - " \"LOC\": \"location\",\n", - " \"POS\": \"position\"\n", - " },\n", - " \"uuid_type\": 4,\n", - " \"vegetation.username\": \"name@example.com\",\n", - " \"vegetation.password\": \"password5839\",\n", - " \"method\": \"haversine\"\n", - "}\n", - "id,latitude,longitude,distance\n", - "0,37.0,-122.0,0.0\n", - "1,38.0,-122.0,111.195\n" + "VERBOSE [geodata/distance]: verbose output enabled\r\n", + "VERBOSE [geodata/distance]: arg=37,-122 --> append 1 rows from args\r\n", + "VERBOSE [geodata/distance]: arg=38,-122 --> append 1 rows from args\r\n", + "VERBOSE [geodata/distance]: arg=--units=km --> option ['units', 'km'] accepted\r\n", + "VERBOSE [geodata/distance]: arg=--precision.distance=3 --> option ['precision.distance', '3'] accepted\r\n", + "VERBOSE [geodata/distance]: 2 rows total received\r\n", + "VERBOSE [geodata/distance]: creating row index\r\n", + "VERBOSE [geodata/distance]: data = \r\n", + "--------------------------\r\n", + " latitude longitude id\r\n", + "0 37.0 -122.0 0\r\n", + "1 38.0 -122.0 1\r\n", + "--------------------------\r\n", + "\r\n", + "VERBOSE [geodata/distance]: options = {\r\n", + " \"verbose\": true,\r\n", + " \"debug\": false,\r\n", + " \"silent\": false,\r\n", + " \"quiet\": false,\r\n", + " \"warning\": true,\r\n", + " \"key_index\": \"\",\r\n", + " \"max_threads\": 1,\r\n", + " \"config_file\": \"geodata.conf\",\r\n", + " \"field_separator\": \" \",\r\n", + " \"record_separator\": \"\\n\",\r\n", + " \"input_delimiter\": \"+\",\r\n", + " \"warning_as_error\": false,\r\n", + " \"plot\": {\r\n", + " \"figsize\": [\r\n", + " 7.0,\r\n", + " 5.0\r\n", + " ],\r\n", + " \"cmap\": \"\",\r\n", + " \"categorical\": false,\r\n", + " \"legend\": false,\r\n", + " \"scheme\": \"\",\r\n", + " \"k\": 5,\r\n", + " \"vmin\": NaN,\r\n", + " \"vmax\": NaN,\r\n", + " \"aspect\": \"auto\"\r\n", + " },\r\n", + " \"show\": {\r\n", + " \"block\": true\r\n", + " },\r\n", + " \"savefig\": {\r\n", + " \"dpi\": 300,\r\n", + " \"facecolor\": \"w\",\r\n", + " \"edgecolor\": \"k\",\r\n", + " \"orientation\": \"landscape\",\r\n", + " \"format\": \"png\",\r\n", + " \"transparent\": false,\r\n", + " \"pad_inches\": 0.1\r\n", + " },\r\n", + " \"table\": {\r\n", + " \"max_rows\": 10,\r\n", + " \"max_columns\": 10,\r\n", + " \"width\": 80,\r\n", + " \"max_colwidth\": 16\r\n", + " },\r\n", + " \"precision\": {\r\n", + " \"distance\": 3,\r\n", + " \"heading\": 1,\r\n", + " \"geolocation\": 5,\r\n", + " \"id\": 0,\r\n", + " \"resolution_id\": 3\r\n", + " },\r\n", + " \"resolution\": 0,\r\n", + " \"resolution_id\": false,\r\n", + " \"json\": {\r\n", + " \"orient\": \"index\",\r\n", + " \"data_format\": \"iso\",\r\n", + " \"double_precision\": 10,\r\n", + " \"force_ascii\": true,\r\n", + " \"date_unit\": \"s\"\r\n", + " },\r\n", + " \"filter\": \"\",\r\n", + " \"select\": \"\",\r\n", + " \"units\": \"km\",\r\n", + " \"relative\": false\r\n", + "}\r\n", + "VERBOSE [geodata/distance]: config = {\r\n", + " \"geodata_url\": \"http://geodata.gridlabd.us/\",\r\n", + " \"output_format\": \"CSV\",\r\n", + " \"path_join\": \"outer\",\r\n", + " \"column_names\": {\r\n", + " \"ID\": \"id\",\r\n", + " \"UUID\": \"uuid\",\r\n", + " \"LAT\": \"latitude\",\r\n", + " \"LON\": \"longitude\",\r\n", + " \"DIST\": \"distance\",\r\n", + " \"HEAD\": \"heading\",\r\n", + " \"LOC\": \"location\",\r\n", + " \"POS\": \"position\"\r\n", + " },\r\n", + " \"uuid_type\": 4,\r\n", + " \"vegetation.username\": \"name@example.com\",\r\n", + " \"vegetation.password\": \"password5839\",\r\n", + " \"method\": \"haversine\"\r\n", + "}\r\n", + "id,latitude,longitude,distance\r\n", + "0,37.0,-122.0,0.0\r\n", + "1,38.0,-122.0,111.195\r\n" ] } ], @@ -2626,9 +2648,9 @@ "output_type": "stream", "text": [ "Traceback (most recent call last):\r\n", - " File \"/usr/local/opt/gridlabd/4.2.26-210808-develop_fix_geodata_docs/bin/gridlabd-geodata\", line 854, in merge\r\n", + " File \"/usr/local/opt/gridlabd/4.2.26-210820-develop_add_cyme_converter/bin/gridlabd-geodata\", line 854, in merge\r\n", " result = MODULE.apply(data,options,config,warning)\r\n", - " File \"/usr/local/opt/gridlabd/4.2.26-210808-develop_fix_geodata_docs/share/gridlabd/geodata_distance.py\", line 119, in apply\r\n", + " File \"/usr/local/opt/gridlabd/4.2.26-210820-develop_add_cyme_converter/share/gridlabd/geodata_distance.py\", line 119, in apply\r\n", " raise Exception(f\"unit '{options['units']}' is not recognized\")\r\n", "Exception: unit 'furlongs' is not recognized\r\n", "DEBUG [geodata/distance]: merge(args=['37,-122', '38,-122', '--units=furlongs']) --> data = \r\n", diff --git a/gldcore/geodata/tutorial/.gitignore b/gldcore/geodata/tutorial/.gitignore new file mode 100644 index 000000000..9ca4e799c --- /dev/null +++ b/gldcore/geodata/tutorial/.gitignore @@ -0,0 +1,4 @@ +*.html +example*.json +positions.glm +poles.glm diff --git a/gldcore/geodata/tutorial/example_1.glm b/gldcore/geodata/tutorial/example_1.glm new file mode 100644 index 000000000..94de9e0e9 --- /dev/null +++ b/gldcore/geodata/tutorial/example_1.glm @@ -0,0 +1,8 @@ +// gldcore/geodata/tutorial/example_1.glm +// +// This example shows how to import lat/lon values into a generic class +// and show the resulting map. +// +class simple {} +#input "positions.csv" -f table -t object -C simple +#output "example.html" --show diff --git a/gldcore/geodata/tutorial/example_2.glm b/gldcore/geodata/tutorial/example_2.glm new file mode 100644 index 000000000..77d3e563c --- /dev/null +++ b/gldcore/geodata/tutorial/example_2.glm @@ -0,0 +1,12 @@ +// gldcore/geodata/tutorial/example_2.glm +// +// This example shows how to import lat/lon values into pole objects +// and show the resulting map. +// +module powerflow; +object pole_configuration +{ + name "default"; +} +#input "positions.csv" -f table -t object -M powerflow -C pole -p configuration=default +#output "example.html" --cluster --show diff --git a/gldcore/geodata/tutorial/example_3.glm b/gldcore/geodata/tutorial/example_3.glm new file mode 100644 index 000000000..e4733426c --- /dev/null +++ b/gldcore/geodata/tutorial/example_3.glm @@ -0,0 +1,15 @@ +// gldcore/geodata/tutorial/example_3.glm +// +// This example shows how to import lat/lon values into powerflow node objects, +// generate lines between them, and show the resulting map. +// +#input "positions.csv" -f table -t object -M powerflow -C node -p phases=ABC -p nominal_voltage=12.47kV +#for NODE in ${FIND class=node} + #ifdef LAST + object link { from ${LAST}; to ${NODE}; phases ABC; nominal_voltage 12.47kV; } + #set LAST=${NODE} + #else + #define LAST=${NODE} + #endif +#done +#output "example.html" --cluster --show diff --git a/gldcore/geodata/tutorial/example_4.glm b/gldcore/geodata/tutorial/example_4.glm new file mode 100644 index 000000000..9e03879d0 --- /dev/null +++ b/gldcore/geodata/tutorial/example_4.glm @@ -0,0 +1,15 @@ +// gldcore/geodata/tutorial/example_4.glm +// +// This example shows how to use address data to find lan/lon values +// and show the resulting map. +// +class industrial { char1024 address; } +object industrial +{ + name "Building_54"; + address "2575 Sand Hill Rd., Menlo Park, CA"; +} +#write /tmp/address.csv industrial:address +#geodata merge -D address /tmp/address.csv --reverse --format GLM:@latitude,longitude -o /tmp/latlon.glm +#include "/tmp/latlon.glm" +#output "example.html" --cluster --show diff --git a/gldcore/geodata/tutorial/example_5.glm b/gldcore/geodata/tutorial/example_5.glm new file mode 100644 index 000000000..879f4598e --- /dev/null +++ b/gldcore/geodata/tutorial/example_5.glm @@ -0,0 +1,8 @@ +// gldcore/geodata/tutorial/example_5.glm +// +// This example shows how to merge elevation data and display the result +// +class pole { double elevation[ft]; double pole_height[m]; double distance[ft]; double heading[deg];} +#geodata merge -D elevation poles.csv -f GLM -o /tmp/poles.glm -k position +#include "/tmp/poles.glm" +#output "example.html" --cluster --show diff --git a/gldcore/geodata/tutorial/example_6.glm b/gldcore/geodata/tutorial/example_6.glm new file mode 100644 index 000000000..278b73efd --- /dev/null +++ b/gldcore/geodata/tutorial/example_6.glm @@ -0,0 +1,20 @@ +// gldcore/geodata/tutorial/example_5.glm +// +// This example shows how to merge elevation data and display the result +// +class vegetation { double elevation[ft]; double base[m]; double cover; double height[m]; double linesag[m]; double contact[%]; bool hidden; } +#geodata merge -D elevation poles.csv -o /tmp/elevation.csv -r 50 --resolution_id +#geodata merge -D vegetation /tmp/elevation.csv -o /tmp/vegetation.csv +#geodata merge -D powerline /tmp/vegetation.csv -o /tmp/position.csv --cable_type="TACSR/AC 610mm^2" --margin.vertical=0 + +#begin python +import sys, pandas as pd +data = pd.read_csv("/tmp/position.csv") +data["hidden"] = (data["contact"]==0.0) +for i in ["class","pole_height","id","position","distance","heading","linesway","linegallop"]: del data[i] +data["contact"]*=100 +data.to_csv("/tmp/lines.csv",index=False) +#end + +#input "/tmp/lines.csv" -f table -t object -C vegetation +#output "example.html" --cluster --show diff --git a/gldcore/geodata/tutorial/poles.csv b/gldcore/geodata/tutorial/poles.csv new file mode 100644 index 000000000..cbf1bdb23 --- /dev/null +++ b/gldcore/geodata/tutorial/poles.csv @@ -0,0 +1,38 @@ +class,name,latitude,longitude,pole_height +pole,tower1,37.388063971857700,-122.28844288884700,23.0 +pole,tower2,37.39170991228090,-122.28138524342800,16.0 +pole,tower3,37.391605029396500,-122.27859725674900,23.0 +pole,tower4,37.39189776185740,-122.27717370878600,21.0 +pole,tower5,37.39248478874900,-122.27445763837300,17.0 +pole,tower6,37.393064766804800,-122.27180166237200,21.0 +pole,tower7,37.39448377651170,-122.27062538813300,21.0 +pole,tower8,37.39860603125620,-122.26756943948800,18.0 +pole,tower9,37.3987093390758,-122.26609958926900,15.0 +pole,tower10,37.39881734255350,-122.26448590652300,18.0 +pole,tower11,37.39927723765630,-122.25794544805700,15.0 +pole,tower12,37.39937036342070,-122.25627439962600,22.0 +pole,tower13,37.39966304364650,-122.25113326423000,18.0 +pole,tower14,37.39986734896870,-122.24926604404600,16.0 +pole,tower15,37.401360606833200,-122.24566416822300,22.0 +pole,tower16,37.4024888290699,-122.24467711530800,20.0 +pole,tower17,37.403388518198100,-122.24428886555300,20.0 +pole,tower18,37.40455757305510,-122.24417593344400,20.0 +pole,tower19,37.40562303785719,-122.24443024849100,17.0 +pole,tower20,37.406444430121600,-122.24502537152200,17.0 +pole,tower21,37.407149938388900,-122.24310961753800,15.0 +pole,tower22,37.40789338104320,-122.24107380619900,17.0 +pole,tower23,37.40912057241350,-122.2377130888810,15.0 +pole,tower24,37.40995247538200,-122.23541150437500,16.0 +pole,tower25,37.41181238145040,-122.2318401430750,15.0 +pole,tower26,37.41211277432230,-122.2294046972870,19.0 +pole,tower27,37.41235883992210,-122.22736085402000,18.0 +pole,tower28,37.41270503474600,-122.22456062781200,21.0 +pole,tower29,37.41297559820370,-122.22232366549100,16.0 +pole,tower30,37.413211008919900,-122.22048098789300,18.0 +pole,tower31,37.413484766152100,-122.21826816545900,21.0 +pole,tower32,37.41369674090810,-122.21656764493800,18.0 +pole,tower33,37.41398114830700,-122.21427167402400,20.0 +pole,tower34,37.4142229470058,-122.21231366144500,18.0 +pole,tower35,37.414454093051700,-122.21044282065400,21.0 +pole,tower36,37.414698020593100,-122.20848749028100,20.0 +pole,tower37,37.415045141688100,-122.2056472090360,18.0 diff --git a/gldcore/geodata/tutorial/positions.csv b/gldcore/geodata/tutorial/positions.csv new file mode 100644 index 000000000..37fb5e318 --- /dev/null +++ b/gldcore/geodata/tutorial/positions.csv @@ -0,0 +1,38 @@ +latitude,longitude +37.415045141688054,-122.2056472090359 +37.414698020593065,-122.20848749028133 +37.414454093051745,-122.21044282065421 +37.4142229470058,-122.21231366144505 +37.41398114830695,-122.21427167402398 +37.41369674090812,-122.21656764493814 +37.413484766152116,-122.21826816545857 +37.413211008919944,-122.22048098789332 +37.41297559820373,-122.22232366549139 +37.41270503474598,-122.22456062781153 +37.41235883992205,-122.22736085401982 +37.41211277432232,-122.2294046972871 +37.41181238145044,-122.2318401430745 +37.40995247538199,-122.23541150437455 +37.40912057241348,-122.2377130888813 +37.40789338104315,-122.24107380619942 +37.407149938388855,-122.24310961753775 +37.406444430121574,-122.24502537152217 +37.40562303785719,-122.24443024849117 +37.40455757305511,-122.24417593344417 +37.403388518198085,-122.24428886555295 +37.4024888290699,-122.24467711530833 +37.401360606833215,-122.24566416822258 +37.39986734896868,-122.24926604404577 +37.39966304364653,-122.25113326423049 +37.39937036342071,-122.25627439962648 +37.39927723765627,-122.25794544805741 +37.39881734255347,-122.26448590652335 +37.3987093390758,-122.26609958926933 +37.39860603125615,-122.26756943948794 +37.39448377651167,-122.27062538813342 +37.393064766804834,-122.27180166237235 +37.39248478874903,-122.27445763837264 +37.39189776185741,-122.27717370878581 +37.391605029396494,-122.27859725674931 +37.39170991228087,-122.28138524342816 +37.388063971857704,-122.28844288884694 diff --git a/gldcore/scripts/autotest/test_geodata.glm b/gldcore/scripts/autotest/test_geodata.glm index d7df55b47..c26edc9d8 100644 --- a/gldcore/scripts/autotest/test_geodata.glm +++ b/gldcore/scripts/autotest/test_geodata.glm @@ -5,7 +5,7 @@ #define DIR=.. #endif -#option redirect output:/tmp/gridlabd.out +#option redirect output:test_geodata.txt // geodata create #geodata create 37.4205,-122.2046 @@ -42,7 +42,7 @@ // TODO: this doesn't work on github actions because of a host-based file sync problem // keep_progress is set under these circumstances so we use this to avoid this check #if ${github_actions:-no}==no -#ifexist "${DIR:-.}/test_geodata.txt" -#on_exit 0 diff ${DIR:-.}/test_geodata.txt /tmp/gridlabd.out >/dev/stderr +#ifexist "../test_geodata.txt" +#on_exit 0 diff ../test_geodata.txt test_geodata.txt >/dev/stderr #endif #endif diff --git a/gldcore/scripts/autotest/test_geodata.txt b/gldcore/scripts/autotest/test_geodata.txt index 818be1623..252698cb0 100644 --- a/gldcore/scripts/autotest/test_geodata.txt +++ b/gldcore/scripts/autotest/test_geodata.txt @@ -7,7 +7,7 @@ id,latitude,longitude 1,37.5205,-122.3046 # geodata create 37.4205,-122.2046 37.5205,-122.3046 -r 1000 position,latitude,longitude,id,distance,heading -0,37.4205,-122.2046,0.0,0.0, +0,37.4205,-122.2046,0.0,0.0,0.0 1000,37.42754,-122.21164,,1000.0,315.0 2000,37.43459,-122.21869,,2000.0,315.0 3000,37.44163,-122.22573,,3000.0,315.0 @@ -25,7 +25,7 @@ position,latitude,longitude,id,distance,heading 14196,37.5205,-122.3046,1.0,14196.0,315.0 # geodata create 37.4205,-122.2046 37.5205,-122.3046 -k position position,latitude,longitude,id,distance,heading -0,37.4205,-122.2046,0,0.0, +0,37.4205,-122.2046,0,0.0,0.0 14196,37.5205,-122.3046,1,14196.0,315.0 # geodata create 37.4205,-122.2046 37.5205,-122.3046 -k location location,latitude,longitude,id @@ -73,7 +73,7 @@ id,latitude,longitude,distance 1,37.5205,-122.3046,14196.0 # geodata merge -D distance 37.4205,-122.2046 37.5205,-122.3046 -r 1000 position,latitude,longitude,id,distance,heading -0,37.4205,-122.2046,0.0,0.0, +0,37.4205,-122.2046,0.0,0.0,0.0 1000,37.42754,-122.21164,,1000.0,315.0 2000,37.43459,-122.21869,,2000.0,315.0 3000,37.44163,-122.22573,,3001.0,315.0 @@ -91,7 +91,7 @@ position,latitude,longitude,id,distance,heading 14196,37.5205,-122.3046,1.0,14196.0,315.0 # geodata merge -D distance 37.4205,-122.2046 37.5205,-122.3046 -k position position,latitude,longitude,id,distance,heading -0,37.4205,-122.2046,0,0.0, +0,37.4205,-122.2046,0,0.0,0.0 14196,37.5205,-122.3046,1,14196.0,315.0 # geodata merge -D distance 37.4205,-122.2046 37.5205,-122.3046 -k location location,latitude,longitude,id,distance @@ -101,7 +101,7 @@ location,latitude,longitude,id,distance latitude,longitude,id,distance 37.4205,-122.2046,0,0.0 37.5205,-122.3046,1,14196.0 -# geodata merge -D distance ../path_example.csv +# geodata merge -D distance ./path_example.csv id,latitude,longitude,configuration,pole_height,distance 0,37.41505,-122.20565,flat3,18.0,0.0 1,37.4147,-122.20849,sideT,20.0,254.0 @@ -140,9 +140,9 @@ id,latitude,longitude,configuration,pole_height,distance 34,37.39161,-122.2786,2pole,23.0,7593.0 35,37.39171,-122.28139,3pole,16.0,7839.0 36,37.38806,-122.28844,tower,23.0,8583.0 -# geodata merge -D distance ../path_example.csv -r 100 +# geodata merge -D distance ./path_example.csv -r 100 position,latitude,longitude,configuration,pole_height,id,distance,heading -0,37.41505,-122.20565,flat3,18.0,0.0,0.0, +0,37.41505,-122.20565,flat3,18.0,0.0,0.0,0.0 100,37.41491,-122.20677,,,,100.0,263.0 200,37.41477,-122.20789,,,,200.0,263.0 254,37.4147,-122.20849,sideT,20.0,1.0,254.0,263.0 @@ -247,9 +247,9 @@ position,latitude,longitude,configuration,pole_height,id,distance,heading 8440,37.38876,-122.28708,,,,8440.0,242.6 8540,37.38827,-122.28803,,,,8540.0,242.6 8583,37.38806,-122.28844,tower,23.0,36.0,8584.0,242.6 -# geodata merge -D distance ../path_example.csv -k position +# geodata merge -D distance ./path_example.csv -k position position,latitude,longitude,configuration,pole_height,id,distance,heading -0,37.41505,-122.20565,flat3,18.0,0,0.0, +0,37.41505,-122.20565,flat3,18.0,0,0.0,0.0 254,37.4147,-122.20849,sideT,20.0,1,254.0,263.0 428,37.41445,-122.21044,sideT,21.0,2,428.0,262.7 595,37.41422,-122.21231,sideT,18.0,3,595.0,263.0 @@ -286,7 +286,7 @@ position,latitude,longitude,configuration,pole_height,id,distance,heading 7593,37.39161,-122.2786,2pole,23.0,34,7593.0,258.5 7840,37.39171,-122.28139,3pole,16.0,35,7840.0,272.1 8583,37.38806,-122.28844,tower,23.0,36,8583.0,242.6 -# geodata merge -D distance ../path_example.csv -k location +# geodata merge -D distance ./path_example.csv -k location location,latitude,longitude,configuration,pole_height,id,distance 9q9hg5hw3yyf,37.41505,-122.20565,flat3,18.0,0,0.0 9q9hg54krv95,37.4147,-122.20849,sideT,20.0,1,254.0 @@ -325,7 +325,7 @@ location,latitude,longitude,configuration,pole_height,id,distance 9q9h9qzmyj73,37.39161,-122.2786,2pole,23.0,34,7593.0 9q9h9qvqmpfy,37.39171,-122.28139,3pole,16.0,35,7840.0 9q9h9q230zd1,37.38806,-122.28844,tower,23.0,36,8583.0 -# geodata merge -D distance ../path_example.csv -k latitude,longitude +# geodata merge -D distance ./path_example.csv -k latitude,longitude latitude,longitude,configuration,pole_height,id,distance 37.41505,-122.20565,flat3,18.0,0,0.0 37.4147,-122.20849,sideT,20.0,1,254.0 diff --git a/gldcore/scripts/gridlabd-convert b/gldcore/scripts/gridlabd-convert index 401db67bb..921f1b7cd 100755 --- a/gldcore/scripts/gridlabd-convert +++ b/gldcore/scripts/gridlabd-convert @@ -82,11 +82,11 @@ while n < len(sys.argv): if not INPUTFILE: INPUTFILE = "/dev/stdin" elif not INPUTTYPE: - INPUTTYPE = os.path.splitext(INPUTFILE) + INPUTTYPE = os.path.splitext(INPUTFILE)[1] if not OUTPUTFILE: OUTPUTFILE = "/dev/stdout" elif not OUTPUTTYPE: - OUTPUTTYPE = os.path.splitext(OUTPUTFILE) + OUTPUTTYPE = os.path.splitext(OUTPUTFILE)[1] modname = f'{MODPATH}/{INPUTTYPE}2{OUTPUTTYPE}.py' if os.path.exists(modname): diff --git a/gldcore/scripts/gridlabd-geodata b/gldcore/scripts/gridlabd-geodata index 29439e761..9feb1503b 100755 --- a/gldcore/scripts/gridlabd-geodata +++ b/gldcore/scripts/gridlabd-geodata @@ -448,10 +448,11 @@ OPTIONS = { "resolution_id" : False, "json" : { "orient" : "index", - "data_format" : "iso", + "date_format" : "iso", "double_precision" : 10, "force_ascii" : True, "date_unit" : "s", + "indent" : 0, }, "filter" : "", "select" : "", @@ -903,7 +904,7 @@ def set_distance(data): lat = p0 lon = p1 dist = 0.0 - head = float('nan') + head = 0.0 while segs > 1: lat += dlat lon += dlon @@ -987,10 +988,10 @@ def write_json(data): with open(OUTPUT,"w") as fh: global OPTIONS if len(specs) == 1: - print(data.to_json(orient=OPTIONS['json']["orient"]),file=fh) + print(data.to_json(**OPTIONS['json']),file=fh) else: try: - print(data[specs[1].split(",")].to_json(orient=OPTIONS['json_orient']),file=fh) + print(data[specs[1].split(",")].to_json(**OPTIONS['json']),file=fh) except KeyError as err: error("write_json(): invalid field specified",E_INVALID) @@ -1007,8 +1008,6 @@ def write_glm(data): else: if "class" not in data.columns: error("cannot write GLM objects without 'class' column in data frame",E_INVALID) - if "name" not in data.columns: - error("cannot write GLM without 'name' column in data frame",E_INVALID) with open(OUTPUT,"w") as fh: from datetime import datetime print(f"// generated by `{' '.join(sys.argv)}` at {datetime.now()}",file=fh) @@ -1016,9 +1015,12 @@ def write_glm(data): if not modify: print(f"object {row['class']}",file=fh) print("{",file=fh) - print("\tname \"{row['name']}\";",file=fh) + if "name" in row.keys() and row["name"]: + print(f"\tname \"{row['name']}\";",file=fh) + else: + print(f"\tname \"{row['class']}:{id}\";",file=fh) for prop, value in row.items(): - if prop in [CONFIG['column_names']['ID'],"class","name"]: + if prop in [CONFIG['column_names']['ID'],"class","name","id"]: continue elif not columns or prop in columns: if modify: