rasterSource: Distribution of emissions by a georeferenced image

View source: R/rasterSource.R

rasterSourceR Documentation

Distribution of emissions by a georeferenced image

Description

Calculate the spatial distribution by a raster

Usage

rasterSource(r, grid, nlevels = "all", conservative = TRUE, verbose = TRUE)

Arguments

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

Details

About the DMSP and example data https://en.wikipedia.org/wiki/Defense_Meteorological_Satellite_Program

Value

Returns a matrix

Source

Exemple data is a low resolution cutting from image of persistent lights of the Defense Meteorological Satellite Program (DMSP) https://pt.wikipedia.org/wiki/Defense_Meteorological_Satellite_Program

Data avaliable https://www.ospo.noaa.gov/Operations/DMSP/index.html

See Also

gridInfo and lineSource

Examples

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")


EmissV documentation built on March 31, 2023, 8:30 p.m.

Related to rasterSource in EmissV...