formatPstations: Format ground-based precipitation data according to 'SWAT+'...

Description Usage Arguments Value

View source: R/format_stations.R

Description

Format ground-based precipitation data according to 'SWAT+' requirements

Usage

1
formatPstations(data, metadata, output)

Arguments

data

zoo object with the precipitation time series of all stations. The dates should have the format %Y-%m-%d.

metadata

data.frame object containing the metadata of the precipitation stations. This data.frame must have five fields in the following specific order: LONG: the longitude coordinates in WGS84; and ELEVATION: the elevation of the station in metres.

output

character object with the path of the directory where the data will be stored.

Value

This function formats the ground-based precipitation stations data according to SWAT+ requirements.


obaezvil/swatLUC documentation built on Dec. 22, 2021, 3:23 a.m.