def read_uic2tag(fh, byteorder, dtype, plane_count):
 assert ((dtype == '2I') and (byteorder == '<'))
 values = fh.read_array('<u4', (6 * plane_count)).reshape(plane_count, 6)
 return {'z_distance': (values[:, 0] / values[:, 1]), 'date_created': values[:, 2], 'time_created': values[:, 3], 'date_modified': values[:, 4], 'time_modified': values[:, 5]}

def read_uic2tag ( fh , byteorder , dtype , plane_count ) : assert ( ( dtype == '2I' ) and ( byteorder == '<' ) ) values = fh . read_array ( '<u4' , ( 6 * plane_count ) ) . reshape ( plane_count , 6 ) return { 'z_distance' : ( values [ : , 0 ] / values [ : , 1 ] ) , 'date_created' : values [ : , 2 ] , 'time_created' : values [ : , 3 ] , 'date_modified' : values [ : , 4 ] , 'time_modified' : values [ : , 5 ] }
read metamorph stk uic2tag from file and return as dictionary .