#NEWLINE# def hyperheader2dic( head ) : #NEWLINE# #INDENT# '\n    Convert a hypercomplex block header into a Python dictionary.\n    ' #NEWLINE# dic = dict ( ) #NEWLINE# dic [ 's_spare1' ] = head [ 0 ] #NEWLINE# dic [ 'status' ] = head [ 1 ] #NEWLINE# dic [ 's_spare2' ] = head [ 2 ] #NEWLINE# dic [ 's_spare3' ] = head [ 3 ] #NEWLINE# dic [ 'l_spare1' ] = head [ 4 ] #NEWLINE# dic [ 'lpval1' ] = head [ 5 ] #NEWLINE# dic [ 'rpval1' ] = head [ 6 ] #NEWLINE# dic [ 'f_spare1' ] = head [ 7 ] #NEWLINE# dic [ 'f_spare2' ] = head [ 8 ] #NEWLINE# dic [ 'UHYPERCOMPLEX' ] = ( ( dic [ 'status' ] & 2 ) // 2 ) #NEWLINE# return dic