convert_q_units {wasim} | R Documentation |
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
convert_q_units (infile, outfile, gauges_area_file, convert_to, timestep_sec)
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 |
no return value
Till Francke
##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets.