openstudiocore/ruby/openstudio/sketchup_plugin/user_scripts/On Demand Template Generators/resources/SpaceTypeGenerator.rb
# check if a specific climate zone is included in a given climate zone set
check if a specific climate zone is included in a given climate zone set
check if a specific climate zone is included in a given climate zone set
def is_climate_zone_in_climate_zone_set(climate_zone, climate_zone_set)
  if data = @climate_zone_sets[climate_zone_set]
    if climate_zones = data["climate_zones"]
      if climate_zones.include?(climate_zone)
        return true
      end
    end
  end
  return false
end
def is_climate_zone_in_climate_zone_set ( climate_zone , climate_zone_set ) if data = @climate_zone_sets [ climate_zone_set ] if climate_zones = data [ "climate_zones" ] if climate_zones . include? ( climate_zone ) return true end end end return false end
check if a specific climate zone is included in a given climate zone set
check if a specific climate zone is included in a given climate zone set
climate_zone
<not_specific>
climate_zone_set
<not_specific>