NitrogenBudgetWithdrawals: NitrogenBudgetWithdrawals

View source: R/NitrogenBudgetWithdrawals.R

NitrogenBudgetWithdrawalsR Documentation

NitrogenBudgetWithdrawals

Description

calculates projections of Nitrogen Budgets withdrawals for Croplands from a MAgPIE gdx file

Usage

NitrogenBudgetWithdrawals(
  gdx,
  kcr = "sum",
  net = TRUE,
  level = "reg",
  dir = "."
)

Arguments

gdx

GDX file

kcr

"sum" provides the totals over all crops, "kcr" provides outputs by kcr

net

TRUE only provides total net-withdrawals, otherwise all categories are returned (fixation and seed are returned positive, not negative)

level

aggregation level, reg, glo or regglo, cell, grid or iso

dir

for gridded outputs: magpie output directory which contains a mapping file (rds) for disaggregation

Author(s)

Benjamin Leon Bodirsky, Michael Crawford

Examples

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

## End(Not run)


pik-piam/magpie4 documentation built on Dec. 20, 2024, 1:59 p.m.