Skip to contents

This function deaccumulates precipitation from WRF output files given by their location and writes the deaccumulated precipitation to a new file.

Usage

rWRF_deaccumulate_precipitation_data(
  fileSname,
  RAINC = TRUE,
  RAINNC = TRUE,
  output.path
)

Arguments

fileSname

The name of the WRF output files, for only one domain e.g., wrfout_d01

RAINC

Logical, if Cumulus precipitation should be included or not.

RAINNC

Logical, if all grid cell precipitation should be included or not.

output.path

The directory path where the output file will be written.

Value

One file for each domain including the deaccumulated precipitation