def get_time_field(da):
    """Get name of time coordinate."""

    default_time_names = ['time', 'initial_time0_hours']

    for d in default_time_names:

        if d in da.dims:
            return d

    raise RuntimeError('Could not deduce time coordinate for given data')