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"

}

}

目录
相关文章
|
JSON 数据格式 Python
Python json中一直搞不清的load、loads、dump、dumps、eval
Python json中一直搞不清的load、loads、dump、dumps、eval
513 0
Python json中一直搞不清的load、loads、dump、dumps、eval
|
3月前
|
安全 JavaScript 前端开发
Python Tricks: A Shocking Truth About String Formatting(二)
Python Tricks: A Shocking Truth About String Formatting(二)
26 2
|
3月前
|
Python
Python Tricks: A Shocking Truth About String Formatting(一)
Python Tricks: A Shocking Truth About String Formatting(一)
57 0
|
6月前
|
API Python
【Python】已解决:AttributeError: ‘TfidfVectorizer’ object has no attribute ‘get_feature_names_out’
【Python】已解决:AttributeError: ‘TfidfVectorizer’ object has no attribute ‘get_feature_names_out’
201 0
|
机器学习/深度学习 自然语言处理 测试技术
Query and Extract Refining Event Extraction as Type-oriented Binary Decoding 论文解读
事件抽取通常被建模为一个多分类问题,其中事件类型和论元角色被视为原子符号。这些方法通常仅限于一组预定义的类型。
76 0
|
Shell 计算机视觉
2022亚太建模A题Feature Extraction of Sequence Images and Modeling Analysis of Mold Flux Melting and Crystallization思路分析
2022 亚太建模A题序列图像的特征提取与建模分析 模具流量的熔融和结晶Feature Extraction of Sequence Images and Modeling Analysis of Mold Flux Melting and Crystallization
2022亚太建模A题Feature Extraction of Sequence Images and Modeling Analysis of Mold Flux Melting and Crystallization思路分析
|
XML 存储 JSON
Eval 和 json 的使用 | 学习笔记
快速学习 Eval 和 json 的使用
Eval 和 json 的使用 | 学习笔记
|
运维 自然语言处理 数据挖掘
论文调研: Robust and Transferable Anomaly Detection in Log Data using Pre-Trained Language Models
在大型计算机系统中,比如云服务系统,异常和错误会影响大量用户,及时准确的找出异常可以有效的保证系统的可靠性。软件系统的不断演进,要求异常检测系统可以处理软件升级或者冷启动后出现未知数据,难以检测是否是异常的问题。论文使用预训练语言模型,在日志维度使用日志的语义特征,实现在系统更新或冷启动后有效检测日志中出现的异常数据,并通过实验验证了方法的可靠性和有效性,进一步拓展了这一方向研究的可能性。
557 0
Basic Concepts of Genetic Data Analysis
Basic Concepts of Genetic Data Analysis
916 0

热门文章

最新文章