goesaodc_createScanSpdf: Create an SPDF from a GOES AOD scan

Description Usage Arguments Value Examples

View source: R/goesaodc_createScanSpdf.R

Description

Creates a SpatialPointsDataFrame of AOD readings from a GOES scan file, or a list of SpatialPointsDataFrames from a series of files.

Usage

1
goesaodc_createScanSpdf(filename = NULL, bbox = bbox_CONUS, dqfLevel = 3)

Arguments

filename

Name of a scan file.

bbox

Bounding box for the region of interest. All points outside of this area will be removed. Defaults to CONUS.

dqfLevel

Allowed data quality level. All points with a DQF value above this level will have their AOD values set to NA. Must be either 0, 1, 2, or 3, with 0 being the highest quality. Defaults to 3.

Value

SpatialPointsDataFrame of AOD values.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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"
)

# Create an SPDF from a single scan file
goesaodc_createScanSpdf(
  filename = scanFiles[1],
  bbox = bboxOregon,
  dqfLevel = 2
)

# Create a list of SPDFs from multiple scan files
goesaodc_createScanSpdf(
  filename = scanFiles,
  bbox = bboxOregon
)

# Create an empty SPDF from a faulty scan
goesaodc_createScanSpdf(
  filename = "OR_ABI-L2-AODC-M6_G17_s20202522231174_e20202522233547_c20202522235327.nc",
  bbox = bboxOregon
)

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