<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def doflip(dec, inc):
 """ flips lower hemisphere data to upper hemisphere """

    if inc < 0:
        inc = -inc
        dec = (dec + 180.) % 360.
    return dec, inc