urbanopt-cli 0.6.0 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +2 -2
  4. data/CHANGELOG.md +38 -0
  5. data/CMakeLists.txt +13 -13
  6. data/FindOpenStudioSDK.cmake +11 -6
  7. data/Gemfile +11 -5
  8. data/example_files/Gemfile +6 -3
  9. data/example_files/base_workflow_res.osw +10 -0
  10. data/example_files/example_project_combined.json +13 -3
  11. data/example_files/example_project_with_PV.json +751 -0
  12. data/example_files/example_project_with_streets.json +826 -0
  13. data/example_files/mappers/Baseline.rb +69 -14
  14. data/example_files/mappers/CreateBar.rb +31 -1
  15. data/example_files/mappers/FlexibleHotWater.rb +69 -0
  16. data/example_files/mappers/Floorspace.rb +31 -1
  17. data/example_files/mappers/HighEfficiency.rb +20 -8
  18. data/example_files/mappers/HighEfficiencyCreateBar.rb +3 -2
  19. data/example_files/mappers/HighEfficiencyFloorspace.rb +3 -2
  20. data/example_files/mappers/base_workflow.osw +5 -0
  21. data/example_files/mappers/createbar_workflow.osw +3 -1
  22. data/example_files/mappers/floorspace_workflow.osw +2 -1
  23. data/example_files/osm_building/7.osm +0 -307
  24. data/example_files/osm_building/8.osm +0 -419
  25. data/example_files/osm_building/9.osm +0 -664
  26. data/example_files/reopt/base_assumptions.json +3 -3
  27. data/example_files/reopt/multiPV_assumptions.json +2 -2
  28. data/example_files/resources/hpxml-measures/Gemfile +1 -1
  29. data/example_files/resources/hpxml-measures/Gemfile.lock +6 -25
  30. data/example_files/visualization/input_visualization_feature.html +15 -16
  31. data/example_files/visualization/input_visualization_scenario.html +16 -11
  32. data/lib/uo_cli/version.rb +1 -1
  33. data/lib/uo_cli.rb +158 -26
  34. data/scripts/setup-env-gitbash.sh +4 -4
  35. data/scripts/setup-env-unix.sh +4 -4
  36. data/scripts/setup-env.bat +3 -3
  37. data/scripts/setup-env.ps1 +3 -3
  38. data/uo_cli.gemspec +8 -5
  39. metadata +59 -14
@@ -0,0 +1,751 @@
1
+ {
2
+ "type": "FeatureCollection",
3
+ "project": {
4
+ "id": "7c33a001-bccb-413e-ac87-67558b5d4b07",
5
+ "name": "New Project",
6
+ "surface_elevation": null,
7
+ "import_surrounding_buildings_as_shading": null,
8
+ "weather_filename": "USA_NY_Buffalo-Greater.Buffalo.Intl.AP.725280_TMY3.epw",
9
+ "tarrif_filename": null,
10
+ "climate_zone": "6A",
11
+ "cec_climate_zone": null,
12
+ "begin_date": "2017-01-01T07:00:00.000Z",
13
+ "end_date": "2017-12-31T07:00:00.000Z",
14
+ "timesteps_per_hour": 1,
15
+ "default_template": "90.1-2013",
16
+ "tariff_filename": null
17
+ },
18
+ "features": [
19
+ {
20
+ "type": "Feature",
21
+ "properties": {
22
+ "id": "53340c2c-ab20-40db-aba1-11ac607c52a7",
23
+ "name": "Site Origin",
24
+ "type": "Site Origin",
25
+ "begin_date": "2017-01-01T07:00:00.000Z",
26
+ "end_date": "2017-12-31T07:00:00.000Z",
27
+ "cec_climate_zone": null,
28
+ "climate_zone": "6A",
29
+ "default_template": "90.1-2013",
30
+ "import_surrounding_buildings_as_shading": null,
31
+ "surface_elevation": null,
32
+ "tariff_filename": null,
33
+ "timesteps_per_hour": 1,
34
+ "weather_filename": "USA_NY_Buffalo-Greater.Buffalo.Intl.AP.725280_TMY3.epw"
35
+ },
36
+ "geometry": {
37
+ "type": "Point",
38
+ "coordinates": [
39
+ -78.84948467732347,
40
+ 42.81677154451123
41
+ ]
42
+ }
43
+ },
44
+ {
45
+ "type": "Feature",
46
+ "properties": {
47
+ "id": "1",
48
+ "name": "Mixed_use 1",
49
+ "type": "Building",
50
+ "building_type": "Mixed use",
51
+ "floor_area": 752184,
52
+ "footprint_area": 188046,
53
+ "number_of_stories": 4,
54
+ "mixed_type_1": "Office",
55
+ "mixed_type_1_percentage": 50,
56
+ "mixed_type_2": "Food service",
57
+ "mixed_type_2_percentage": 50,
58
+ "mixed_type_3": "Strip shopping mall",
59
+ "mixed_type_3_percentage": 0,
60
+ "mixed_type_4": "Lodging",
61
+ "mixed_type_4_percentage": 0
62
+ },
63
+ "geometry": {
64
+ "type": "Polygon",
65
+ "coordinates": [
66
+ [
67
+ [
68
+ -78.84650338745196,
69
+ 42.81331301863236
70
+ ],
71
+ [
72
+ -78.84652443964629,
73
+ 42.81463974371101
74
+ ],
75
+ [
76
+ -78.84680142363833,
77
+ 42.815293654042534
78
+ ],
79
+ [
80
+ -78.84744455124724,
81
+ 42.81514110006128
82
+ ],
83
+ [
84
+ -78.84728610028628,
85
+ 42.81478165791734
86
+ ],
87
+ [
88
+ -78.84786797764677,
89
+ 42.814643631760134
90
+ ],
91
+ [
92
+ -78.84721106637106,
93
+ 42.813153418927016
94
+ ],
95
+ [
96
+ -78.84650338745196,
97
+ 42.81331301863236
98
+ ]
99
+ ]
100
+ ]
101
+ }
102
+ },
103
+ {
104
+ "type": "Feature",
105
+ "properties": {
106
+ "id": "2",
107
+ "name": "Restaurant 1",
108
+ "type": "Building",
109
+ "building_type": "Food service",
110
+ "floor_area": 22313,
111
+ "footprint_area": 22313,
112
+ "number_of_stories": 1,
113
+ "ev_charging": true,
114
+ "ev_charging_behavior": "Business as Usual",
115
+ "ev_percent": 100,
116
+ "ev_curtailment_frac": 0.5
117
+ },
118
+ "geometry": {
119
+ "type": "Polygon",
120
+ "coordinates": [
121
+ [
122
+ [
123
+ -78.8500120420453,
124
+ 42.81812185529549
125
+ ],
126
+ [
127
+ -78.85038975191084,
128
+ 42.81803226424341
129
+ ],
130
+ [
131
+ -78.850630729414,
132
+ 42.81857888627522
133
+ ],
134
+ [
135
+ -78.85025301954843,
136
+ 42.81866847653532
137
+ ],
138
+ [
139
+ -78.8500120420453,
140
+ 42.81812185529549
141
+ ]
142
+ ]
143
+ ]
144
+ }
145
+ },
146
+ {
147
+ "type": "Feature",
148
+ "properties": {
149
+ "id": "3",
150
+ "name": "Restaurant 10",
151
+ "type": "Building",
152
+ "building_type": "Food service",
153
+ "floor_area": 125631,
154
+ "footprint_area": 41877,
155
+ "number_of_stories": 3,
156
+ "ev_charging": true,
157
+ "ev_charging_station_type": "Typical Public"
158
+ },
159
+ "geometry": {
160
+ "type": "Polygon",
161
+ "coordinates": [
162
+ [
163
+ [
164
+ -78.84962224800356,
165
+ 42.81329273502644
166
+ ],
167
+ [
168
+ -78.84929833482822,
169
+ 42.81337083838241
170
+ ],
171
+ [
172
+ -78.84983265832118,
173
+ 42.814563298664666
174
+ ],
175
+ [
176
+ -78.85015657149653,
177
+ 42.81448519681467
178
+ ],
179
+ [
180
+ -78.84962224800356,
181
+ 42.81329273502644
182
+ ]
183
+ ]
184
+ ]
185
+ }
186
+ },
187
+ {
188
+ "type": "Feature",
189
+ "properties": {
190
+ "id": "4",
191
+ "name": "Restaurant 12",
192
+ "type": "Building",
193
+ "building_type": "Food service",
194
+ "floor_area": 31623,
195
+ "footprint_area": 10541,
196
+ "number_of_stories": 3,
197
+ "ev_charging": true,
198
+ "ev_charging_station_type": "Typical Public"
199
+ },
200
+ "geometry": {
201
+ "type": "Polygon",
202
+ "coordinates": [
203
+ [
204
+ [
205
+ -78.84907318596754,
206
+ 42.81342719667407
207
+ ],
208
+ [
209
+ -78.84862090048105,
210
+ 42.81353625345659
211
+ ],
212
+ [
213
+ -78.84871721918239,
214
+ 42.813751210926796
215
+ ],
216
+ [
217
+ -78.84916950466888,
218
+ 42.81364215452331
219
+ ],
220
+ [
221
+ -78.84907318596754,
222
+ 42.81342719667407
223
+ ]
224
+ ]
225
+ ]
226
+ }
227
+ },
228
+ {
229
+ "type": "Feature",
230
+ "properties": {
231
+ "id": "5",
232
+ "name": "District Office 1",
233
+ "type": "Building",
234
+ "building_type": "Office",
235
+ "system_type": "VAV district chilled water with district hot water reheat",
236
+ "floor_area": 8804,
237
+ "footprint_area": 8804,
238
+ "number_of_stories": 1,
239
+ "ev_charging": true,
240
+ "ev_charging_station_type": "Typical Work"
241
+ },
242
+ "geometry": {
243
+ "type": "Polygon",
244
+ "coordinates": [
245
+ [
246
+ [
247
+ -78.84809175426629,
248
+ 42.81367038997507
249
+ ],
250
+ [
251
+ -78.84848670778973,
252
+ 42.81357515750889
253
+ ],
254
+ [
255
+ -78.84857883872144,
256
+ 42.81378076888831
257
+ ],
258
+ [
259
+ -78.84818388519801,
260
+ 42.81387600103781
261
+ ],
262
+ [
263
+ -78.84809175426629,
264
+ 42.81367038997507
265
+ ]
266
+ ]
267
+ ]
268
+ }
269
+ },
270
+ {
271
+ "type": "Feature",
272
+ "properties": {
273
+ "id": "6",
274
+ "name": "District Office 2",
275
+ "type": "Building",
276
+ "building_type": "Office",
277
+ "system_type": "VAV district chilled water with district hot water reheat",
278
+ "floor_area": 10689,
279
+ "footprint_area": 10689,
280
+ "number_of_stories": 1,
281
+ "ev_charging": true
282
+ },
283
+ "geometry": {
284
+ "type": "Polygon",
285
+ "coordinates": [
286
+ [
287
+ [
288
+ -78.84846106738529,
289
+ 42.814495803077364
290
+ ],
291
+ [
292
+ -78.8486903952376,
293
+ 42.81444050756261
294
+ ],
295
+ [
296
+ -78.8484977578349,
297
+ 42.81401059666683
298
+ ],
299
+ [
300
+ -78.84826842998261,
301
+ 42.81406589256599
302
+ ],
303
+ [
304
+ -78.84846106738529,
305
+ 42.814495803077364
306
+ ]
307
+ ]
308
+ ]
309
+ }
310
+ },
311
+ {
312
+ "type": "Feature",
313
+ "properties": {
314
+ "id": "7",
315
+ "name": "Office 1",
316
+ "type": "Building",
317
+ "building_type": "Office",
318
+ "system_type": "VAV district chilled water with district hot water reheat",
319
+ "number_of_stories": 6,
320
+ "detailed_model_filename": "7.osm"
321
+ },
322
+ "geometry": {
323
+ "type": "Polygon",
324
+ "coordinates": [
325
+ [
326
+ [
327
+ -78.84733878006863,
328
+ 42.816466983030836
329
+ ],
330
+ [
331
+ -78.84854275129324,
332
+ 42.81617669028003
333
+ ],
334
+ [
335
+ -78.848356395545,
336
+ 42.81576080994094
337
+ ],
338
+ [
339
+ -78.84715242432038,
340
+ 42.81605110464406
341
+ ],
342
+ [
343
+ -78.84733878006863,
344
+ 42.816466983030836
345
+ ]
346
+ ]
347
+ ]
348
+ }
349
+ },
350
+ {
351
+ "type": "Feature",
352
+ "properties": {
353
+ "id": "8",
354
+ "name": "Hospital 1",
355
+ "type": "Building",
356
+ "building_type": "Outpatient health care",
357
+ "system_type": "VAV district chilled water with district hot water reheat",
358
+ "number_of_stories": 10,
359
+ "detailed_model_filename": "8.osm"
360
+ },
361
+ "geometry": {
362
+ "type": "Polygon",
363
+ "coordinates": [
364
+ [
365
+ [
366
+ -78.84973966335251,
367
+ 42.8154441454509
368
+ ],
369
+ [
370
+ -78.85049562542395,
371
+ 42.81525669280299
372
+ ],
373
+ [
374
+ -78.85078257620685,
375
+ 42.81588131780643
376
+ ],
377
+ [
378
+ -78.8505086568277,
379
+ 42.81594736368234
380
+ ],
381
+ [
382
+ -78.85041233812638,
383
+ 42.815732413845666
384
+ ],
385
+ [
386
+ -78.84991755499783,
387
+ 42.81585689105046
388
+ ],
389
+ [
390
+ -78.84973966335251,
391
+ 42.8154441454509
392
+ ]
393
+ ]
394
+ ]
395
+ }
396
+ },
397
+ {
398
+ "type": "Feature",
399
+ "properties": {
400
+ "id": "9",
401
+ "name": "Hospital 2",
402
+ "type": "Building",
403
+ "building_type": "Inpatient health care",
404
+ "number_of_stories": 3,
405
+ "detailed_model_filename": "9.osm"
406
+ },
407
+ "geometry": {
408
+ "type": "Polygon",
409
+ "coordinates": [
410
+ [
411
+ [
412
+ -78.85083627755732,
413
+ 42.81600678613279
414
+ ],
415
+ [
416
+ -78.85056039001891,
417
+ 42.816076133580566
418
+ ],
419
+ [
420
+ -78.85072568130569,
421
+ 42.816450649528036
422
+ ],
423
+ [
424
+ -78.84940134236577,
425
+ 42.81677160705479
426
+ ],
427
+ [
428
+ -78.84958014898304,
429
+ 42.81716858994267
430
+ ],
431
+ [
432
+ -78.8507262115271,
433
+ 42.816890840117026
434
+ ],
435
+ [
436
+ -78.8508565789851,
437
+ 42.81719595796099
438
+ ],
439
+ [
440
+ -78.85132137101688,
441
+ 42.81708331517635
442
+ ],
443
+ [
444
+ -78.85083627755732,
445
+ 42.81600678613279
446
+ ]
447
+ ]
448
+ ]
449
+ }
450
+ },
451
+ {
452
+ "type": "Feature",
453
+ "properties": {
454
+ "id": "10",
455
+ "name": "Mixed use 2",
456
+ "type": "Building",
457
+ "building_type": "Mixed use",
458
+ "floor_area": 1278384,
459
+ "footprint_area": 159798,
460
+ "number_of_stories": 8,
461
+ "mixed_type_1": "Strip shopping mall",
462
+ "mixed_type_1_percentage": 25,
463
+ "mixed_type_2": "Food service",
464
+ "mixed_type_2_percentage": 25,
465
+ "mixed_type_3": "Office",
466
+ "mixed_type_3_percentage": 15,
467
+ "mixed_type_4": "Lodging",
468
+ "mixed_type_4_percentage": 35
469
+ },
470
+ "geometry": {
471
+ "type": "Polygon",
472
+ "coordinates": [
473
+ [
474
+ [
475
+ -78.85115264550463,
476
+ 42.81786093060211
477
+ ],
478
+ [
479
+ -78.85163483958878,
480
+ 42.81774467026972
481
+ ],
482
+ [
483
+ -78.85246596719499,
484
+ 42.819583261120755
485
+ ],
486
+ [
487
+ -78.85082390085432,
488
+ 42.819979162017745
489
+ ],
490
+ [
491
+ -78.85060552295334,
492
+ 42.81947573727234
493
+ ],
494
+ [
495
+ -78.85174564783776,
496
+ 42.81920483484765
497
+ ],
498
+ [
499
+ -78.85115264550463,
500
+ 42.81786093060211
501
+ ]
502
+ ]
503
+ ]
504
+ }
505
+ },
506
+ {
507
+ "type": "Feature",
508
+ "properties": {
509
+ "id": "11",
510
+ "name": "Restaurant 13",
511
+ "type": "Building",
512
+ "building_type": "Food service",
513
+ "floor_area": 32511,
514
+ "footprint_area": 10837,
515
+ "number_of_stories": 3
516
+ },
517
+ "geometry": {
518
+ "type": "Polygon",
519
+ "coordinates": [
520
+ [
521
+ [
522
+ -78.84961163640645,
523
+ 42.81460851835703
524
+ ],
525
+ [
526
+ -78.84914661048371,
527
+ 42.81472064501696
528
+ ],
529
+ [
530
+ -78.84905029178236,
531
+ 42.81450569091638
532
+ ],
533
+ [
534
+ -78.84951531770513,
535
+ 42.81439356386673
536
+ ],
537
+ [
538
+ -78.84961163640645,
539
+ 42.81460851835703
540
+ ]
541
+ ]
542
+ ]
543
+ }
544
+ },
545
+ {
546
+ "type": "Feature",
547
+ "properties": {
548
+ "id": "12",
549
+ "name": "Mall 1",
550
+ "type": "Building",
551
+ "building_type": "Strip shopping mall",
552
+ "floor_area": 374409,
553
+ "footprint_area": 124803,
554
+ "number_of_stories": 3
555
+ },
556
+ "geometry": {
557
+ "type": "Polygon",
558
+ "coordinates": [
559
+ [
560
+ [
561
+ -78.84768338040897,
562
+ 42.817161656757065
563
+ ],
564
+ [
565
+ -78.8482630702579,
566
+ 42.8170218879136
567
+ ],
568
+ [
569
+ -78.84915297130291,
570
+ 42.81900776764229
571
+ ],
572
+ [
573
+ -78.84857328145401,
574
+ 42.81914753199706
575
+ ],
576
+ [
577
+ -78.84768338040897,
578
+ 42.817161656757065
579
+ ]
580
+ ]
581
+ ]
582
+ }
583
+ },
584
+ {
585
+ "type": "Feature",
586
+ "properties": {
587
+ "id": "13",
588
+ "name": "Hotel 1",
589
+ "type": "Building",
590
+ "building_type": "Lodging",
591
+ "floor_area": 316160,
592
+ "footprint_area": 31616,
593
+ "number_of_stories": 10
594
+ },
595
+ "geometry": {
596
+ "type": "Polygon",
597
+ "coordinates": [
598
+ [
599
+ [
600
+ -78.8494955083645,
601
+ 42.819748790984335
602
+ ],
603
+ [
604
+ -78.84891089471263,
605
+ 42.81989327725856
606
+ ],
607
+ [
608
+ -78.8491389243777,
609
+ 42.82038967009544
610
+ ],
611
+ [
612
+ -78.84972353802956,
613
+ 42.82024518498119
614
+ ],
615
+ [
616
+ -78.8494955083645,
617
+ 42.819748790984335
618
+ ]
619
+ ]
620
+ ]
621
+ }
622
+ },
623
+ {
624
+ "type": "Feature",
625
+ "properties": {
626
+ "id": "14",
627
+ "geometryType": "Rectangle",
628
+ "name": "Community Photovoltaic",
629
+ "type": "District System",
630
+ "footprint_area": 118421,
631
+ "footprint_perimeter": 1462,
632
+ "district_system_type": "Community Photovoltaic"
633
+ },
634
+ "geometry": {
635
+ "type": "Polygon",
636
+ "coordinates": [
637
+ [
638
+ [
639
+ -78.84993884137165,
640
+ 42.820571831598244
641
+ ],
642
+ [
643
+ -78.85022091536928,
644
+ 42.821199649366804
645
+ ],
646
+ [
647
+ -78.85195997122116,
648
+ 42.82077928940717
649
+ ],
650
+ [
651
+ -78.85167789722357,
652
+ 42.82015146737024
653
+ ],
654
+ [
655
+ -78.84993884137165,
656
+ 42.820571831598244
657
+ ]
658
+ ]
659
+ ]
660
+ }
661
+ },
662
+ {
663
+ "type": "Feature",
664
+ "properties": {
665
+ "id": "15",
666
+ "geometryType": "Rectangle",
667
+ "name": "Ground Mount Photovoltaic 1",
668
+ "type": "District System",
669
+ "footprint_area": 34594,
670
+ "footprint_perimeter": 758,
671
+ "district_system_type": "Ground Mount Photovoltaic",
672
+ "associated_building_id": "2"
673
+ },
674
+ "geometry": {
675
+ "type": "Polygon",
676
+ "coordinates": [
677
+ [
678
+ [
679
+ -78.85056968542368,
680
+ 42.81373640858962
681
+ ],
682
+ [
683
+ -78.85030204864333,
684
+ 42.81314646144571
685
+ ],
686
+ [
687
+ -78.84976251310884,
688
+ 42.8132781772876
689
+ ],
690
+ [
691
+ -78.85003014988916,
692
+ 42.81386812317504
693
+ ],
694
+ [
695
+ -78.85056968542368,
696
+ 42.81373640858962
697
+ ]
698
+ ]
699
+ ]
700
+ }
701
+ },
702
+ {
703
+ "type": "Feature",
704
+ "properties": {
705
+ "id": "16",
706
+ "geometryType": "Rectangle",
707
+ "name": "Ground Mount Photovoltaic 2",
708
+ "type": "District System",
709
+ "footprint_area": 18174,
710
+ "footprint_perimeter": 540,
711
+ "district_system_type": "Ground Mount Photovoltaic",
712
+ "associated_building_id": "3"
713
+ },
714
+ "geometry": {
715
+ "type": "Polygon",
716
+ "coordinates": [
717
+ [
718
+ [
719
+ -78.85097541572937,
720
+ 42.81896027885472
721
+ ],
722
+ [
723
+ -78.85082898994985,
724
+ 42.818631091573025
725
+ ],
726
+ [
727
+ -78.85031900642024,
728
+ 42.81875314214673
729
+ ],
730
+ [
731
+ -78.85046543219978,
732
+ 42.81908232877865
733
+ ],
734
+ [
735
+ -78.85097541572937,
736
+ 42.81896027885472
737
+ ]
738
+ ]
739
+ ]
740
+ }
741
+ }
742
+ ],
743
+ "mappers": [],
744
+ "scenarios": [
745
+ {
746
+ "feature_mappings": [],
747
+ "id": "72301739-c6c3-4dd7-bf1a-f37c8eff40db",
748
+ "name": "New Scenario"
749
+ }
750
+ ]
751
+ }