Vein
R+Fortran+OpenMP package to estimate Vehicular Emissions INventories VEIN.
Install / Use
/learn @atmoschem/VeinREADME
VEIN <img src="man/figures/logo.png" align="right" alt="" width="220" />
- build:
- cran:
- doi:
- github:
<!--  -->
Vehicular Emissions INventories (VEIN)
<figure> <img src="https://user-images.githubusercontent.com/27447280/234115392-b1c891ff-474d-40a3-b9a7-e816ded9bc70.gif" alt="vein" /> <figcaption aria-hidden="true">vein</figcaption> </figure>TODO
- Include speed functions with Fortran
- Add EF from HBEFA?
- See issues GitHub
- Second edition of my book
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
CRAN
VEIN can be installed via CRAN or github
install.packages("vein")
GitHub
remotes::install_github("atmoschem/vein")
or if you have a 32 bits machine
install_github("atmoschem/vein",
INSTALL_opts = "--no-multiarch")
Run with a project
Use the function get_project and read the documentation, there you can see more projects as well.
library(vein)
awesome_city <- tempdir()
awesome_city
#> [1] "/tmp/RtmpIMx9it"
get_project(directory = awesome_city,
case = "brazil_bu_chem")
#> Your directory is in /tmp/RtmpIMx9it
system(paste0("tree ", awesome_city))
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"))
Check the projects here
<figure> <img src="https://ibarraespinosa.github.io/2025CU/figuras/vein_projects.jpg" alt="vein proejcts" /> <figcaption aria-hidden="true">vein proejcts</figcaption> </figure>Too complicated? Watch a YouTube
<iframe width="560" height="315" src="https://www.youtube.com/embed/tHSWIjg26vg" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen> </iframe> <iframe width="560" height="315" src="https://www.youtube.com/embed/6-07Y0Eimng" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen> </iframe>Check some of my presentations
Thanks and enjoy VEIN!
Citation
If you use VEIN, please, cite it (BIBTEX, ENDNOTE):
Ibarra-Espinosa, S., Ynoue, R., O’Sullivan, S., Pebesma, E., Andrade, M. D. F., and Osses, M.: VEIN v0.2.2: an R package for bottom-up vehicular emissions inventories, Geosci. Model Dev., 11, 2209-2229, https://doi.org/10.5194/gmd-11-2209-2018, 2018.
@article{gmd-11-2209-2018,
author = {Ibarra-Espinosa, S. and Ynoue, R. and O'Sullivan, S. and Pebesma, E. and Andrade, M. D. F. and Osses, M.},
title = {VEIN v0.2.2: an R package for bottom--up vehicular emissions inventories},
journal = {Geoscientific Model Development},
volume = {11},
year = {2018},
number = {6},
pages = {2209--2229},
url = {https://gmd.copernicus.org/articles/11/2209/2018/},
doi = {10.5194/gmd-11-2209-2018}
}
<div id="metrics-365-60926-crossref"
class="metrics-tile metrics-tile-crossref low-opacity">
<a href="javascript:void(0);" title="Toggle crossref metric details">
<img class="metrics-tile-image" alt="" src="https://www.geoscientific-model-development.net/metrics_logo_crossref.png">
</a>
<div class="metrics-tile-footer">
<a href="javascript:void(0);" title="Toggle crossref metric details">50</a>
</div> </div>Special thanks to all the contributors
Communications, doubts etc
- Earth-Sciences on Stackoverflow, tag vein-r-package
- Drop me an email sergio.ibarraespinosa@colorado.edu or zergioibarra@hotmail.com (你好中国朋友 - Hello Chinese friends!)
- Check the group on GoogleGroups Group.
Issues
If you encounter any issues while using VEIN, please submit your issues to: https://github.com/atmoschem/vein/issues/ If you have any suggestions just let me know to sergio.ibarra@usp.br.
Contributing
Please, read this guide. Contributions of all sorts are welcome, issues and pull requests are the preferred ways of sharing them. When contributing pull requests, please follow the Google’s R Style Guide.
Note for non-english and anaconda users
Sometimes you need to install R and all dependencies and a way for doing that is using anaconda. Well, as my system is in portuguese, after installing R using anaconda it changed the decimal character to ‘,’. In order to change it back to english meaning decimal separator as ‘.’, I added this variable into the .bashrc
nano ~/.bashrc
export Lang=C
More details on StackOverflow
<!-- You can learn more about VEIN reading the documentation in [PDF](https://cran.r-project.org/web/packages/vein/vein.pdf), [online](https://atmoschem.github.io/vein/), reading the book [online](https://ibarraespinosa.github.io/VEINBOOK/), or buy it in [Kindle](https://www.amazon.com/VEINBOOK-Estimating-vehicular-emissions-package-ebook-dp-B07L7XRFKC/dp/B07L7XRFKC/ref=mt_kindle?_encoding=UTF8&me=&qid=) or [Paperback](https://www.amazon.com/gp/product/1791571158?pf_rd_p=1581d9f4-062f-453c-b69e-0f3e00ba2652&pf_rd_r=EMDPZM3G7BWCHAD9F4QP) --> <!--  -->Stargazers
<p> <a href="https://github.com/atmoschem/vein/stargazers"> <img src="http://reporoster.com/stars/dark/atmoschem/vein"/> </a> </p>Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
