water_avail: water_avail

View source: R/water_avail.R

water_availR Documentation

water_avail

Description

reads available water from a MAgPIE gdx file

Usage

water_avail(
  gdx,
  file = NULL,
  level = "reg",
  dir = ".",
  sources = NULL,
  sum = TRUE,
  digits = 4
)

Arguments

gdx

GDX file

file

a file name the output should be written to using write.magpie

level

spatial level of aggregation: "cell" (cellular), "reg" (regional), "glo" (global), "regglo" (regional and global) or any other aggregation level defined in superAggregate

dir

directory for files necessary for disaggregation

sources

Vector of water sources that shall be obtained. NULL for all sources

sum

Sum the contribution of different sources (TRUE) or display them individually (FALSE)

digits

integer. For rounding of the return values

Value

A MAgPIE object containing the available water (km^3)

Author(s)

Markus Bonsch, Felicitas Beier

Examples

## Not run: 
x <- water_avail(gdx)

## End(Not run)

pik-piam/magpie4 documentation built on May 7, 2024, 11:13 p.m.