Description Usage Arguments Value Examples
Creates a nativeGrid object with a list of matrices for: longitude, latitude, AOD values, and DQF values. The arrays are defined in native i, j coordinates and are thus curvilinear as opposed to rectilinear geospatial coordinates.
The nc
parameter can be either a single netCDF handle or a list of
handles. If a list of handles is provided, grid cell values for AOD and DQF
will be averaged across all nc handles. This "native grid" averaging
provides a simple way to convert 5-minute data into an hourly average.
1 | goesaodc_createNativeGrid(nc = NULL, bbox = bbox_CONUS)
|
nc |
ncdf4 handle or a list of handles. |
bbox |
Bounding box for the region of interest. Defaults to CONUS. |
List with lon, lat, AOD and DQF matrices
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 | library(MazamaSatelliteUtils)
setSatelliteDataDir("~/Data/Satellite")
scanFile <- goesaodc_downloadScanFiles(
satID = "G17",
datetime = "2019-10-27 14:00",
timezone = "America/Los_Angeles"
)
nc <- goesaodc_openScanFile(scanFile)
# Kincade fire region
kincade_bbox <- c(-124, -120, 36, 39)
layout(matrix(seq(2)))
nativeGrid <- goesaodc_createNativeGrid(nc, kincade_bbox)
image(nativeGrid$AOD[,ncol(nativeGrid$AOD):1])
title("Single timestep")
nativeGrid <- goesaodc_createNativeGrid(nc, kincade_bbox)
image(nativeGrid$AOD[,ncol(nativeGrid$AOD):1])
title("Average of 12 timesteps")
layout(1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.