goesaodc_calcTrendScanRaster: Calculate the trend raster of a series of GOES scan rasters

Description Usage Arguments Value Examples

View source: R/goesaodc_calcTrendScanRaster.R

Description

Creates a SpatialPointsDataFrame of AOD trend values from a GOES scan rasterBrick. A trend value for a cell is calculated by taking the difference between it's average value in the first half of the scan series and it's average value in the second half.

Usage

1
goesaodc_calcTrendScanRaster(rasterBrick = NULL, na.rm = FALSE)

Arguments

rasterBrick

RasterBrick of GOES scan RasterLayerss.

na.rm

Logical flag whether to remove NA values before calculating the trend. Defaults to FALSE.

Value

RasterLayer that is the trend of all the RasterLayers in a RasterBrick.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
library(MazamaSatelliteUtils)
setSatelliteDataDir("~/Data/Satellite")

bboxOregon <- c(-125, -116, 42, 47)

scanFiles <- goesaodc_listScanFiles(
  satID = "G17",
  datetime = "2020-09-08 12:00",
  endtime = "2020-09-08 13:00",
  timezone = "America/Los_Angeles"
)

scanRasterBrick <- goesaodc_createScanRaster(
  filename = scanFiles,
  bbox = bboxOregon,
  cellSize = 0.05
)

goesaodc_calcTrendScanRaster(
  rasterBrick = scanRasterBrick,
  na.rm = TRUE
)

MazamaScience/MazamaSatelliteUtils documentation built on Dec. 17, 2021, 3:20 a.m.