extractQPEData: Extract Computed QPE

Description Usage Arguments

View source: R/extractComputedQPE.R

Description

Extract Computed QPE for single scan and hourly

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
extractQPEData(
  start_time,
  end_time,
  dirOUT,
  qpe_dir = "",
  qpe_format = "precip_%s%s%s%s%s%s.nc",
  extr_type = "points",
  points = NULL,
  padxy = c(0, 0),
  shapefiles = NULL,
  shp_attr_name = NULL,
  shp_attr_values = NULL,
  sp_average = TRUE
)

Arguments

start_time, end_time

The start and end time same time zone as time_zone, single scan format "YYYY-mm-dd HH:MM", hourly format "YYYY-mm-dd HH:00"

dirOUT

Full path to folder to save the extracted QPE

qpe_dir

Full path to folder containing the QPE netCDF files

qpe_format

File name format of the netCDF files. For QPE from single scan, must have 6 "%s" and 4 "%s" for hourly data

extr_type

The extraction support, "points" or "shapefiles"

points

A data frame of the points to extract. Data frame with column names "id", "longitude" and "latitude"

padxy

If extr_type is "points", a vector of the padding to use in number of pixels, in order "lon", "lat". Default c(0, 0), no padding applied.

shapefiles

If extr_type is "shapefiles", full path to the shapefiles (with the extension ".shp") to use to extract the data

shp_attr_name

If extr_type is "shapefiles", attribute to be used to extract the data

shp_attr_values

If extr_type is "shapefiles", vector of the values for shp_attr_name to extract. Default NULL, extract all polygons.

sp_average

If extr_type is "shapefiles", if TRUE the extracted data are spatially average over the polygons of the shapefiles


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