GetTimeZone: Return the time zone for any point.

Description Usage Arguments Value See Also Examples

View source: R/get_poly.R

Description

GetTimeZone takes a dataframe of locations containing at least two fields of latitude and longitude, overlays the points with a timezone shapefile (can be downloded from http://efele.net/maps/tz/world/), and adds the timeZone as a field to the input dataframe.

Usage

1
2
3
GetTimeZone(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 time zone.

See Also

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

Examples

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

## End(Not run)

mccreigh/rwrfhydro documentation built on May 12, 2018, 3:08 a.m.