def translate(value, offset=180):
    """ Transform values to shift origin 

    Intended for longitudes in range (-180, 180)
    to shift the 0 meridian to the 180 degree point.
    """
    if value <= 0.0:
        return value + offset
    if value > 0.0:
        return value - offset
