Description Usage Arguments Value Examples
View source: R/goesaodc_sampleScanRaster.R
Sample values from a scan raster
1 2 3 4 5 6 7 8 9 |
raster |
|
lon |
Longitude position. |
lat |
Latitude position. |
radius |
Radius of a buffer around each point (in meters) from which to extract cell values. If the distance between the sampling point and the center of a cell is less than or equal to the buffer, the cell is included. |
method |
Method of extracting cell values. If 'simple' values for the cell a point falls in are returned. If 'bilinear' the returned values are interpolated from the values of the four nearest raster cells. Defaults to 'simple'. |
fun |
Function used to summarize cell values if multiple cells fall within the given radius. Defaults to 'mean'. |
na.rm |
Logical flag determining whether to remove |
Numeric value extracted from the raster.
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 | library(MazamaSatelliteUtils)
setSatelliteDataDir("~/Data/Satellite")
bboxOregon <- c(-125, -116, 42, 46.5)
scanFile <- goesaodc_listScanFiles(
satID = "G17",
datetime = "2020-09-08 12:00",
timezone = "America/Los_Angeles"
)
# Create a raster for a scan file
scanRaster <- goesaodc_createScanRaster(
filename = scanFile,
bbox = bboxOregon,
cellSize = 0.05
)
goesaodc_plotScanRaster(
scanRaster,
bbox = bboxOregon
)
goesaodc_sampleScanRaster(
raster = scanRaster,
lon = -123,
lat = 46,
radius = 10000
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.