get_TerraBella_scene_date: Get TerraBella Scene Date

Description Usage Arguments Value Examples

View source: R/get_TerraBella_scene_date.R

Description

Parse the date out of a TerraBella .tif filename

Usage

1

Arguments

tifname

Character vector of TerraBella filename with or without path. e.g. 's02_20150525T110213Z_MS-0000020736-0000000000.tif'

Value

A dateframe with a Date object (rawdate) and a character variable (sensornr) giving the sensor nr

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
fnames <- list.files('X:/Imagery/Granadilla/Skybox')
fnames <- fnames[grep('tif',list.files('X:/Imagery/Granadilla/Skybox'))]
fnames <- fnames[substr(fnames,nchar(fnames)-3,nchar(fnames)) == ".tif"]
imdates <- get_TerraBella_scene_date(fnames)
win.graph(w = 12, h=5)
graphics::hist(imdates, breaks = 'months', format = "%b %Y", freq = T)
axis.Date(4, at = "2015-01-01")

## End(Not run)

pieterbeck/CanHeMonR documentation built on May 25, 2019, 7:11 a.m.