match_coord: Match coordinates of input EPW in the CMIP6 output file...

Description Usage Arguments Details Value Examples

Description

match_coord() takes an EPW and uses its longitude and latitude to match corresponding values that meet specified threshold in NetCDF files.

Usage

1
match_coord(epw, threshold = list(lon = 1, lat = 1), max_num = NULL)

Arguments

epw

Possible values:

  • A file path of EPW file

  • An eplusr::Epw object

  • A regular expression used to search locations in EnergyPlus Weather Database, e.g. "los angeles.*tmy3". You will be asked to select a matched EPW to download and read. It will be saved into tempdir(). Note that the search is case-insensitive

threshold

A list of 2 elements lon and lat specifying the absolute distance threshold used when matching longitude and latitude. Default: list(lon = 1.0, lat = 1.0)

max_num

The maximum number to be matched for both longitude and latitude when threshold is matched. Default is NULL, which means no limit

Details

match_coord() uses future.apply underneath. You can use your preferable future backend to speed up data extraction in parallel. By default, match_coord() uses future::sequential backend, which runs things in sequential.

Value

An epw_cmip6_coord object, which is basically a list of 3 elements:

Examples

1
2
3
4
5
6
7
8
## Not run: 
# download an EPW from EnergyPlus website
epw <- eplusr::download_weather("los angeles.*TMY3", dir = tempdir(),
    type = "EPW", ask = FALSE)

match_coord(epw, threshold = list(lon = 1.0, lat = 1.0))

## End(Not run)

epwshiftr documentation built on May 26, 2021, 5:08 p.m.