Improved IDF2JSON

简介:

The last version eliminated all comments because they are not needed in the JSON format. But the comments can be used as properties. So, I did some modifications. Since I am not familiar with Fortran. All the work is done with Python by replacing characters to change the structure. The results are shown below:

{

"_Version": "8.8",

"_Timestep": "4",

"_Building": {

" Name": "Simple One Zone w Windows",

" North Axis (deg)": "0",

" Terrain": "Suburbs",

" Loads Convergence Tolerance Value": "0.04",

" Temperature Convergence Tolerance Value (deltaC)": "0.004",

" Solar Distribution": "MinimalShadowing",

" Maximum Number of Warmup Days": "30",

" Minimum Number of Warmup Days": "6"

},

"_HeatBalanceAlgorithm": "ConductionTransferFunction",

"_SurfaceConvectionAlgorithm___Inside": "TARP",

"_SurfaceConvectionAlgorithm___Outside": "DOE-2",

"_SimulationControl": {

" Do Zone Sizing Calculation": "No",

" Do System Sizing Calculation": "No",

" Do Plant Sizing Calculation": "No",

" Run Simulation for Sizing Periods": "Yes",

" Run Simulation for Weather File Run Periods": "No"

},

"_RunPeriod": {

" Name": "Null",

" Begin Month": "1",

" Begin Day of Month": "1",

" End Month": "12",

" End Day of Month": "31",

" Day of Week for Start Day": "Tuesday",

" Use Weather File Holidays and Special Days": "Yes",

" Use Weather File Daylight Saving Period": "Yes",

" Apply Weekend Holiday Rule": "No",

" Use Weather File Rain Indicators": "Yes",

" Use Weather File Snow Indicators": "Yes"

},

"_Site___Location": {

" Name": "Denver Stapleton Intl Arpt CO USA WMO=724690",

" Latitude (deg)": "39.77",

" Longitude (deg)": "-104.87",

" Time Zone (hr)": "-7.00",

" Elevation (m)": "1611.00"

},

"_SizingPeriod___DesignDay": {

" Name": "Denver Stapleton Intl Arpt Ann Clg 1% Condns DB=>MWB",

" Month": "7",

" Day of Month": "21",

" Day Type": "SummerDesignDay",

" Maximum Dry-Bulb Temperature (C)": "32.6",

" Daily Dry-Bulb Temperature Range (deltaC)": "15.2",

" Dry-Bulb Temperature Range Modifier Type": "Null",

" Dry-Bulb Temperature Range Modifier Day Schedule Name": "Null",

" Humidity Condition Type": "Wetbulb",

" Wetbulb or DewPoint at Maximum Dry-Bulb (C)": "15.6",

" Humidity Condition Day Schedule Name": "Null",

" Humidity Ratio at Maximum Dry-Bulb (kgWater/kgDryAir)": "Null",

" Enthalpy at Maximum Dry-Bulb (J/kg)": "Null",

" Daily Wet-Bulb Temperature Range (deltaC)": "Null",

" Barometric Pressure (Pa)": "83411.",

" Wind Speed (m/s)": "4",

" Wind Direction (deg)": "120",

" Rain Indicator": "No",

" Snow Indicator": "No",

" Daylight Saving Time Indicator": "No",

" Solar Model Indicator": "ASHRAEClearSky",

" Beam Solar Day Schedule Name": "Null",

" Diffuse Solar Day Schedule Name": "Null",

" ASHRAE Clear Sky Optical Depth for Beam Irradiance (taub) (dimensionless)": "Null",

" ASHRAE Clear Sky Optical Depth for Diffuse Irradiance (taud) (dimensionless)": "Null",

" Sky Clearness": "1.00"

},

"_Material___NoMass": {

" Name": "R31LAYER",

" Roughness": "Rough",

" Thermal Resistance (m2-K/W)": "5.456",

" Thermal Absorptance": "0.9000000",

" Solar Absorptance": "0.7500000",

" Visible Absorptance": "0.7500000"

},

"_Material": {

" Name": "C5 - 4 IN HW CONCRETE",

" Roughness": "MediumRough",

" Thickness (m)": "0.1014984",

" Conductivity (W/m-K)": "1.729577",

" Density (kg/m3)": "2242.585",

" Specific Heat (J/kg-K)": "836.8000",

" Thermal Absorptance": "0.9000000",

" Solar Absorptance": "0.6500000",

" Visible Absorptance": "0.6500000"

},

"_Construction": {

" Name": "ROOF31",

" Outside Layer": "R31LAYER"

},

"_Construction___WindowDataFile": {

" Name": "DoubleClear",

" File Name": "..BACKSLASHdatasetsBACKSLASHWindow5DataFile.dat"

},

"_Site___GroundTemperature___BuildingSurface": "18.89,18.92,19.02,19.12,19.21,19.23,19.07,19.32,19.09,19.21,19.13,18.96",

"_Zone": {

" Name": "ZONE ONE",

" Direction of Relative North (deg)": "0",

" X Origin (m)": "0",

" Y Origin (m)": "0",

" Z Origin (m)": "0",

" Type": "1",

" Multiplier": "1",

" Ceiling Height (m)": "autocalculate",

" Volume (m3)": "autocalculate"

},

"_ScheduleTypeLimits": {

" Name": "Fraction",

" Lower Limit Value": "0.0",

" Upper Limit Value": "1.0",

" Numeric Type": "CONTINUOUS"

},

"_GlobalGeometryRules": {

" Starting Vertex Position": "UpperLeftCorner",

" Vertex Entry Direction": "CounterClockWise",

" Coordinate System": "World"

},

"_BuildingSurface___Detailed": {

" Name": "Zn001___Roof001",

" Surface Type": "Roof",

" Construction Name": "ROOF31",

" Zone Name": "ZONE ONE",

" Outside Boundary Condition": "Outdoors",

" Outside Boundary Condition Object": "Null",

" Sun Exposure": "SunExposed",

" Wind Exposure": "WindExposed",

" View Factor to Ground": "0",

" Number of Vertices": "4",

" X,Y,Z ==> Vertex 1 (m)": "0.000000,15.24000,4.572",

" X,Y,Z ==> Vertex 2 (m)": "0.000000,0.000000,4.572",

" X,Y,Z ==> Vertex 3 (m)": "15.24000,0.000000,4.572",

" X,Y,Z ==> Vertex 4 (m)": "15.24000,15.24000,4.572"

},

"_FenestrationSurface___Detailed": {

" Name": "Zn001_Wall001_Win001",

" Surface Type": "Window",

" Construction Name": "DoubleClear",

" Building Surface Name": "Zn001___Wall001",

" Outside Boundary Condition Object": "Null",

" View Factor to Ground": "0.5000000",

" Shading Control Name": "Null",

" Frame and Divider Name": "Null",

" Multiplier": "1.0",

" Number of Vertices": "4",

" X,Y,Z ==> Vertex 1 (m)": "0.548000,0,2.5000",

" X,Y,Z ==> Vertex 2 (m)": "0.548000,0,0.5000",

" X,Y,Z ==> Vertex 3 (m)": "5.548000,0,0.5000",

" X,Y,Z ==> Vertex 4 (m)": "5.548000,0,2.5000"

},

"_Output___Variable": "ZN001___WALL001___WIN001,Surface Outside Face Temperature,timestep",

"_Output___VariableDictionary": "Regular",

"_Output___Surfaces___Drawing": "dxf",

"_Output___Surfaces___List": "details",

"_Output___Constructions": "Constructions",

"_Output___Meter___MeterFileOnly": "EnergyTransfer___Facility,hourly",

"_OutputControl___Table___Style": {

" Column Separator": "HTML"

},

"_Output___Table___SummaryReports": {

" Report 1 Name": "AllSummary"

}

}

目录
相关文章
|
4月前
|
JSON 程序员 数据格式
深入探索 “JSON for Modern C++“:安装、构建与应用
深入探索 “JSON for Modern C++“:安装、构建与应用
113 0
|
JSON 数据格式 Python
Python json中一直搞不清的load、loads、dump、dumps、eval
Python json中一直搞不清的load、loads、dump、dumps、eval
357 0
Python json中一直搞不清的load、loads、dump、dumps、eval
|
1月前
|
XML JSON API
Understanding JSON Schema
Understanding JSON Schema
27 0
|
1月前
|
TensorFlow 算法框架/工具 Python
【Tensorflow】解决Tensorboard: ValueError: Duplicate plugins for name projector
解决TensorBoard版本冲突的方法,即通过卸载冲突的TensorFlow相关包然后重新安装所需的版本。
45 1
|
1月前
|
TensorFlow API 算法框架/工具
【Tensorflow+keras】解决使用model.load_weights时报错 ‘str‘ object has no attribute ‘decode‘
python 3.6,Tensorflow 2.0,在使用Tensorflow 的keras API,加载权重模型时,报错’str’ object has no attribute ‘decode’
32 0
|
2月前
|
域名解析 自然语言处理 网络协议
【Python】已解决:nltk.download(‘averaged_perceptron_tagger’) [nltk_data] Error loading averaged_perceptro
【Python】已解决:nltk.download(‘averaged_perceptron_tagger’) [nltk_data] Error loading averaged_perceptro
222 1
|
11月前
206Echarts - 数据集(Simple Encode)
206Echarts - 数据集(Simple Encode)
52 0
|
机器学习/深度学习 自然语言处理 测试技术
Query and Extract Refining Event Extraction as Type-oriented Binary Decoding 论文解读
事件抽取通常被建模为一个多分类问题,其中事件类型和论元角色被视为原子符号。这些方法通常仅限于一组预定义的类型。
54 0
|
机器学习/深度学习 自然语言处理 搜索推荐
TSAR: A Two-Stream AMR-enhanced Model for Document-level Event Argument Extraction论文解读
以往的研究大多致力于从单个句子中抽取事件,而文档级别的事件抽取仍未得到充分的研究。在本文中,我们专注于从整个文档中抽取事件论元
171 0
|
机器学习/深度学习 自然语言处理 数据挖掘
UnifiedEAE: A Multi-Format Transfer Learning Model for Event Argument Extraction via Variational论文解读
事件论元抽取(Event argument extraction, EAE)旨在从文本中抽取具有特定角色的论元,在自然语言处理中已被广泛研究。
69 0