extract_indices function

Extract row, time and DO indices from a subset dataframe