RandHorseShoe: Function to randomly generate points within a horseshoe-shape

Description Usage Arguments Value Note Examples

Description

Function to randomly generate points within a horseshoe-shape

Usage

1
2
RandHorseShoe(center = c(0, 0), npts = 100, HorseShoeShape, HRatio = 1.5,
  RadRatio = 0.5)

Arguments

center

- Arrary containint the coordinates of the center of circular portion of the horseshoe in decimal degrees

npts

- Integer value indicating the number of points to generate within the horseshoe shape

HorseShoeShape

- Object containing the outline of a horseshoe shape, output from PtsAlgHorseShoe function

HRatio

- The ratio of the lower rectangle portions of the horseshoe to the outer radius of the circular portion of the horseshoe

RadRatio

- The ration of the of the outer to inner radius of the circular part of the horseshoe shape

Value

Returns a 2-dimensional array of decimal degree coordinates within the horseshoe shape and the total area of the shape

Note

HRatio Currently defaults to 3/2 per the PtsAlgHorseShoe() function RadRatio currently defaults to 1/2 per the PtsAlgHorseShoe() function Center currently defaults to c(0,0) as this is always the center of the PtsAlgHorseShoe() function currently Function currently does not take acount of the decreasing surface area moving toward the poles so points closer to the poles will be overrepresented relative to the actual surface area they represent

Examples

1
2
HorseShoeTest<-PtsAlgHorseShoe(z=2000,spacing=1,endAngles=c(-90,90))
RandHorseShoe(center=c(0,0),npts=100,HorseShoeShape=HorseShoeTest)

GeoRange documentation built on May 1, 2019, 8:03 p.m.