ceip_to_raster: Converts text based data from the Centre on Emission...

Description Usage Arguments Value Examples

Description

Converts text based data from the Centre on Emission Inventories and Projections (CEIP) into raster grid data (geotiff or raster object in the R workspace)

Usage

1
2
3
ceip_to_raster(df, year = 2000:2016, pollutant = "SOx", sector = "A",
  country = NULL, out_dir = tempdir(), trim = TRUE,
  internal = TRUE)

Arguments

df

CEIP data frame generated by ceip_read()

year

which years to cover (default = 2000:2016)

pollutant

emission values to include (default = "NOx")

sector

sector to visualize

country

country to visualize, if NULL all (default = NULL)

out_dir

directory where to store the geotiff if written to file (default = tempdir())

trim

shrink map to the area covered by data (default = TRUE)

internal

bolean TRUE / FALSE, write output to disk or return raster stack to R workspace

Value

Returns a geotiff written to disk or raster stack returned to the R workspace when written to disk the out_dir location is used.

Examples

1
2
3
4
## Not run: 
ceip_grid()

## End(Not run)

khufkens/ceipr documentation built on May 20, 2019, 11:58 a.m.