Uses ncdf4::nc_open() to open a NetCDF file and returns the nc handle. By default, the directory specified with setSatelliteDataDir() is searched for the file.

Errors generated by `nc_open()` are unhandled and will pass through to the console or calling function.

goesaodc_openFile(filename = NULL, dataDir = getSatelliteDataDir())

Arguments

filename

file name of GOES AOD file

dataDir

data directory containing filename

Value

nc handle.

See also

Examples

if (FALSE) { library(MazamaSatelliteUtils) setSatelliteDataDir("~/Data/Satellite") goesaodc_downloadAOD( satID = "G16", datetime = "201924918", timezone = "UTC", isJulian = TRUE) netCDF <- "OR_ABI-L2-AODC-M6_G16_s20192491826095_e20192491828468_c20192491835127.nc" nc <- goesaodc_openFile(netCDF) }