def predict_linear_index(z, spatial_res):
    """
    Returns the index position of a coordinate specified in a one dimensional (1D) model.
    :param z:
    :param spatial_res:
    :return:
    """
    index = int(round(z / spatial_res))
    return index