#NEWLINE# def _get_datum( self , rec_offs , spec ) : #NEWLINE# #INDENT# 'Return unpacked data assocaited with non dimension field (VLR/Header)' #NEWLINE# data = self . _get_raw_datum ( rec_offs , rec_offs ) #NEWLINE# if ( spec . num == 1 ) : #NEWLINE# #INDENT# return struct . unpack ( spec . fmt , data ) [ 0 ] #NEWLINE# #UNINDENT# unpacked = map ( ( lambda x : struct . unpack ( spec . fmt , data [ ( x * spec . length ) : ( ( x + 1 ) * spec . length ) ] ) [ 0 ] ) , xrange ( spec . num ) ) #NEWLINE# if spec . pack : #NEWLINE# #INDENT# return '' . join ( [ str ( x [ 0 ] ) for x in unpacked ] ) #NEWLINE# #UNINDENT# return unpacked