def _get_indices_dataset_notexist(input_time_arrays):
    """
    Build a list of [start,end] indices that match the input_time_arrays, starting at zero.

    Parameters
    ----------
    input_time_arrays
        list of 1d xarray dataarrays or numpy arrays for the input time values

    Returns
    -------
    list
        list of [start,end] indexes for the indices of input_time_arrays
    """

    running_total = 0
    write_indices = []
    for input_time in input_time_arrays:
        write_indices.append([0 + running_total, len(input_time) + running_total])
        running_total += len(input_time)
    return write_indices