grid data sample code for temporal summary