我有这个numpy数组:
array([((-24560412, 18229, 62, 198, 201, 5, -1, 6, 1, 239176.42401979),),
...,
((-25883120, -681084, 2583, 278, 201, 5, 1, 255, 1, 239424.37447651),)],
dtype=[('point', [('X', '<i4'), ('Y', '<i4'), ('Z', '<i4'), ('intensity', '<u2'), ('flag_byte', 'u1'), ('raw_classification', 'u1'), ('scan_angle_rank', 'i1'), ('user_data', 'u1'), ('pt_src_id', '<u2'), ('gps_time', '<f8')])])
如何将Z列值作为数组访问,例如点['Z']?
答案 0 :(得分:1)
您应该可以:
array_name['point']['Z']