scale_tmy: Scale TMY

Description Usage Arguments Value Examples

View source: R/predict.R

Description

Adjust the tmy to reflect the longterm resource adjustment calculated by the MCP

Usage

1
scale_tmy(mcp_results, tmy, model_name, model_timestep, sensor_list)

Arguments

mcp_results

Results of an MCP

tmy

a Tidy tmy

model_name

the model in mcp_results to be used as the long-term resource adjustment

model_timestep

the timestep in mcp_results to be used as the long-term resource adjustment

sensor_list

the sensors of the tmy to be scaled

Value

The original tmy with the sensors scaled to the long-term adjusted values. If 'ghi' is one of the sensors, dhi and dni will be scaled by the same ratio as ghi.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
my_mcp <- MCP(megaframe)
my_mcp$run()

tmy <- reac_csv('tmy.csv') #columns = datetime, ghi, dni, dhi, temp, ws

adjusted_tmy <- scale_tmy(my_mcp$get_results(), tmy, 'cpr3.4', 'daily', c('ghi', 'temp'))

## End(Not run)

btaute/powerResource documentation built on Sept. 4, 2020, 4:36 p.m.