goesaodc_calcTrendScanSpdf: Calculate the trend SPDF of a series of GOES scan SPDFs

Description Usage Arguments Value Examples

View source: R/goesaodc_calcTrendScanSpdf.R

Description

Creates a SpatialPointsDataFrame of AOD trend values from a list of GOES scan SpatialPointsDataFrames. A trend value for a point 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_calcTrendScanSpdf(spdfList = NULL, na.rm = FALSE)

Arguments

spdfList

A list of GOES scan SpatialPointsDataFrames.

na.rm

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

Value

A SpatialPointsDataFrame that is the trend of all the SpatialPointsDataFrames in a list.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
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"
)

spdfList <- goesaodc_createScanSpdf(
  filename = scanFiles,
  bbox = bboxOregon
)

goesaodc_calcTrendScanSpdf(
  spdfList = spdfList,
  na.rm = TRUE
)

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