extractCAPPI: Extract CAPPI

Description Usage Arguments

View source: R/extractCAPPI.R

Description

Extract CAPPI for single scan over a set of points

Usage

1
2
3
4
5
6
7
8
9
extractCAPPI(
  cappi_dir,
  start_time,
  end_time,
  fields,
  points,
  padxy = c(0, 0),
  fun_sp = "mean"
)

Arguments

cappi_dir

Full path to folder containing the CAPPI netCDF files

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"

fields

A vector of fields to extract

points

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

padxy

A vector of the padding to use in number of pixels, in order "lon", "lat". Default c(0, 0), no padding applied.

fun_sp

Character, function to be used for the padding. Options: "mean", "median", "max", "min"

@return A data.frame


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