goesaodc_openScanFile: Open a GOES AOD netCDF file

Description Usage Arguments Details Value See Also Examples

View source: R/goesaodc_openScanFile.R

Description

Opens a NetCDF file and returns the nc handle. By default, the directory specified with setSatelliteDataDir() is searched for the file.

Usage

1

Arguments

filename

Name of scan file.

dataDir

Data directory containing filename. Defaults to getSatelliteDataDir().

Details

Errors generated by 'nc_open()' are not handled and will pass through to the console or calling function.

Value

NetCDF ncdf4 handle.

See Also

getSatelliteDataDir

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
library(MazamaSatelliteUtils)
setSatelliteDataDir("~/Data/Satellite")

scanFile <- goesaodc_downloadScanFiles(
  satID = "G16", 
  datetime = "2019-09-06 18:00", 
  timezone = "UTC"
)

goesaodc_openScanFile(scanFile)

## End(Not run)

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