| rasterSource | R Documentation |
Calculate the spatial distribution by a raster
rasterSource(r, grid, nlevels = "all", conservative = TRUE, verbose = TRUE)
r |
input raster object |
grid |
grid object with the grid information |
nlevels |
number of vertical levels off the emission array |
conservative |
TRUE (default) to conserve total mass, FALSE to conserve flux |
verbose |
display additional information |
Returns a matrix
Example data is from Defense Meteorological Satellite Program (DMSP).
gridInfo and lineSource
grid <- gridInfo(paste(system.file("extdata", package = "EmissV"),"/wrfinput_d01",sep=""))
x <- raster::raster(paste(system.file("extdata", package = "EmissV"),"/dmsp.tiff",sep=""))
test <- rasterSource(x, grid)
image(test, axe = FALSE, main = "Spatial distribution by Persistent Nocturnal Lights from DMSP")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.