NitrogenBudget: NitrogenBudget

View source: R/NitrogenBudget.R

NitrogenBudgetR Documentation

NitrogenBudget

Description

calculates projections of Nitrogen Budgets for Croplands (Tg Nr per) from a MAgPIE gdx file

Usage

NitrogenBudget(
  gdx,
  include_emissions = FALSE,
  level = "reg",
  dir = ".",
  debug = FALSE,
  cropTypes = FALSE
)

Arguments

gdx

GDX file

include_emissions

TRUE also divides the N surplus into different emissions

level

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

dir

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

debug

debug mode TRUE makes some consistency checks between estimates for different resolutions.

cropTypes

FALSE for aggregate results; TRUE for crop-specific results

Author(s)

Benjamin Leon Bodirsky, Michael Crawford, Edna J. Molina Bacca, Florian Humpenoeder

Examples

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

## End(Not run)


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