Title: | Provide soil organic carbon and biomass data |
---|---|
Description: | mrorganic supports downloading and preparing soil organic carbon and biomass data for further scientific work. |
Authors: | Jan Philipp Dietrich [aut, cre], Pascal Führlich [aut], Hugo Valin [ctb] |
Maintainer: | Jan Philipp Dietrich <[email protected]> |
License: | LGPL-3 | file LICENSE |
Version: | 0.5.6 |
Built: | 2024-11-23 03:18:14 UTC |
Source: | https://github.com/tscheypidi/mrorganic |
mrorganic supports downloading and preparing soil organic carbon and biomass data for further scientific work.
Maintainer: Jan Philipp Dietrich [email protected]
Authors:
Pascal Führlich [email protected]
Other contributors:
Hugo Valin [contributor]
Useful links:
Estimate soil organic carbon content split by land type.
calcBiomassByLandType(subtype)
calcBiomassByLandType(subtype)
subtype |
"aboveground" or "belowground" |
data
Jan Philipp Dietrich
## Not run: a <- calcOutput("BiomassbyLandType", subtype = "aboveground") ## End(Not run)
## Not run: a <- calcOutput("BiomassbyLandType", subtype = "aboveground") ## End(Not run)
Produces a raster with ecoregion information.
calcEcoregions2017Raster(nrows = 720, ncols = 1440)
calcEcoregions2017Raster(nrows = 720, ncols = 1440)
nrows |
Number of rows in the raster produced. |
ncols |
Number of columns in the raster produced. |
A raster with ecoregion information as a data.frame
Pascal Führlich
Convert ESACCI landcover information into area information for selected land types cropland, grassland and other.
calcLandTypeAreas(categories = "CropGrassOther")
calcLandTypeAreas(categories = "CropGrassOther")
categories |
Categories land should be segregated into. Only available options are currently "CropGrassOther" and "CropGrassForestOthernatvegResidual". |
data
Jan Philipp Dietrich
## Not run: a <- calcOutput("LandTypeAreas") ## End(Not run)
## Not run: a <- calcOutput("LandTypeAreas") ## End(Not run)
Aggregate land type area information to a desired resolution
calcLandTypeAreasAggregated(res, zeroValue = 0)
calcLandTypeAreasAggregated(res, zeroValue = 0)
res |
target resolution |
zeroValue |
value for cells with no area. Useful to change to a very small number if the area information should be used as weight. |
data
Jan Philipp Dietrich
## Not run: a <- calcOutput("LandTypeAreas") ## End(Not run)
## Not run: a <- calcOutput("LandTypeAreas") ## End(Not run)
Estimate soil organic carbon content split by land type
calcSOCbyLandType()
calcSOCbyLandType()
data
Jan Philipp Dietrich
## Not run: a <- calcOutput("SOCbyLandType") ## End(Not run)
## Not run: a <- calcOutput("SOCbyLandType") ## End(Not run)
Partition the world into countries with their respective ISO codes
calcWorldCountries()
calcWorldCountries()
data
Patrick v. Jeetze, Jan Philipp Dietrich
## Not run: a <- calcOutput("WorldCountries", aggregate = FALSE) ## End(Not run)
## Not run: a <- calcOutput("WorldCountries", aggregate = FALSE) ## End(Not run)
Bundle function for mrorganic which bundles all relevant outputs and write them to a tgz file.
fullORGANIC(rev)
fullORGANIC(rev)
rev |
data revision |
Use regionmapping = "regionmappingGTAP11.csv")
to produce outputs
for GTAP11 world regions.
Jan Philipp Dietrich
retrieveData
, calcOutput
, readSource
,
setConfig
## Not run: retrieveData("Organic", rev = 2.1, regionmapping = "regionmappingGTAP11.csv") ## End(Not run)
## Not run: retrieveData("Organic", rev = 2.1, regionmapping = "regionmappingGTAP11.csv") ## End(Not run)
Create a plot showing a map.
plotMap(x, name, createPng = FALSE, range = NULL, ...)
plotMap(x, name, createPng = FALSE, range = NULL, ...)
x |
The data to plot as magclass object |
name |
The name/title of the plot/png |
createPng |
If TRUE save plot as png |
range |
range of values for the color bar. If NULL range will be detected automatically |
... |
Further arguments passed to terra::plot |
Read ESACCI data
readESACCI(subtype = "landcover2010")
readESACCI(subtype = "landcover2010")
subtype |
Subtype to be read in |
data
Jan Philipp Dietrich
## Not run: a <- readSource("ESACCI") ## End(Not run)
## Not run: a <- readSource("ESACCI") ## End(Not run)
Read GSOCseq data
readGSOCseq(subtype = "ini")
readGSOCseq(subtype = "ini")
subtype |
data set to use (currently available "ini" and "finalSSM1") |
data
Jan Philipp Dietrich
## Not run: a <- readSource("GSOCseq") ## End(Not run)
## Not run: a <- readSource("GSOCseq") ## End(Not run)
Read Spawn data
readSpawn(subtype)
readSpawn(subtype)
subtype |
Subtype to be read in. Available types are "abovegroundBiomass", "abovegroundBiomassUncertainty", "belowgroundBiomass" and "belowgroundBiomassUncertainty". |
data
Jan Philipp Dietrich
## Not run: a <- readSource("Spawn", "abovegroundBiomass") ## End(Not run)
## Not run: a <- readSource("Spawn", "abovegroundBiomass") ## End(Not run)
Read World Bank Maps
readWorldBankMaps(subtype = "CountryPolygons")
readWorldBankMaps(subtype = "CountryPolygons")
subtype |
data set to use (currently available "CountryPolygons", "CountryBoundaries", "DisputedAreas" and "DisputedAreasBoundaries") |
data
Jan Philipp Dietrich
## Not run: a <- readSource("WorldBankMaps") ## End(Not run)
## Not run: a <- readSource("WorldBankMaps") ## End(Not run)
Enriches a magclass object with ecoregion and region information.
toolAddEcoregions(x, ecoregions, regionmapping)
toolAddEcoregions(x, ecoregions, regionmapping)
x |
A magclass object |
ecoregions |
Ecoregions dataframe, as returned by calcEcoregions2017Raster |
regionmapping |
A regionmapping |
x with additional ecoregion and region information. Spatial subdimensions: c("x", "y", "country", "region", "biome", "country_biome", "region_biome")
Pascal Führlich
Aggregate raster object by land type and return as 0.25degx0.25deg magclass object
toolAggregateByLandType(x, weight)
toolAggregateByLandType(x, weight)
x |
data to be aggregated |
weight |
weight to be used for aggregation (land type) |
data
Jan Philipp Dietrich