allows empty rasters

this is useful for generating animations
I'm worried that this function assumes that `time` begins at zero.