precip_hour2daily: Precipitation aggregation from hourly to daily

Description Usage Arguments

View source: R/precipAggregate.R

Description

Aggregate hourly precipitation to daily.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
precip_hour2daily(
  start_hour,
  end_hour,
  dirHour,
  inFormat,
  dirOUT,
  outFormat,
  obs_hour = 8,
  min_frac = 0.9,
  time_zone = "Africa/Kigali",
  long_name = "Merged AWS-Radar daily rainfall"
)

Arguments

start_hour, end_hour

start and end time of the period to aggregate same time zone as time_zone, format "YYYY-mm-dd HH:00"

dirHour

full path to the directory containing the NetCDF files

inFormat

format of the input file name. Ex: "precip_adj_%s%s%s%s.nc"

dirOUT

full path to the directory to save the aggregate data

outFormat

format of the output file name. Ex: "precip_adj_%s%s%s.nc"

obs_hour

observation hour in local time. Default 8h for Rwanda

min_frac

minimum fraction of non missing values

time_zone

the time zone of start_time, end_time and the input hourly netCDF files. Options: "Africa/Kigali" or "UTC". Default "Africa/Kigali"

long_name

long name for the NetCDF variable precip


rijaf-iri/mtorwdata documentation built on March 9, 2021, 6:36 a.m.