Description Usage Arguments Value Functions Examples
Set of helper functions to retrieve information from MODIS swath products.
1 2 3 4 5 | getSwathDateTime(x, format, ...)
getSwathDate(x, as_date = TRUE)
getSwathTime(x)
|
x |
|
format |
|
... |
Further arguments passed on to underlying functions (see Value). |
as_date |
|
getSwathDateTime
: if format
is missing, a POSIXlt
object created from strptime
; else a character
object
from strftime
.
getSwathDate
: if as_date = TRUE
(default), a Date
object created from as.Date
; else a character
object
with a leading 'A'.
getSwathTime
: a character
object in the form of '%H%S'.
getSwathDateTime
: Return MODIS Swath scan date and time
getSwathDate
: Return MODIS Swath scan date
getSwathTime
: Return MODIS Swath scan time
1 2 3 4 5 6 7 8 9 | x <- "MOD05_L2.A2013001.0835.006.2015064204640.hdf"
getSwathDate(x) # scan date as 'Date'
getSwathDate(x, as_date = FALSE) # scan date as 'character'
getSwathTime(x) # scan time
getSwathDateTime(x) # scan date and time as 'POSIXlt'
getSwathDateTime(x, format = "%Y-%m-%d %H:%S") # scan date and time as 'character'
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.