diff --git a/R/check_args.R b/R/check_args.R index ea41b39..8b823a6 100644 --- a/R/check_args.R +++ b/R/check_args.R @@ -2,15 +2,15 @@ check_var <- function(x){ valid_variables <- c("Cloud-Cover", "Precipitation-Rain-Duration-Fraction", - "snow_thickness_lwe", + "Snow-Thickness-LWE", "Solar-Radiation-Flux", "Temperature-Air-2m", - "2m_dewpoint_temperature", + "Dew-Point_Temperature-2m", "Precipitation-Flux", - "solid_precipitation_duration_fraction", - "snow_thickness", - "vapour_pressure", - "10m_wind_speed", + "Precipitation-Solid-Duration-Fraction", + "Snow-Thickness", + "Vapour-Pressure", + "Wind-Speed-10m", "Relative-Humidity-2m") if(x %in% valid_variables){ @@ -69,12 +69,12 @@ check_temp_vars <- function(x){ check_vars_with_stat <- function(x){ vars_with_stat <- c("Temperature-Air-2m", - #"Cloud_Cover", - "snow_thickness_lwe", - "2m_dewpoint_temperature", - "snow_thickness", - "vapour_pressure", - "10m_wind_speed") + "Cloud_Cover", + "Snow-Thickness-LWE", + "Dew-Point_Temperature-2m", + "Snow-Thickness", + "Vapour-Pressure", + "Wind-Speed-10m") if(x %in% vars_with_stat){ return(TRUE) diff --git a/R/extract.R b/R/extract.R index 9e33547..f9c269b 100644 --- a/R/extract.R +++ b/R/extract.R @@ -30,15 +30,15 @@ #'\itemize{ #'\item "Cloud-Cover" #'\item "Precipitation-Rain-Duration-Fraction" -#'\item "snow_thickness_lwe" +#'\item "Snow-Thickness-LWE" #'\item "Solar-Radiation-Flux" #'\item "Temperature-Air-2m" -#'\item "2m_dewpoint_temperature" +#'\item "Dew-Point_Temperature-2m" #'\item "Precipitation-Flux" -#'\item "solid_precipitation_duration_fraction" -#'\item "snow_thickness" -#'\item "vapour_pressure" -#'\item "10m_wind_speed" +#'\item "Precipitation-Solid-Duration-Fraction" +#'\item "Snow-Thickness" +#'\item "Vapour-Pressure" +#'\item "Wind-Speed-10m" #'\item "Relative-Humidity-2m" #'} #' @@ -53,15 +53,15 @@ #'\item Min-Night-Time} #' #'# Variables that require statistic -#'For the following variables, only "24_hour_mean" statistic is available, -#'but should be explicitly indicated. +#'For the following variables, only 24 hour mean statistic is available, +#'but should be explicitly indicated as "Mean". #'\itemize{ -#'\item cloud_cover -#'\item snow_thickness_lwe -#'\item 2m_dewpoint_temperature -#'\item snow_thickness -#'\item vapour_pressure -#'\item 10m_wind_speed +#'\item "Cloud-Cover" +#'\item "Snow-Thickness-LWE" +#'\item "Dew-Point_Temperature-2m" +#'\item "Snow-Thickness" +#'\item "Vapour-Pressure" +#'\item "Wind-Speed-10m" #'} #' diff --git a/man/ag5_extract.Rd b/man/ag5_extract.Rd index d4a53b3..7ae7eab 100644 --- a/man/ag5_extract.Rd +++ b/man/ag5_extract.Rd @@ -86,15 +86,15 @@ and location, where the first dates value is the start date and the second the e \itemize{ \item "Cloud-Cover" \item "Precipitation-Rain-Duration-Fraction" -\item "snow_thickness_lwe" +\item "Snow-Thickness-LWE" \item "Solar-Radiation-Flux" \item "Temperature-Air-2m" -\item "2m_dewpoint_temperature" +\item "Dew-Point_Temperature-2m" \item "Precipitation-Flux" -\item "solid_precipitation_duration_fraction" -\item "snow_thickness" -\item "vapour_pressure" -\item "10m_wind_speed" +\item "Precipitation-Solid-Duration-Fraction" +\item "Snow-Thickness" +\item "Vapour-Pressure" +\item "Wind-Speed-10m" \item "Relative-Humidity-2m" } } @@ -111,15 +111,15 @@ and location, where the first dates value is the start date and the second the e } \section{Variables that require statistic}{ -For the following variables, only "24_hour_mean" statistic is available, -but should be explicitly indicated. +For the following variables, only 24 hour mean statistic is available, +but should be explicitly indicated as "Mean". \itemize{ -\item cloud_cover -\item snow_thickness_lwe -\item 2m_dewpoint_temperature -\item snow_thickness -\item vapour_pressure -\item 10m_wind_speed +\item "Cloud-Cover" +\item "Snow-Thickness-LWE" +\item "Dew-Point_Temperature-2m" +\item "Snow-Thickness" +\item "Vapour-Pressure" +\item "Wind-Speed-10m" } }