Defining spatio-temporal granularities for raster data