Skip to content
Snippets Groups Projects
Commit f2609637 authored by Svajunas Plunge's avatar Svajunas Plunge
Browse files

warning msg for rhum in percentage

parent 5da783d0
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,13 @@ plot_climate_annual <- function(sim_verify) {
rhum_mean = mean(rhum)) %>%
pivot_longer(cols = -yr)
rhum_check <- unique(rhum_tbl$value[!is.na(rhum_tbl$value)])
if(length(rhum_check) == 1 && rhum_check == 0.99){
warning("Relative humidity model output is consistently 0.99. Please check the input data.
It is likely that your model input is in the wrong units. Relative humidity
input should be in fractional units (0-1), not percentage!")
}
gg_rhum <- ggplot() +
geom_errorbarh(data = rhum_tbl, aes(xmax = yr + 0.5, xmin = yr - 0.5,
y = value, height = 0, col = name),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment