added function to extract spatial and temporal res tables from input worksheet