stack_dates: Given a RasterStack or RasterBrick, convert the names to...

Description Usage Arguments Value

Description

Given a RasterStack or RasterBrick, convert the names to POSIXct dates

Usage

1
2
stack_dates(x, form = "Date", tz = "UTC", time = "12:00:00",
  fmt = "A%Y%j %H:%M:%S")

Arguments

x

RasterStack or RasterBrick with names like A20150123. It is an error to provide a stack/brick without proper names.

form

character either 'Date' (default) or 'POSIXct'

tz

the timezone, default UTC

time

character defaults to 12:00:00

fmt

the format string to use

Value

vector of Date or POSIXct dates


btupper/obpgtools documentation built on May 13, 2019, 8:42 a.m.