SILOSitesfromPolygon {SWTools} | R Documentation |
Find SILO sites within a polygon
Description
Find SILO sites within a polygon
Usage
SILOSitesfromPolygon(shpFile, ssl = FALSE, buffer = 0)
Arguments
shpFile |
location to a shapefile to search within for SILO sites |
ssl |
See SILODownload, if true if true sets ssl_cipher_list="RC4-SHA" for httr::GET() |
buffer |
distance in km to buffer the shapefile to look for sites outside the catchment The buffer distance is approximate for a couple of reasons: the shapefile is projected to match SILO site coordinates, WGS84 and sf::st_buffer does not correctly buffer longitude/latitude data. sdaf Also the input distance in km is converted to degrees using the conversion at the equator of 0.008. |
Value
a table of site information including site numbers found within the polygon
Examples
## Not run:
Sites=SILOSitesfromPolygon("path/to/shapefile.shp")
SILODownload(Sites$Number,
path=tempdir(),
startdate="20180101",enddate="20200101")
X<-SILOLoad(Sites$Number,path=tempdir())
## End(Not run)
[Package SWTools version 1.0.3 Index]