|
68 | 68 | #' @param ET.Mortons.est character string for the type of Morton's ET estimate. For \code{ET.MortonCRAE}, the options are \code{potential ET},\code{wet areal ET} or \code{actual areal ET}. |
69 | 69 | #' For \code{ET.MortonCRWE}, the options are \code{potential ET} or \code{shallow lake ET}. The default is \code{potential ET}. |
70 | 70 | #' @param ET.Turc.humid logical variable for the Turc function using the humid adjustment.See \code{\link[Evapotranspiration]{ET.Turc}}. For now this is fixed at \code{F}. |
71 | | -#' @param ET.timestep character string for the evapotranpiration time step. Options are \code{daily}, \code{monthly}, \code{annual} but the options are dependent upon the chosen \code{ET.function}. The default is \code{"monthly"}. |
72 | | -#' @param ET.missing_method character string for interpolation method for missing variables required for ET calculation. The options are \code{"monthly average"}, \code{"seasonal average"}, \code{"DoY average"} and \code{"neighbouring average"}. Default is \code{"DoY average"} but when the extraction duration is less than two years, the default is \code{"neighbouring average}. See \code{\link[Evapotranspiration]{ReadInputs}} |
| 71 | +#' @param ET.timestep character string for the evapotranpiration time step. Options are \code{daily}, \code{monthly}, \code{annual} but the options are dependent upon the chosen \code{ET.function}. The default is \code{'monthly'}. |
| 72 | +#' @param ET.missing_method character string for interpolation method for missing variables required for ET calculation. The options are \code{'monthly average'}, \code{'seasonal average'}, \code{'DoY average'} and \code{'neighbouring average'}. Default is \code{'DoY average'} but when the extraction duration is less than two years, the default is \code{'neighbouring average'}. See \code{\link[Evapotranspiration]{ReadInputs}} |
73 | 73 | #' @param ET.abnormal_method character string for interpolation method for abnormal variables required for ET calculation (e.g. Tmin > Tmax). Options and defaults are as for \code{ET.missing_method}. See \code{\link[Evapotranspiration]{ReadInputs}} |
74 | 74 | #' @param ET.constants list of constants from Evapotranspiration package required for ET calculations. To get the data use the command \code{data(constants)}. Default is \code{list()}. |
75 | 75 | #' |
76 | 76 | #' @return |
77 | | -#' When \code{locations} are polygons and \code{spatial.function.name} is not \code{NA} or \code{""}, then the returned variable is a list variable containing two data.frames. The first is the areal aggreggated climate |
| 77 | +#' When \code{locations} are polygons and \code{spatial.function.name} is not \code{NA} or \code{""}, then the returned variable is a list variable containing two data.frames. The first is the areal aggregated climate |
78 | 78 | #' metrics named \code{catchmentTemporal.} with a suffix as defined by \code{temporal.function.name}). The second is the measure of spatial variability |
79 | 79 | #' named \code{catchmentSpatial.} with a suffix as defined by \code{spatial.function.name}). |
80 | 80 | #' |
81 | | -#' When \code{locations} are polygons and \code{spatial.function.name} does equal \code{NA} or \code{""}, then the returned variable is a \code{sp::SpatialPixelsDataFrame} where the first colum is the location/catchmet IDs |
| 81 | +#' When \code{locations} are polygons and \code{spatial.function.name} does equal \code{NA} or \code{""}, then the returned variable is a \code{sp::SpatialPixelsDataFrame} where the first column is the location/catchment IDs |
82 | 82 | #' and the latter columns are the results for each variable at each time point as defined by \code{temporal.timestep}. |
83 | 83 | #' |
84 | 84 | #' When \code{locations} are points, the returned variable is a data.frame containing daily climate data at each point. |
@@ -166,7 +166,7 @@ extractCatchmentData <- function( |
166 | 166 |
|
167 | 167 | # Check ncdfFilename file exist |
168 | 168 | if (!file.exists(ncdfFilename)) |
169 | | - stop(paste('The following ncdfFilename input data file could not be found:',ncdfFilename)) |
| 169 | + stop(paste("The following ncdfFilename input data file could not be found:",ncdfFilename)) |
170 | 170 |
|
171 | 171 | # Open NetCDF grids |
172 | 172 | awap <- ncdf4::nc_open(ncdfFilename) |
|
0 commit comments