def coord_map_forward_1d(coord, x_step = 1, x_shift = 0, mode = 'linear'):
    """ Maps input coordinate (1D, value) to output coordinate given
        parameters step (m) and shift (b) for linear transformation

        y = m * x + b

        Intended to map meshgrid output arrays back to spatial coordinates.
    """

    x_in = coord

    x_step = float(x_step)

    if mode == 'linear':
        x_map = x_step * x_in + x_shift

    else: raise Exception('Nonlinear maps not yet supported')

    return x_map