Prepare ewr results from the EWR tool for use in aggregation
read_and_geo.Rd
This reads in the EWR results given a path and type
(summary or annual),
and pairs them to their geographic information
Arguments
- datapath
path to module results (Often EWR outputs with HydroBOT modifications to format)
- type
character, a grep for the files to choose. The special case 'everything' gets all files
- geopath
sf object with geographic locations matching a column in the data, or path to a csv with gauge locations in lat/long (assumes BOM currently) or a shapefile
- whichcrs
desired crs for the output
- ...
passes
gaugefilter
,scenariofilter
toget_module_output()
. Particularly useful for only processing some of the data at a time (e.g. in parallel)
Value
an sf
dataframe with the desired outputs including scenario
names and gauge or polygon locations as a POINT, POLYGON, or MULTIPOLYGON geometry. Primary purpose is to
prepare data to send to multi_aggregate()