read_epw: Read and Parse EnergyPlus Weather File (EPW)

Description Usage Arguments Value Author(s) See Also Examples

View source: R/epw.R

Description

read_epw() parses an EPW file and returns an Epw object. The parsing process is extreme inspired by OpenStudio utilities library with some simplifications. For more details on Epw, please see Epw Class.

Usage

1
read_epw(path)

Arguments

path

A path of an EnergyPlus EPW file.

Value

An Epw object.

Author(s)

Hongyuan Jia

See Also

Epw class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# read an EPW file from EnergyPlus v8.8 installation folder
if (is_avail_eplus(8.8)) {
    path_epw <- file.path(
        eplus_config(8.8)$dir,
        "WeatherData",
        "USA_CA_San.Francisco.Intl.AP.724940_TMY3.epw"
   )
   epw <- read_epw(path_epw)
}

## Not run: 
# read an EPW file from EnergyPlus website
path_base <- "https://energyplus.net/weather-download"
path_region <- "north_and_central_america_wmo_region_4/USA/CA"
path_file <- "USA_CA_San.Francisco.Intl.AP.724940_TMY3/USA_CA_San.Francisco.Intl.AP.724940_TMY3.epw"
path_epw <- file.path(path_base, path_region, path_file)
epw <- read_epw(path_epw)

## End(Not run)

hongyuanjia/eplusr documentation built on Aug. 18, 2018, 10:39 p.m.