Skip to contents

This reads in the EWR results given a path and type (summary or annual), and pairs them to their geographic information

Usage

read_and_geo(datapath, type, geopath, whichcrs = 4283, ...)

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 to get_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()