def split_time_sets(array, dsindx, tindx, eindx):
    """
    Split time array into train and validation (or evaluation) set with indices.
    
    Args:
        array (ndarray): processed without nans
        dsindx (array): data indices post nan removal
        tindx (array): train data indices
        eindx (array): validation/evaluation data indices
    
    """
    array_t = array[dsindx][tindx]
    array_e = array[dsindx][eindx]
    
    return array_t, array_e