extractIndex function

Exrtract values from raster time series