Skip to content

Commit

Permalink
add china
Browse files Browse the repository at this point in the history
  • Loading branch information
ibarraespinosa committed Jun 16, 2023
1 parent cfe7bdd commit 18ac03c
Show file tree
Hide file tree
Showing 41 changed files with 5,309 additions and 24 deletions.
12 changes: 11 additions & 1 deletion R/get_project.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#' eu_bu_chem \tab Bottom-up chemical mechanisms\tab EEA 2019\tab .rds\cr
#' eu_bu_chem_simple\tab Bottom-up chemical mechanisms 7 veh\tab EEA 2019\tab .rds\cr
#' china_bu_chem \tab Bottom-up chemical mechanisms\tab MEE China\tab .rds\cr
#' china_bu_chem_1h \tab Bottom-up chemical mechanisms\tab MEE China\tab .rds\cr
#' }
#' @param url String, with the URL to download VEIN project
#' @note All projects include option to apply survival functions
Expand Down Expand Up @@ -228,7 +229,16 @@ get_project <- function(directory,
utils::untar(tarfile = tf, exdir = directory)
message("Your directory for vehicular emissions is in ", directory)

# curitiba ####
# china_bu_chem_realtime ####
} else if(case %in% c("china_bu_chem_1h")){
URL <- "https://raw.githubusercontent.com/atmoschem/vein/master/projects/china_bu_chem_realtime.tar.gz"
tf <- paste0(tempfile(), ".tar.gz")
utils::download.file(url = URL,
destfile = tf)
utils::untar(tarfile = tf, exdir = directory)
message("Your directory for vehicular emissions is in ", directory)

# curitiba ####
} else if(case %in% c("curitiba")){
URL <- "https://gitlab.com/ibarraespinosa/veinextras/-/raw/master/curitiba_all/curitiba.tar.gz"
tf <- paste0(tempfile(), ".tar.gz")
Expand Down
2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pkgdown: 2.0.7
pkgdown_sha: ~
articles:
basics: basics.html
last_built: 2023-06-15T06:01Z
last_built: 2023-06-16T06:49Z
urls:
reference: http://atmoschem.github.io/vein/reference
article: http://atmoschem.github.io/vein/articles
Expand Down
Binary file modified docs/reference/celsius-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 21 additions & 21 deletions docs/reference/celsius.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/get_project.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/get_project.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added projects/china_bu_chem_realtime.tar.gz
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
,sergio,sergio-pc,18.11.2022 11:08,file:///home/sergio/.config/libreoffice/4;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
,sergio,sergio-pc,18.11.2022 11:38,file:///home/sergio/.config/libreoffice/4;
16 changes: 16 additions & 0 deletions projects/china_bu_chem_realtime/config/clean.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# apagando dados
a <- list.files(path = "config", pattern = ".rds", full.names = T)
file.remove(a)

unlink("csv", recursive = T)
unlink("emi", recursive = T)
unlink("images", recursive = T)
unlink("notes", recursive = T)
unlink("post", recursive = T)
unlink("wrf/wrfc*")
unlink("veh", recursive = T)


system(paste0("tar -caf ", basename(getwd()), ".tar.gz ."))
system(paste0("mv ", basename(getwd()), ".tar.gz ../"))
file.remove(".Rhistory")
Loading

0 comments on commit 18ac03c

Please sign in to comment.