ipeaGIT / gtfs2emis

R package to estimate public transport emissions based on GTFS data
https://ipeagit.github.io/gtfs2emis/
Other
28 stars 2 forks source link

Add type of vehicle in between export patterns in ef_brazil #33

Closed Joaobazzo closed 3 years ago

Joaobazzo commented 4 years ago

We currently have this pattern of output

> gtfs2emis::ef_brazil(pollutant = "CO",
+                      veh_type = "BUS_URBAN_D",
+                      years = 2010)
Units: [g/km]
      CO_2010
[1,] 1.827202

the columns name should look something like this

      CO_BUS_URBAN_D_2010
[1,] 1.827202

or even

      CO_BUS-URBAN-D_2010
[1,] 1.827202
Joaobazzo commented 4 years ago

ef_europe would look like

CO_Urban Buses Standard 15-18t_II_Diesel_SCR

ibarraespinosa commented 4 years ago

I would recommend to use the argument ef_cetesb(scale = "tunnel"). If light vehicles there is a significative increase on emission factors.

ibarraespinosa commented 4 years ago

done already here https://github.com/rafapereirabr/gtfs2emis/blob/be28043c0e6cef04b7c0cef6e961273478c6ede6/R/ef_brazil.R#L109

Joaobazzo commented 4 years ago

that's how it could look like @rafapereirabr @pedro-andrade-inpe list=FALSE would be the default parameter

> ef_brazil(pollutant = c("CO","PM"), veh_type = "BUS_URBAN_D",years = "2011",list = FALSE)
Units: [g/km]
      CO_2011   PM_2011
[1,] 4.858934 0.2234033

> ef_brazil(pollutant = c("CO","PM"), veh_type = "BUS_URBAN_D",years = "2011",list = TRUE)
$EF
Units: [g/km]
         [,1]      [,2]
[1,] 4.858934 0.2234033

$pollutant
[1] "CO" "PM"

$veh_type
[1] "BUS_URBAN_D" "BUS_URBAN_D"

$years
[1] "2011" "2011"
Joaobazzo commented 4 years ago

emis_post function would be more flexible. It would have analysis for the following problems