goesaodc_createGoesGrid: Create a GOES grid in satelliteDataDir

Description Usage Arguments Value Examples

Description

Creates data files with geolocation information for GOES-16 (East) or GOES-17 (West) satellite products. Takes an open .nc filehandle and reads projection and coordinate grid information from it to create a GOES East or West grid in the directory previously set with setSatelliteDataDir().

Usage

1
goesaodc_createGoesGrid(nc = NULL, gridFilepath = NULL)

Arguments

nc

ncdf4 handle.

gridFilepath

filepath for either goesEastGrid.rda or goesWestGrid.rda.

Value

Invisibly returns the file path of the created GOES grid file.

Examples

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

scanFilename <- goesaodc_listScanFiles(
  satID = "G16", 
  datetime = "2019-09-06 18:00",
  timezone = "UTC",
)
   
nc <- goesaodc_openScanFile(scanFilename)
G16_filepath <- file.path(getSatelliteDataDir(), "goesEastGrid.rda")

MazamaSatelliteUtils:::goesaodc_createGoesGrid(nc, G16_filepath)
 

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