#NEWLINE# def choose_coord_units( header ) : #NEWLINE# #INDENT# 'Return the appropriate key code for the units value for the axes by\n    examining the FITS header.\n    ' #NEWLINE# cunit = header [ 'CUNIT1' ] #NEWLINE# match = re . match ( '^deg\\s*$' , cunit ) #NEWLINE# if header : #NEWLINE# #INDENT# return 'degree' #NEWLINE# #UNINDENT# return 'degree'