goesaodc_downloadScanFiles: Download GOES AOD scan files

Description Usage Arguments Value Examples

View source: R/goesaodc_downloadScanFiles.R

Description

Downloads GOES AOD scan files for a given datetime or time range. If just datetime is given, then only the scan file closest to that time will be downloaded. If endtime is specified as well, then all scans from datetime up to (but not including) endtime will be downloaded.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
goesaodc_downloadScanFiles(
  satID = NULL,
  datetime = NULL,
  endtime = NULL,
  timezone = "UTC",
  isJulian = FALSE,
  filenames = NULL,
  verbose = FALSE,
  baseUrl = "https://tools-1.airfire.org/Satellite/"
)

Arguments

satID

ID of the source GOES satellite ('G16' or 'G17').

datetime

Datetime as a Ymd HMS or Julian formatted string, or a POSIXct.

endtime

End time as a Ymd HMS or Julian formatted string, or a POSIXct.

timezone

Timezone used to interpret datetime and endtime. Defaults to UTC.

isJulian

Logical flag determining whether datetime (and optionally endtime) should be interpreted as a Julian date with day of year as a decimal number. Defaults to FALSE.

filenames

Names of scan files.

verbose

Logical flag determining whether to print download progress messages.

baseUrl

URL of remote database. Defaults to "https://tools-1.airfire.org/Satellite/".

Value

Vector of scan filenames.

Examples

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

goesaodc_downloadScanFiles(
  satID = "G17",
  datetime = "2020-09-08 12:30",
  timezone = "UTC"
)

goesaodc_downloadScanFiles(
  satID = "G17",
  datetime = "2020-09-08 12:00",
  endtime = "2020-09-08 13:00",
  timezone = "UTC",
  verbose = TRUE
)

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