A function that receives three netCDF files, and variable name, statistical ensemble member and plot boxplots of 4 different period and place it in the desired the out put directory in which the output is placed.

exp_boxplots(
  netCDF.files,
  variable,
  region,
  landcover,
  y.axis.limits = NA,
  language,
  run_id,
  output_path,
  output_csv = NULL
)

Arguments

netCDF.files

The netCDF files that contain similar simulation variables. They should be provided including the full path to the files

variable

inside these netCDF files, e.g., AET

region

A string referring to the region to plot; "total", "Vogtlandkreis", "Burgenlandkreis", "Greiz", and "Altenburger Land".

landcover

A numeric variable indicating which land cover should be considered. To consider all land cover give 1000.

y.axis.limits

A vector of length 2L to produce all plots with similar y axis limits.

language

A character variable either "EN" or "DE", to specify the languages of plots

run_id

A character variable either "2ter", "3ter", "4ter", or "6ter" #' specifying the which run is used to produce the ensemble.

output_path

A string pointing to the output directory, it should end with "/"

output_csv

A string pointing to the output directory for the csv file that is produced by pre-processing netCDF files

Value

PNG

Author

Ahmed Homoudi