goesaodc_createScanRaster: Create a raster from a GOES AOD scan

Description Usage Arguments Value Examples

View source: R/goesaodc_createScanRaster.R

Description

Creates a RasterLayer of AOD readings from a GOES scan, file or a RasterBrick of RasterLayers from a series of files.

Usage

1
2
3
4
5
6
7
8
goesaodc_createScanRaster(
  filename = NULL,
  bbox = bbox_CONUS,
  dqfLevel = 3,
  cellSize = NULL,
  fun = mean,
  na.rm = FALSE
)

Arguments

filename

Name of a scan file.

bbox

Bounding box for the region of interest. All points outside of this area will be removed and therefore won't be rasterized. Defaults to CONUS.

dqfLevel

Data quality flag level. Defaults to 3.

cellSize

Size of Raster cells measured in degrees lon/lat.

fun

Function used to summarize point values within a single cell. Defaults to mean.

na.rm

Logical flag determining whether to remove NA values before summarizing them with 'fun'. Defaults to FALSE.

Value

RasterLayer or RasterBrick 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
31
32
33
library(MazamaSatelliteUtils)
setSatelliteDataDir("~/Data/Satellite")

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

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

# Create a raster for a scan file
goesaodc_createScanRaster(
  filename = scanFiles[1],
  bbox = bboxOregon,
  dqfLevel = 2,
  cellSize = 0.05
)

# Create a raster from scans averaged over a time range
goesaodc_createScanRaster(
  filename = scanFiles,
  bbox = bboxOregon,
  cellSize = 0.05
)

# Create a raster for a faulty scan
goesaodc_createScanRaster(
  filename = "OR_ABI-L2-AODC-M6_G17_s20202522231174_e20202522233547_c20202522235327.nc",
  bbox = bboxOregon,
  cellSize = 0.05
)

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