A R-package for Modeling emission inventories from geographic data.

Figure 1 - A global inventory.

Figure 1 shows an example of global inventory, this emission was generated with the code bellow:

The creation of the emissions follows 3 steps process: pre-processing the input data by geoemiss(), generate the grid and distribute the emission by the sum of interssections of grid and regions by griding(), and save the output and metadata with saveInventory(). Figure 2 shows a diagram of the prosses, the circles represents input and output files, the boxes represents functions, and the gray color are used in optional steps.

Figure 2 - Diagram

Figure 2 includes 3 additional prosses that can be apply to the inventory:

  • The use of an additional layer with a georeferenced immage to improve the distribution inside big flat areas using the possess() function before the griding() function;
  • A way to stack many times to record in one output file with the function stacker() before saveInventory();
  • A way to read and write metada to the final NetCDF file with the function meta().

Figure 2 shows a example of local inventory for two Brazilian states (São Paulo and Rio de Janeiro) using a additional image layer of Images from the Defense Meteorological Satellite Program (DMSP).

Figure 3 - A local inventory with image layer.

generated by the code bellow:

Installation

System dependencies

inventory import functions from ncdf4 for reading model information, raster and sf to process grinded/geographic information and units. These packages need some additional libraries:

To Windows

No additional steps for windows installation.

Detailed instructions can be found at netcdf, libudunits2-dev and sf developers page.

Package installation