The script is updated to implement the hub result factory
This commit is contained in:
parent
6990811ea7
commit
b6d32e5086
|
@ -1,6 +1,6 @@
|
|||
{"type":"FeatureCollection", "features": [
|
||||
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-73.57185265377689,45.52343504199365],[-73.57186901784087,45.52344250726594],[-73.5719186361361,45.523388576721516],[-73.57169557189309,45.52328954697509],[-73.57164717307853,45.523341318247276],[-73.57185265377689,45.52343504199365]]]},"properties":{"OBJECTID_12_13":86522,"ID_UEV":"01027575","CIVIQUE_DE":" 951","CIVIQUE_FI":" 959","NOM_RUE":"rue Napoléon (MTL)","SUITE_DEBU":" ","MUNICIPALI":"50","ETAGE_HORS":3,"NOMBRE_LOG":5,"ANNEE_CONS":1927,"CODE_UTILI":"1000","LETTRE_DEB":" ","LETTRE_FIN":" ","LIBELLE_UT":"Logement","CATEGORIE_":"Régulier","MATRICULE8":"9942-16-9406-0-000-0000","SUPERFICIE":189,"SUPERFIC_1":342,"NO_ARROND_":"REM21","Shape_Leng":0.000632076842566,"OBJECTID":86522,"Join_Count":1,"TARGET_FID":86522,"feature_id":"bd64c84e-a70a-4112-915e-74b79f16c189","md_id":" ","acqtech":1360,"acqtech_en":"Lidar","acqtech_fr":"Lidar","provider":461,"provideren":"Municipal","providerfr":"Municipal","datemin":"20151124","datemax":"20151208","haccmin":2,"haccmax":2,"vaccmin":1,"vaccmax":1,"heightmin":2.03,"heightmax":16.11,"elevmin":43.98,"elevmax":46.16,"bldgarea":2049.47,"comment":"Detection of Lidar points classified as ground in the building. Détection de points Lidar classifiés sol dans le bâtiment.","OBJECTID_1":86522,"Shape_Le_1":0.000632076842566,"Shape_Ar_1":1.66656602227e-8,"OBJECTID_12":86522,"Join_Count_1":4,"TARGET_FID_1":86521,"g_objectid":"965958","g_co_mrc":"66023","g_code_mun":"66023","g_arrond":"REM21","g_anrole":"2019","g_usag_pre":"Résidentiel","g_no_lot":"1885186","g_nb_poly_":"1","g_utilisat":"1000","g_nb_logem":"5","g_nb_locau":" ","g_descript":"Unité d'évaluation","g_id_provi":"66023994216872540000000","g_sup_tota":"228.4","g_geometry":"0.000850333","g_geomet_1":"2.66017e-008","g_dat_acqu":"2020-02-12T00:00:00","g_dat_char":"2020-02-17T00:00:00","Shape_Leng_1":0.000632076842566,"Shape_Area_1":1.66656602227e-8,"Shape_Length":0.0006320773708141846,"Shape_Area":1.66656602227e-8}},
|
||||
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-73.57153144831767,45.523465428286954],[-73.57149617241038,45.523503246577604],[-73.5714876720184,45.52349934711725],[-73.57146469883673,45.52352357665177],[-73.571684848377,45.523623993152796],[-73.5717241721328,45.523584846563494],[-73.57163387210545,45.52354014666048],[-73.57165310140948,45.523520919155146],[-73.57153144831767,45.523465428286954]]]},"properties":{"OBJECTID_12_13":92980,"ID_UEV":"01105693","CIVIQUE_DE":" 981","CIVIQUE_FI":" 981","NOM_RUE":"rue Napoléon (MTL)","SUITE_DEBU":" ","MUNICIPALI":"50","ETAGE_HORS":1,"NOMBRE_LOG":1,"ANNEE_CONS":1927,"CODE_UTILI":"1000","LETTRE_DEB":" ","LETTRE_FIN":" ","LIBELLE_UT":"Logement","CATEGORIE_":"Condominium","MATRICULE8":"9942-26-0726-9-001-0002","SUPERFICIE":64,"SUPERFIC_1":1097,"NO_ARROND_":"REM21","Shape_Leng":0.000653576866621,"OBJECTID":92980,"Join_Count":1,"TARGET_FID":92980,"feature_id":"bd64c84e-a70a-4112-915e-74b79f16c189","md_id":" ","acqtech":1360,"acqtech_en":"Lidar","acqtech_fr":"Lidar","provider":461,"provideren":"Municipal","providerfr":"Municipal","datemin":"20151124","datemax":"20151208","haccmin":2,"haccmax":2,"vaccmin":1,"vaccmax":1,"heightmin":2.03,"heightmax":16.11,"elevmin":43.98,"elevmax":46.16,"bldgarea":2049.47,"comment":"Detection of Lidar points classified as ground in the building. Détection de points Lidar classifiés sol dans le bâtiment.","OBJECTID_1":92980,"Shape_Le_1":0.000653576866621,"Shape_Ar_1":1.64021795264e-8,"OBJECTID_12":92980,"Join_Count_1":3,"TARGET_FID_1":92979,"g_objectid":"967849","g_co_mrc":"66023","g_code_mun":"66023","g_arrond":"REM21","g_anrole":"2019","g_usag_pre":"Résidentiel","g_no_lot":"2316950","g_nb_poly_":"1","g_utilisat":"1000","g_nb_logem":"6","g_nb_locau":" ","g_descript":"Unité d'évaluation","g_id_provi":"66023994226021950000000","g_sup_tota":"205.6","g_geometry":"0.000725388","g_geomet_1":"2.3681e-008","g_dat_acqu":"2020-02-12T00:00:00","g_dat_char":"2020-02-17T00:00:00","Shape_Leng_1":0.000653576866621,"Shape_Area_1":1.64021795264e-8,"Shape_Length":0.0006535770208011338,"Shape_Area":1.64021795264e-8}},
|
||||
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-73.57185265377689,45.52343504199365],[-73.57164717307853,45.523341318247276],[-73.57159495574257,45.523397333420235],[-73.57180091488027,45.52349127660119],[-73.57185265377689,45.52343504199365]]]},"properties":{"OBJECTID_12_13":146189,"ID_UEV":"01027577","CIVIQUE_DE":" 961","CIVIQUE_FI":" 965","NOM_RUE":"rue Napoléon (MTL)","SUITE_DEBU":" ","MUNICIPALI":"50","ETAGE_HORS":3,"NOMBRE_LOG":3,"ANNEE_CONS":1927,"CODE_UTILI":"1000","LETTRE_DEB":" ","LETTRE_FIN":" ","LIBELLE_UT":"Logement","CATEGORIE_":"Régulier","MATRICULE8":"9942-16-9812-9-000-0000","SUPERFICIE":159,"SUPERFIC_1":313,"NO_ARROND_":"REM21","Shape_Leng":0.00060521313674,"OBJECTID":146189,"Join_Count":1,"TARGET_FID":146189,"feature_id":"bd64c84e-a70a-4112-915e-74b79f16c189","md_id":" ","acqtech":1360,"acqtech_en":"Lidar","acqtech_fr":"Lidar","provider":461,"provideren":"Municipal","providerfr":"Municipal","datemin":"20151124","datemax":"20151208","haccmin":2,"haccmax":2,"vaccmin":1,"vaccmax":1,"heightmin":2.03,"heightmax":16.11,"elevmin":43.98,"elevmax":46.16,"bldgarea":2049.47,"comment":"Detection of Lidar points classified as ground in the building. Détection de points Lidar classifiés sol dans le bâtiment.","OBJECTID_1":146189,"Shape_Le_1":0.00060521313674,"Shape_Ar_1":1.64233386484e-8,"OBJECTID_12":146189,"Join_Count_1":4,"TARGET_FID_1":146188,"g_objectid":"967849","g_co_mrc":"66023","g_code_mun":"66023","g_arrond":"REM21","g_anrole":"2019","g_usag_pre":"Résidentiel","g_no_lot":"2316950","g_nb_poly_":"1","g_utilisat":"1000","g_nb_logem":"6","g_nb_locau":" ","g_descript":"Unité d'évaluation","g_id_provi":"66023994226021950000000","g_sup_tota":"205.6","g_geometry":"0.000725388","g_geomet_1":"2.3681e-008","g_dat_acqu":"2020-02-12T00:00:00","g_dat_char":"2020-02-17T00:00:00","Shape_Leng_1":0.00060521313674,"Shape_Area_1":1.64233386484e-8,"Shape_Length":0.0006052125392461572,"Shape_Area":1.64233386484e-8}},
|
||||
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-73.57165310140948,45.523520919155146],[-73.57166317201774,45.52351084674825],[-73.57174737194362,45.523552647236954],[-73.5717762716576,45.523526846586776],[-73.57178620916619,45.52353250781903],[-73.57181157904108,45.523504934605114],[-73.57180091488027,45.52349127660119],[-73.57159495574257,45.523397333420235],[-73.57153144831767,45.523465428286954],[-73.57165310140948,45.523520919155146]]]},"properties":{"OBJECTID_12_13":156117,"ID_UEV":"01027579","CIVIQUE_DE":" 967","CIVIQUE_FI":" 977","NOM_RUE":"rue Napoléon (MTL)","SUITE_DEBU":" ","MUNICIPALI":"50","ETAGE_HORS":3,"NOMBRE_LOG":6,"ANNEE_CONS":1927,"CODE_UTILI":"1000","LETTRE_DEB":" ","LETTRE_FIN":" ","LIBELLE_UT":"Logement","CATEGORIE_":"Régulier","MATRICULE8":"9942-26-0219-5-000-0000","SUPERFICIE":206,"SUPERFIC_1":360,"NO_ARROND_":"REM21","Shape_Leng":0.000675507023301,"OBJECTID":156117,"Join_Count":1,"TARGET_FID":156117,"feature_id":"bd64c84e-a70a-4112-915e-74b79f16c189","md_id":" ","acqtech":1360,"acqtech_en":"Lidar","acqtech_fr":"Lidar","provider":461,"provideren":"Municipal","providerfr":"Municipal","datemin":"20151124","datemax":"20151208","haccmin":2,"haccmax":2,"vaccmin":1,"vaccmax":1,"heightmin":2.03,"heightmax":16.11,"elevmin":43.98,"elevmax":46.16,"bldgarea":2049.47,"comment":"Detection of Lidar points classified as ground in the building. Détection de points Lidar classifiés sol dans le bâtiment.","OBJECTID_1":156117,"Shape_Le_1":0.000675507023301,"Shape_Ar_1":1.96911729663e-8,"OBJECTID_12":156117,"Join_Count_1":5,"TARGET_FID_1":156116,"g_objectid":"965958","g_co_mrc":"66023","g_code_mun":"66023","g_arrond":"REM21","g_anrole":"2019","g_usag_pre":"Résidentiel","g_no_lot":"1885186","g_nb_poly_":"1","g_utilisat":"1000","g_nb_logem":"5","g_nb_locau":" ","g_descript":"Unité d'évaluation","g_id_provi":"66023994216872540000000","g_sup_tota":"228.4","g_geometry":"0.000850333","g_geomet_1":"2.66017e-008","g_dat_acqu":"2020-02-12T00:00:00","g_dat_char":"2020-02-17T00:00:00","Shape_Leng_1":0.000675507023301,"Shape_Area_1":1.96911729663e-8,"Shape_Length":0.0006755075167615554,"Shape_Area":1.96911729663e-8}}
|
||||
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-73.57185265377689,45.52343504199365],[-73.57186901784087,45.52344250726594],[-73.5719186361361,45.523388576721516],[-73.57169557189309,45.52328954697509],[-73.57164717307853,45.523341318247276],[-73.57185265377689,45.52343504199365]]]},"id":86522, "properties":{"ID_UEV":"01027575","CIVIQUE_DE":" 951","CIVIQUE_FI":" 959","NOM_RUE":"rue Napoléon (MTL)","SUITE_DEBU":" ","MUNICIPALI":"50","ETAGE_HORS":3,"NOMBRE_LOG":5,"ANNEE_CONS":1927,"CODE_UTILI":"1000","LETTRE_DEB":" ","LETTRE_FIN":" ","LIBELLE_UT":"Logement","CATEGORIE_":"Régulier","MATRICULE8":"9942-16-9406-0-000-0000","SUPERFICIE":189,"SUPERFIC_1":342,"NO_ARROND_":"REM21","Shape_Leng":0.000632076842566,"OBJECTID":86522,"Join_Count":1,"TARGET_FID":86522,"feature_id":"bd64c84e-a70a-4112-915e-74b79f16c189","md_id":" ","acqtech":1360,"acqtech_en":"Lidar","acqtech_fr":"Lidar","provider":461,"provideren":"Municipal","providerfr":"Municipal","datemin":"20151124","datemax":"20151208","haccmin":2,"haccmax":2,"vaccmin":1,"vaccmax":1,"heightmin":2.03,"heightmax":16.11,"elevmin":43.98,"elevmax":46.16,"bldgarea":2049.47,"comment":"Detection of Lidar points classified as ground in the building. Détection de points Lidar classifiés sol dans le bâtiment.","OBJECTID_1":86522,"Shape_Le_1":0.000632076842566,"Shape_Ar_1":1.66656602227e-8,"OBJECTID_12":86522,"Join_Count_1":4,"TARGET_FID_1":86521,"g_objectid":"965958","g_co_mrc":"66023","g_code_mun":"66023","g_arrond":"REM21","g_anrole":"2019","g_usag_pre":"Résidentiel","g_no_lot":"1885186","g_nb_poly_":"1","g_utilisat":"1000","g_nb_logem":"5","g_nb_locau":" ","g_descript":"Unité d'évaluation","g_id_provi":"66023994216872540000000","g_sup_tota":"228.4","g_geometry":"0.000850333","g_geomet_1":"2.66017e-008","g_dat_acqu":"2020-02-12T00:00:00","g_dat_char":"2020-02-17T00:00:00","Shape_Leng_1":0.000632076842566,"Shape_Area_1":1.66656602227e-8,"Shape_Length":0.0006320773708141846,"Shape_Area":1.66656602227e-8}},
|
||||
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-73.57153144831767,45.523465428286954],[-73.57149617241038,45.523503246577604],[-73.5714876720184,45.52349934711725],[-73.57146469883673,45.52352357665177],[-73.571684848377,45.523623993152796],[-73.5717241721328,45.523584846563494],[-73.57163387210545,45.52354014666048],[-73.57165310140948,45.523520919155146],[-73.57153144831767,45.523465428286954]]]},"id":92980,"properties":{"ID_UEV":"01105693","CIVIQUE_DE":" 981","CIVIQUE_FI":" 981","NOM_RUE":"rue Napoléon (MTL)","SUITE_DEBU":" ","MUNICIPALI":"50","ETAGE_HORS":1,"NOMBRE_LOG":1,"ANNEE_CONS":1927,"CODE_UTILI":"1000","LETTRE_DEB":" ","LETTRE_FIN":" ","LIBELLE_UT":"Logement","CATEGORIE_":"Condominium","MATRICULE8":"9942-26-0726-9-001-0002","SUPERFICIE":64,"SUPERFIC_1":1097,"NO_ARROND_":"REM21","Shape_Leng":0.000653576866621,"OBJECTID":92980,"Join_Count":1,"TARGET_FID":92980,"feature_id":"bd64c84e-a70a-4112-915e-74b79f16c189","md_id":" ","acqtech":1360,"acqtech_en":"Lidar","acqtech_fr":"Lidar","provider":461,"provideren":"Municipal","providerfr":"Municipal","datemin":"20151124","datemax":"20151208","haccmin":2,"haccmax":2,"vaccmin":1,"vaccmax":1,"heightmin":2.03,"heightmax":16.11,"elevmin":43.98,"elevmax":46.16,"bldgarea":2049.47,"comment":"Detection of Lidar points classified as ground in the building. Détection de points Lidar classifiés sol dans le bâtiment.","OBJECTID_1":92980,"Shape_Le_1":0.000653576866621,"Shape_Ar_1":1.64021795264e-8,"OBJECTID_12":92980,"Join_Count_1":3,"TARGET_FID_1":92979,"g_objectid":"967849","g_co_mrc":"66023","g_code_mun":"66023","g_arrond":"REM21","g_anrole":"2019","g_usag_pre":"Résidentiel","g_no_lot":"2316950","g_nb_poly_":"1","g_utilisat":"1000","g_nb_logem":"6","g_nb_locau":" ","g_descript":"Unité d'évaluation","g_id_provi":"66023994226021950000000","g_sup_tota":"205.6","g_geometry":"0.000725388","g_geomet_1":"2.3681e-008","g_dat_acqu":"2020-02-12T00:00:00","g_dat_char":"2020-02-17T00:00:00","Shape_Leng_1":0.000653576866621,"Shape_Area_1":1.64021795264e-8,"Shape_Length":0.0006535770208011338,"Shape_Area":1.64021795264e-8}},
|
||||
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-73.57185265377689,45.52343504199365],[-73.57164717307853,45.523341318247276],[-73.57159495574257,45.523397333420235],[-73.57180091488027,45.52349127660119],[-73.57185265377689,45.52343504199365]]]},"id":146189, "properties":{"ID_UEV":"01027577","CIVIQUE_DE":" 961","CIVIQUE_FI":" 965","NOM_RUE":"rue Napoléon (MTL)","SUITE_DEBU":" ","MUNICIPALI":"50","ETAGE_HORS":3,"NOMBRE_LOG":3,"ANNEE_CONS":1927,"CODE_UTILI":"1000","LETTRE_DEB":" ","LETTRE_FIN":" ","LIBELLE_UT":"Logement","CATEGORIE_":"Régulier","MATRICULE8":"9942-16-9812-9-000-0000","SUPERFICIE":159,"SUPERFIC_1":313,"NO_ARROND_":"REM21","Shape_Leng":0.00060521313674,"OBJECTID":146189,"Join_Count":1,"TARGET_FID":146189,"feature_id":"bd64c84e-a70a-4112-915e-74b79f16c189","md_id":" ","acqtech":1360,"acqtech_en":"Lidar","acqtech_fr":"Lidar","provider":461,"provideren":"Municipal","providerfr":"Municipal","datemin":"20151124","datemax":"20151208","haccmin":2,"haccmax":2,"vaccmin":1,"vaccmax":1,"heightmin":2.03,"heightmax":16.11,"elevmin":43.98,"elevmax":46.16,"bldgarea":2049.47,"comment":"Detection of Lidar points classified as ground in the building. Détection de points Lidar classifiés sol dans le bâtiment.","OBJECTID_1":146189,"Shape_Le_1":0.00060521313674,"Shape_Ar_1":1.64233386484e-8,"OBJECTID_12":146189,"Join_Count_1":4,"TARGET_FID_1":146188,"g_objectid":"967849","g_co_mrc":"66023","g_code_mun":"66023","g_arrond":"REM21","g_anrole":"2019","g_usag_pre":"Résidentiel","g_no_lot":"2316950","g_nb_poly_":"1","g_utilisat":"1000","g_nb_logem":"6","g_nb_locau":" ","g_descript":"Unité d'évaluation","g_id_provi":"66023994226021950000000","g_sup_tota":"205.6","g_geometry":"0.000725388","g_geomet_1":"2.3681e-008","g_dat_acqu":"2020-02-12T00:00:00","g_dat_char":"2020-02-17T00:00:00","Shape_Leng_1":0.00060521313674,"Shape_Area_1":1.64233386484e-8,"Shape_Length":0.0006052125392461572,"Shape_Area":1.64233386484e-8}},
|
||||
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-73.57165310140948,45.523520919155146],[-73.57166317201774,45.52351084674825],[-73.57174737194362,45.523552647236954],[-73.5717762716576,45.523526846586776],[-73.57178620916619,45.52353250781903],[-73.57181157904108,45.523504934605114],[-73.57180091488027,45.52349127660119],[-73.57159495574257,45.523397333420235],[-73.57153144831767,45.523465428286954],[-73.57165310140948,45.523520919155146]]]},"id":156117,"properties":{"ID_UEV":"01027579","CIVIQUE_DE":" 967","CIVIQUE_FI":" 977","NOM_RUE":"rue Napoléon (MTL)","SUITE_DEBU":" ","MUNICIPALI":"50","ETAGE_HORS":3,"NOMBRE_LOG":6,"ANNEE_CONS":1927,"CODE_UTILI":"1000","LETTRE_DEB":" ","LETTRE_FIN":" ","LIBELLE_UT":"Logement","CATEGORIE_":"Régulier","MATRICULE8":"9942-26-0219-5-000-0000","SUPERFICIE":206,"SUPERFIC_1":360,"NO_ARROND_":"REM21","Shape_Leng":0.000675507023301,"OBJECTID":156117,"Join_Count":1,"TARGET_FID":156117,"feature_id":"bd64c84e-a70a-4112-915e-74b79f16c189","md_id":" ","acqtech":1360,"acqtech_en":"Lidar","acqtech_fr":"Lidar","provider":461,"provideren":"Municipal","providerfr":"Municipal","datemin":"20151124","datemax":"20151208","haccmin":2,"haccmax":2,"vaccmin":1,"vaccmax":1,"heightmin":2.03,"heightmax":16.11,"elevmin":43.98,"elevmax":46.16,"bldgarea":2049.47,"comment":"Detection of Lidar points classified as ground in the building. Détection de points Lidar classifiés sol dans le bâtiment.","OBJECTID_1":156117,"Shape_Le_1":0.000675507023301,"Shape_Ar_1":1.96911729663e-8,"OBJECTID_12":156117,"Join_Count_1":5,"TARGET_FID_1":156116,"g_objectid":"965958","g_co_mrc":"66023","g_code_mun":"66023","g_arrond":"REM21","g_anrole":"2019","g_usag_pre":"Résidentiel","g_no_lot":"1885186","g_nb_poly_":"1","g_utilisat":"1000","g_nb_logem":"5","g_nb_locau":" ","g_descript":"Unité d'évaluation","g_id_provi":"66023994216872540000000","g_sup_tota":"228.4","g_geometry":"0.000850333","g_geomet_1":"2.66017e-008","g_dat_acqu":"2020-02-12T00:00:00","g_dat_char":"2020-02-17T00:00:00","Shape_Leng_1":0.000675507023301,"Shape_Area_1":1.96911729663e-8,"Shape_Length":0.0006755075167615554,"Shape_Area":1.96911729663e-8}}
|
||||
]}
|
|
@ -15,7 +15,7 @@ from hub.imports.results_factory import ResultFactory
|
|||
sys.path.append('./')
|
||||
|
||||
try:
|
||||
file_path = (Path(__file__).parent.parent / 'input_files' / 'concordia.geojson')
|
||||
file_path = (Path(__file__).parent.parent / 'input_files' / 'Citylayers_neighbours_simp2.json')
|
||||
out_path = (Path(__file__).parent.parent / 'out_files')
|
||||
files = glob.glob(f'{out_path}/*')
|
||||
|
||||
|
@ -46,7 +46,6 @@ try:
|
|||
area += ground.perimeter_polygon.area
|
||||
|
||||
print('exporting:')
|
||||
|
||||
_idf = EnergyBuildingsExportsFactory('idf', city, out_path).export()
|
||||
print(' idf exported...')
|
||||
_idf.run()
|
||||
|
@ -55,18 +54,7 @@ try:
|
|||
eso_file = str((out_path / f'{city.name}_out.eso').resolve())
|
||||
idf_file = str((out_path / f'{city.name}.idf').resolve())
|
||||
obj_file = str((out_path / f'{city.name}.obj').resolve())
|
||||
|
||||
"""with open((out_path / f'{city.name}_out.csv').resolve()) as f:
|
||||
reader = csv.reader(f, delimiter=',')
|
||||
for row in reader:
|
||||
if ':00:00' in row[0]:
|
||||
print(f'row: {row[0]}, {row[8]}, {row[9]}')
|
||||
|
||||
print(f'info: {idf_file}, {csv_file}, {eso_file}, {area}, {volume}, {obj_file}')
|
||||
print('[simulation end]')"""
|
||||
|
||||
"""ResultFactory('energy_plus_single_building', city, out_path).enrich()
|
||||
print('kk')"""
|
||||
ResultFactory('energy_plus_multiple_buildings', city, out_path).enrich()
|
||||
|
||||
except Exception as ex:
|
||||
print(ex)
|
||||
|
|
Loading…
Reference in New Issue
Block a user