goesaodc_calcAverageScanSpdf: Calculate the average SPDF of a series of GOES scan SPDFs

Description Usage Arguments Value Examples

View source: R/goesaodc_calcAverageScanSpdf.R

Description

Creates a SpatialPointsDataFrame of averaged AOD readings from a list of GOES scan SpatialPointsDataFrames.

Usage

1

Arguments

spdfList

list of GOES scan SpatialPointsDataFrames.

na.rm

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

Value

SpatialPointsDataFrame that is the average 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_calcAverageScanSpdf(
  spdfList = spdfList,
  na.rm = TRUE
)

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