Air pollution emissions in Helsinki: Difference between revisions

From Opasnet
Jump to navigation Jump to search
(→‎Calculations: now seems to work)
Line 26: Line 26:
The actual data: (key is unique to every download instance and is generated when the above link is opened) - http://cl1.opasnet.org/opasnet_base_2/index.php?key=8dYqLbtppz4HM7sYaAyj4t6S49jQNRWJ
The actual data: (key is unique to every download instance and is generated when the above link is opened) - http://cl1.opasnet.org/opasnet_base_2/index.php?key=8dYqLbtppz4HM7sYaAyj4t6S49jQNRWJ


<rcode name="fuelUse" label="Initiate ovariable fuelUse" embed=1>
<rcode name="fuelUse" label="Initiate ovariable fuelUse (for developers only)" embed=1>
# This is code Op_en7923/fuelUse on page [[Air pollution emissions in Helsinki]]
# This is code Op_en7923/fuelUse on page [[Air pollution emissions in Helsinki]]
library(OpasnetUtils)
library(OpasnetUtils)
Line 37: Line 37:
   ),
   ),
   formula = function(...) {
   formula = function(...) {
     colnames(HSYdata@output)[colnames(HSYdata@output)=="CO2"] <- "Result"
     HSYdata$CO2 <- NULL
    HSYdata$Result <- as.numeric(as.character(HSYdata$Result))
    HSYdata$HSYdataResult <- NULL
     levels(HSYdata$Sector) <- tolower(levels(HSYdata$Sector))
     levels(HSYdata$Sector) <- tolower(levels(HSYdata$Sector))
     levels(HSYdata$Consumer) <- tolower(levels(HSYdata$Consumer))
     levels(HSYdata$Consumer) <- tolower(levels(HSYdata$Consumer))
Line 51: Line 49:
</rcode>
</rcode>


<rcode name="emission" label="Initiate ovariable emission" embed=1>
<rcode name="emission" label="Initiate ovariable emission (for developers only)" embed=1>
# This is code Op_en7923/emission on page [[Air pollution emissions in Helsinki]]
# This is code Op_en7923/emission on page [[Air pollution emissions in Helsinki]]
library(OpasnetUtils)
library(OpasnetUtils)
Line 84: Line 82:


ggplot(emission@output, aes(x=Year, weight=emissionResult, fill=Sector))+geom_bar()+
ggplot(emission@output, aes(x=Year, weight=emissionResult, fill=Sector))+geom_bar()+
   facet_wrap(~City, scales="free_y")
   facet_wrap(~City, scales="free_y")+
  theme_gray(base_size=20)+
  labs(y="CO2eq emissions (kton/a)")


opbase.upload(
opbase.upload(

Revision as of 12:11, 29 November 2018



Air pollution emissions in Helsinki estimate direct air pollution emissions (including CO2eq) from the Helsinki area.

Question

What are the amounts of air pollution (notably CO2eq and PM2.5) emitted from the Helsinki area (Helsinki specifically but also other municipalities of the Helsinki Metropolitan Area)?

Answer

Rationale

Dependencies

Calculations

The answer metadata can be obtained by using link: http://cl1.opasnet.org/opasnet_base_2/index.php?ident=op_en7923.answer&act=0

The actual data: (key is unique to every download instance and is generated when the above link is opened) - http://cl1.opasnet.org/opasnet_base_2/index.php?key=8dYqLbtppz4HM7sYaAyj4t6S49jQNRWJ

+ Show code

+ Show code

+ Show code

See also

Keywords

References