Description Usage Arguments Value Examples
View source: R/goesaodc_createScanRaster.R
Creates a RasterLayer
of AOD readings from a GOES scan,
file or a RasterBrick
of RasterLayer
s from a series of files.
1 2 3 4 5 6 7 8 | goesaodc_createScanRaster(
filename = NULL,
bbox = bbox_CONUS,
dqfLevel = 3,
cellSize = NULL,
fun = mean,
na.rm = FALSE
)
|
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 |
na.rm |
Logical flag determining whether to remove |
RasterLayer
or RasterBrick
of AOD values.
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
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.