Learn R Programming

wasim (version 1.1.2)

convert_q_units: Convert discharge units

Description

converts discharge data of a given file (infile) in WASIM-format into output file (outfile) converting discharge from [m3/s] to [mm] (convert\_to="specific") or vice versa (convert\_to="absolute") using the file gauges\_area\_file containing the catchment areas and a timestep of timestep\_sec seconds

Usage

convert_q_units (infile, outfile, gauges_area_file, convert_to, timestep_sec)

Arguments

infile
name of file holding discharge data in WASIM format
outfile
name of file to produce containing the converted discharge
gauges_area_file
name of file containing tab-separated data (GAUGE FOREIGN\_ID SUBBAS\_ID AREA\_SUBBAS\_KM2 AREA\_UPSTREAM\_KM2)
convert_to
"specific": convert m3/s to mm; "absolute": convert mm to m3/s
timestep_sec
length of timestep in inout file in seconds

Value

no return value

See Also

read.results

Examples

Run this code
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

Run the code above in your browser using DataLab