我使用数据文件进行天体物理项目。它是一个csv数据文件。
我在Python中使用以下代码:
#!/usr/bin/python
# coding: utf-8
import numpy as np
# Fichier contenant le champ 169 #
file = '/astromaster/home/xxx/Bureau/Stage/Champs/Field_169/Field169_combined_final_roughcal.csv'
###############################
# Lecture du fichier field169 #
###############################
field169 = np.loadtxt(fname = file,
dtype = [('ID',object),
('RA','f10'),
('DEC','f10'),
('NDET','i2'),
('DEPTHFAG','i2'),
('SEPINDX',object),
('SEPFINDX',object),
('U','f10'),
('UERR','f10'),
('G','f10'),
('GERR','f10'),
('R','f10'),
('RERR','f10'),
('I','f10'),
('IERR','f10'),
('Z','f10'),
('ZERR','f10'),
('CHI','f10'),
('SHARP','f10'),
('FLAG','i3'),
('PROB','f10'),
('EBV','f10')],
delimiter=",")
print field169
但是,当我打印这个数组时,我只有一半的数组......而且我不明白为什么?
感谢您的回答:)