interpMODIS | R Documentation |
interpolate MODIS band data to provide values at a given set of dates using either linear or constant interpolation.
interpMODIS(mod_date, mod_val, out_date, method)
mod_date |
chron vector; MODIS Time stamp |
mod_val |
MODIS values |
out_date |
chron vector; the dates for the output |
method |
string, either "linear" or "constant" |
list with components "date" and "val", containing timestamps (class chron) and values (class is dependent on the MODIS product) of the interpolated data.
Timothy W. Hilton
data(Park_Falls)
interpolated_EVI <- interpMODIS(mod_date=PFa_evi[['date']],
mod_val=PFa_evi[['evi']],
out_date=PFa_tower_obs[['date']],
method='linear')
plot(interpolated_EVI[['date']], interpolated_EVI[['val']],
type='l', lty='dashed',
xlab='date', ylab='EVI', main='Park Falls')
with(PFa_evi, points(date, evi, pch='*', cex=2.0, col='red'))
legend( x='topright',
legend=c('observed', 'interpolated'),
pch=c('*', NULL),
col=c('red', 'black'),
lty=c('blank', 'dashed'),
pt.cex=c(2.0, 1.0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.