#NEWLINE# def hmsStrToDeg( ra ) : #NEWLINE# #INDENT# 'Convert a string representation of RA into a float in degrees.' #NEWLINE# ( hour , min , sec ) = ra . split ( ':' ) #NEWLINE# ra_deg = hmsToDeg ( int ( hour ) , int ( min ) , float ( sec ) ) #NEWLINE# return ra_deg