Skip to contents

Size of an InfoWorks result CSV file depending on the simulated time period between dateFirst and dateLast, the result timestep timestep applied and the number nDataCol of data columns in the file.

Usage

hsIwResultFileSize(
  dateFirst,
  dateLast,
  timestep,
  nDataCol,
  bytesHeader = -1,
  tstamp = "yyyy-mm-dd hh:nn:ss",
  colWidth = 12,
  dbg = FALSE
)

Arguments

dateFirst

first date (day) to be simulated in ISO-format: yyyy-mm-dd

dateLast

last date (day) to be simulated in ISO-format: yyyy-mm-dd

timestep

result timestep in seconds

nDataCol

number of data columns (time-columns excluded) in the InfoWorks result CSV file

bytesHeader

length of header line in bytes

tstamp

string representing an example timestamp

colWidth

width of a data column in bytes

dbg

if TRUE, debug messages are shown

Value

List with elements Bytes, kB, MB, GB giving the requested file size in the according unit.