-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathto_Antares_Format.Rd
25 lines (24 loc) · 957 Bytes
/
to_Antares_Format.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{to_Antares_Format}
\alias{to_Antares_Format}
\title{Convert water values to Antares format}
\usage{
to_Antares_Format(data, constant = T)
}
\arguments{
\item{data}{A 7-column data.table generated by \code{watervalues::Grid_Matrix()}}
\item{constant}{Boolean. Generate daily constant values by week. FALSE to do interpolation.}
}
\value{
A 365*101 numeric matrix
}
\description{
This function converts water values generated by \code{meanGridLayer} or
\code{waterValues} 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 \code{meanGridLayer} and \code{waterValues} output weekly values for an
arbitrary number of reservoir levels, interpolation is performed on both scales
in order to fit the desired format.
}