Skip to content

Commit

Permalink
Merge pull request #50 from deleip/usdaUpdate
Browse files Browse the repository at this point in the history
Usda update
  • Loading branch information
deleip authored Nov 5, 2024
2 parents da0b69c + 5313668 commit f3e0e57
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '12899964'
ValidationKey: '13020150'
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
- 'Warning: namespace ''.*'' is not available and has been replaced'
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cff-version: 1.2.0
message: If you use this software, please cite it using the metadata from this file.
type: software
title: 'mrland: MadRaT land data package'
version: 0.64.4
version: 0.65.0
date-released: '2024-11-04'
abstract: The package provides land related data via the madrat framework.
authors:
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: mrland
Title: MadRaT land data package
Version: 0.64.4
Version: 0.65.0
Date: 2024-11-04
Authors@R: c(
person("Jan Philipp", "Dietrich", , "[email protected]", role = c("aut", "cre")),
Expand Down
16 changes: 5 additions & 11 deletions R/fullMAGPIE.R
Original file line number Diff line number Diff line change
Expand Up @@ -219,20 +219,18 @@ fullMAGPIE <- function(rev = numeric_version("0.1"), dev = "") {
round = 4, file = "f36_unspecified_subsidies.csv")
calcOutput("NonMAgPIEFactorCosts", subtype = "missingVoP", years = seq(1965, 2150, 5),
round = 4, file = "f36_nonmagpie_factor_costs.csv")
calcOutput("AgCapLabourShare", round = 2, aggregate = TRUE, years = c(1995, 2000, 2005, 2010),
file = "f36_historical_share.csv")
calcOutput("RegFactorShare", datasource = "USDA", factor = "cap", round = 4, aggregate = FALSE,
file = "f36_regression_cap_share.csv")

# 38 factor costs
calcOutput("FAOYield", cut = 0.98, years = 1995, round = 2, file = "f38_region_yield.csv")
# Question: Is f38_region_yield used? And why not f14_region_yield?
calcOutput("FacReq", round = 2, aggregate = "GLO", years = 2005, file = "f38_fac_req_fao.csv")
calcOutput("FacReq", round = 2, aggregate = TRUE, file = "f38_fac_req_fao_regional.cs4")
calcOutput("AgCapLabourShare", round = 2, aggregate = TRUE, years = c(1995, 2000, 2005, 2010),
file = "f38_historical_share.csv")
calcOutput("RegFactorShare", datasource = "USDA", factor = "cap", round = 4, aggregate = FALSE,
calcOutput("AgCapLabourShare", round = 4, aggregate = FALSE, years = c(1995, 2000, 2005, 2010),
file = "f38_historical_share_iso.csv")
calcOutput("RegFactorShare", datasource = "USDA", round = 4, aggregate = FALSE,
file = "f38_regression_cap_share.csv")
calcOutput("FactorCosts", aggregate = FALSE, years = c(1995, 2000, 2005, 2010), round = 2,
file = "f38_hist_factor_costs_iso.csv")

# 41 Area Equipped for Irrigation
# f41_irrig(j) should be read out of calcAreaEquippedForIrrigation()
Expand Down Expand Up @@ -321,10 +319,6 @@ fullMAGPIE <- function(rev = numeric_version("0.1"), dev = "") {
calcOutput("LivestockProductivity", years = magYears, round = 4, file = "f70_livestock_productivity.cs3")
calcOutput("SlaughterFeedShare", years = magYears, round = 4, file = "f70_slaughter_feed_share.cs4")
calcOutput("PYieldSlope", round = 2, file = "f70_pyld_slope_reg.cs4")
calcOutput("AgCapLabourShare", round = 2, aggregate = TRUE, years = c(1995, 2000, 2005, 2010),
file = "f70_hist_cap_share.csv")
calcOutput("RegFactorShare", datasource = "USDA", factor = "cap", round = 4, aggregate = FALSE,
file = "f70_cap_share_reg.csv")
calcOutput("Production", round = 4, products = "kli", aggregate = TRUE, years = seq(1995, 2010, 5),
file = "f70_hist_prod_livst.cs3")
calcOutput("FactorCostsLivst", round = 4, aggregate = TRUE, years = seq(1995, 2015, 5),
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MadRaT land data package

R package **mrland**, version **0.64.4**
R package **mrland**, version **0.65.0**

[![CRAN status](https://www.r-pkg.org/badges/version/mrland)](https://cran.r-project.org/package=mrland) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3822083.svg)](https://doi.org/10.5281/zenodo.3822083) [![R build status](https://github.com/pik-piam/mrland/workflows/check/badge.svg)](https://github.com/pik-piam/mrland/actions) [![codecov](https://codecov.io/gh/pik-piam/mrland/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/mrland) [![r-universe](https://pik-piam.r-universe.dev/badges/mrland)](https://pik-piam.r-universe.dev/builds)

Expand Down Expand Up @@ -39,7 +39,7 @@ In case of questions / problems please contact Jan Philipp Dietrich <dietrich@pi

To cite package **mrland** in publications use:

Dietrich J, Mishra A, Weindl I, Bodirsky B, Wang X, Baumstark L, Kreidenweis U, Klein D, Steinmetz N, Chen D, Humpenoeder F, von Jeetze P, Wirth S, Beier F, Hoetten D, Sauer P, Tommey J (2024). _mrland: MadRaT land data package_. doi:10.5281/zenodo.3822083 <https://doi.org/10.5281/zenodo.3822083>, R package version 0.64.4, <https://github.com/pik-piam/mrland>.
Dietrich J, Mishra A, Weindl I, Bodirsky B, Wang X, Baumstark L, Kreidenweis U, Klein D, Steinmetz N, Chen D, Humpenoeder F, von Jeetze P, Wirth S, Beier F, Hoetten D, Sauer P, Tommey J (2024). _mrland: MadRaT land data package_. doi: 10.5281/zenodo.3822083 (URL: https://doi.org/10.5281/zenodo.3822083), R package version 0.65.0, <URL: https://github.com/pik-piam/mrland>.

A BibTeX entry for LaTeX users is

Expand All @@ -48,8 +48,8 @@ A BibTeX entry for LaTeX users is
title = {mrland: MadRaT land data package},
author = {Jan Philipp Dietrich and Abhijeet Mishra and Isabelle Weindl and Benjamin Leon Bodirsky and Xiaoxi Wang and Lavinia Baumstark and Ulrich Kreidenweis and David Klein and Nele Steinmetz and David Chen and Florian Humpenoeder and Patrick {von Jeetze} and Stephen Wirth and Felicitas Beier and David Hoetten and Pascal Sauer and Jake Tommey},
year = {2024},
note = {R package version 0.64.4},
url = {https://github.com/pik-piam/mrland},
note = {R package version 0.65.0},
doi = {10.5281/zenodo.3822083},
url = {https://github.com/pik-piam/mrland},
}
```

0 comments on commit f3e0e57

Please sign in to comment.