Learn R Programming

SpatialVx (version 0.1-5)

locmeasures2dPrep: Set up a list object for locmeasures2d

Description

Sets up a list object to run with locmeasures2d.

Usage

locmeasures2dPrep(Vx.name, Fcst.name, thresholds = NULL, k = NULL, alpha = 0.1,
    bdconst = NULL, p = 2, loc = NULL, qs = NULL, units = NULL)

Arguments

Vx.name, Fcst.name
character giving the name of a verification and forecast field. Must have same dimension as each other.
thresholds
numeric vector giving the threhsold values over which (inclusive) binary fields are created. If NULL, quantiles for each field are calculated. Specifically the 0, 0.1, 0.25, 0.33, 0.5, 0.66, 0.75, 0.9 and 0.95 quantiles.
k
numeric vector for use with the partial Hausdorff distance. For k that are whole numerics or integers >= 1, then the k-th highest value is returned by locmeasures2d. If 0
alpha
numeric giving the alpha parameter for Pratt's Figure of Merit (FOM). See the help file for locperf for more details.
bdconst
numeric giving the cut-off value for Baddeley's delta metric.
p
numeric vector giving one or more values for the parameter p in Baddeley's delta metric. Usually this is just 2.
loc
(optional) n by 2 matrix giving the lon/lat coordinates of the grid points (currently not used).
qs
character vector giving alternative names for the thresholds. If thresholds is NULL and qs is NULL, then this will give the quantiles used.
units
character describing the units for the thresholds.

Value

  • A list object withcomponents:
  • data.namecharacter vector giving the verification and forecast object names.
  • thresholdsn by 2 matrix of thresholds.
  • qssame as argument above.
  • locsame as argument above.
  • unitssame as argument above.
  • xdimnumeric vector of length 2 giving the dimensions of the forecast field (should be the same as the verification field).
  • bdconstsame as argument above.
  • psame as argument above.
  • ksame as argument above.

See Also

locmeasures2d

Examples

Run this code
data( geom000)
  data( geom001)
  hold <- locmeasures2dPrep( "geom000", "geom001", thresholds=c(0.1,50.1), k=4, units="in/100")

Run the code above in your browser using DataLab