Learn R Programming

dtwSat (version 0.1.0)

getModisTimeIndex: Get Modis time index from date

Description

This function retrieves the nearest time index to a date

Usage

getModisTimeIndex(date, frequency = 16)

Arguments

date
A Date object
frequency
An integer with the frequency in days. Default is 16 days

Value

An integer

See Also

createTimeSequence and getDatesFromDOY

Examples

Run this code
i = getModisTimeIndex(date=as.Date("2000-01-01"))
i

Run the code above in your browser using DataLab