to_Antares_Format: Convert water values to Antares format

View source: R/functions.R

to_Antares_FormatR Documentation

Convert water values to Antares format

Description

This function converts water values generated by Grid_Matrix to the format expected by Antares: a 365*101 matrix, where the rows are the 365 days of the year and the columns are round percentage values ranging from 0 to 100 assessing the reservoir level. Since Grid_Matrix output weekly values for an arbitrary number of reservoir levels, interpolation is performed on both scales in order to fit the desired format.

Usage

to_Antares_Format(data, constant = T)

Arguments

data

A data.table generated by Grid_Matrix

constant

Boolean. Generate daily constant values by week. FALSE to do interpolation.

Value

A 365*101 numeric matrix


rte-antares-rpackage/antaresWaterValues documentation built on Nov. 6, 2024, 11:17 p.m.