def OffsetPosition(in_ra,in_dec,delta_ra,delta_dec):
    """
    Offset a position given in decimal degrees.

    Parameters
    ----------
    in_ra: float
        Initial RA (decimal degrees).

    in_dec: float
        Initial DEC (demical degrees).

    delta_ra: float
        Offset in RA (decimal degrees).
    
    delta_dec: float
        Offset in DEC (decimal degrees).

    Returns
    -------
    ra: float
        Offset RA.
    
    dec: float
        Offset DEC.
    """
    ra = in_ra
    dec = in_dec + delta_dec
    if dec > 90.:
        dec = 180 - dec
        ra = 180 + ra
    if dec < -90.:
        dec = -180 - dec
        ra = 180 + ra
    ra = ra + delta_ra
    if ra > 360.:
        ra = ra - 360.
    if ra < 0.:
        ra = ra + 360.
    return ra,dec