Learn R Programming

eva3dm (version 0.99.1)

rain: conversion of model precipitation to hourly precipitation

Description

function that converts model accumulated precipitation to hourly precipitation.

Usage

rain(rainc, rainnc, verbose = TRUE)

Value

data.frame time and the hourly precipitation or SpatRaster hourly precipitation

Arguments

rainc

data.frame or SpatRaster with RAINC variable

rainnc

data.frame or SpatRaster with RAINNC variable

verbose

set TRUE to display additional information

Examples

Run this code
times <- seq(as.POSIXct('2024-01-01',tz = 'UTC'),
             as.POSIXct('2024-01-01 04:00:00',tz = 'UTC'),
             by = 'hour')
RNC   <- data.frame(date = times, aa = c(0.149,0.149,0.149,0.149,0.149))
RNNC  <- data.frame(date = times, aa = c(0.919,1.0,1.1,1.1,2.919))
rain(rainc = RNC, rainnc = RNNC)

Run the code above in your browser using DataLab