A function that receives three netCDF files, and variable name, statistical ensemble member and plot 12 maps, considering 3 RCPs X four periods it in the desired the out put directory in which the output is placed. the first three maps represents the mean of the historical period, and the rest represents the relative change to the historical period

ens_12maps_relative_change(
  netCDF.files,
  variable,
  region,
  landcover,
  stat_var,
  language,
  run_id,
  output_path,
  output_csv
)

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.

stat_var

A string referring to the statistical variable to plot in case the file is ensemble file, for example, "mean","sd","median","max" and "min"

language

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

run_id

A character variable either "2ter", "3ter", or "4ter" 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