Method: EnergyPlus::DDYFile#get_data_source
- Defined in:
- lib/energyplus/DDYFile.rb
#get_data_source ⇒ Object
returns an array of “data source, year, and type
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/energyplus/DDYFile.rb', line 73 def get_data_source #! Using Design Conditions from "Climate Design Data 2005 ASHRAE Handbook" #! Using Design Conditions from "Climate Design Data 2009 ASHRAE Handbook" src_s = "" @lines.each_index do |i| if @lines[i] =~ /Climate Design Data [0-9]{4} ASHRAE Handbook/ src_s = @lines[i] break end end src = [] src << src_s.match("Climate Design Data [0-9]{4} ASHRAE Handbook")[0] src << src_s.match("[0-9]{4}")[0] src << "ASHRAE Handbook" return src end |