vein

  • build: Travis-CI Build
Status AppVeyor Build
Status Coverage
Status
  • cran: CRAN_Status_Badge CRAN
Downloads Package
Status CRAN/METACRAN
  • doi: DOI
  • github: Github
Stars GitHub code size in
bytes GitHub
issues

    GitHub commit
activity R build
status

Vehicular Emissions INventories (VEIN)

What is new?

  • Added OpenMP AGAIN and also, imported dotCall64 to avoid copying
  • New VEIN project: sebr_cb05co2 covers SP, MG, RJ with CB05+CO2 for 2019 and amazon2014.
  • NH3 in ef_cetesb
  • updated VOC speciation for Brazil

New in VEIN?

No worries! Just install R, Rstudio and then

System requirements

vein imports functions from spatial packages listed below. In order to install these packages, firstly the user must install the requirements mentioned here.

Installation

VEIN can be installed via CRAN or github

install.packages("vein")

gitlab (faster than github)

remotes::install_gitlab("ibarraespinosa/vein")

github

remotes::install_github("atmoschem/vein")

1. get a project (easier)

At the moment, most of the projects covers Brazilian regions, but I will include China, Europe or USA approaches as soon as I can.

Use the function get_project and read the documentation.

  • R build
status
  • R build
status
  • R build
status
  • R build
status
  • R build
status
  • R build
status
  • R build
status
library(vein)
?get_project
get_project(directory = "awesome_city")

The structure of the new directory “awesome_city” is:

awesome_city
├── config
│   ├── clean.R
│   ├── config.R
│   ├── inventory.xlsx
│   └── packages.R
├── main.R
├── main.Rproj
├── network
│   ├── net.gpkg
│   └── net.rds
├── scripts
│   ├── evaporatives.R
│   ├── exhaust.R
│   ├── fuel_eval.R
│   ├── net.R
│   ├── pavedroads.R
│   ├── plots.R
│   ├── post.R
│   ├── traffic.R
│   └── wrf.R
└── wrf
└── wrfinput_d02

You have to open the file main.Rproj with Rstudio and then open and run main.R

To run main.R you will need these extra packages:

  • ggplot2
  • readxl
  • eixport (If you plan to generate WRF Chem emissions file)

If you do not have them already, you can install:

install.packages(c("ggplot2", "readxl", "eixport"))

Too complicated? Watch a YouTube

English

Portuguese