#NEWLINE# def degToHms( ra ) : #NEWLINE# #INDENT# 'Converts the ra (in degrees) to HMS three tuple.\n    H and M are in integer and the S part is in float.\n    ' #NEWLINE# assert ( ra >= 0.0 ) , WCSError ( ( 'RA (%f) is negative' % ra ) ) #NEWLINE# assert ( ra < 360.0 ) , WCSError ( ( 'RA (%f) > 360.0' % ra ) ) #NEWLINE# rah = ( ra / degPerHMSHour ) #NEWLINE# ramin = ( ( ra % degPerHMSHour ) * HMSMinPerDeg ) #NEWLINE# rasec = ( ( ra % degPerHMSMin ) * HMSSecPerDeg ) #NEWLINE# return ( int ( rah ) , int ( ramin ) , rasec )