Skip to contents

Export water budget.

Supported formats are "csv" (default) or "nc" (NetCDF).

Usage

write_recharge_results(obj, water_budget, output_dir = tempdir(), ...)

# S3 method for default
write_recharge_results(obj, water_budget, output_dir = tempdir(), ...)

# S3 method for hydrobudget
write_recharge_results(
  obj,
  water_budget,
  output_dir = tempdir(),
  format = "csv",
  input_rcn = NULL,
  names = list(lon = list(longname = "Longitude", unit = "deg"), lat = list(longname =
    "Lattitude", unit = "deg"), time = list(longname =
    "Month since start of the water budget", unit = "month")),
  ...
)

Arguments

obj

The recharge object.

water_budget

The computed water budget.

output_dir

The output directory where result files will be written. Default is a temporary directory.

...

Other arguments passed to methods

format

The file output format. Use "nc" for NetCDF format. Default is "csv".

input_rcn

The RCN values. Input can be a data.frame/data.table or a path to a data file.

names

The long names and units of the NetCDF dimensions.

Value

(Invisible) the output directory.