Learn R Programming

wasim (version 1.0)

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