GetRfc: Return the RFC name for any point.

Description Usage Arguments Value See Also Examples

Description

GetRfc takes a dataframe of points containing at least two fields of latitude and longitude, overlays the points with RFC shapefile, and adds the RFC name as a field to the input dataframe.

Usage

1
2
3
GetRfc(points,
  proj4 = "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0",
  parallel = FALSE)

Arguments

points

A dataframe of the points. The dataframe should contain at least two fields: "latitude" and "longitude".

proj4

Character: Projection to be used for points's dataframe. (DEFAULT = "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0")

parallel

Logical (DEFAULT= FALSE)

Value

Dataframe with an extra column containing the RFC name.

See Also

Other geospatial: ExportGeogrid, GetGeogridIndex, GetGeogridSpatialInfo, GetPoly, GetProj, GetTimeZone, PolyToRaster

Examples

1
2
3
4
5
## Not run: 
sg <- SelectGhcnGauges(countryCode="US",networkCode="C")[1:100,]
sg <- GetRfc(sg)

## End(Not run)

mccreigh/rwrfhydro documentation built on Feb. 28, 2021, 1:53 p.m.