I've opened a .fits image:
scaled_flat1 = pyfits.open('scaled_flat1.fit')
scaled_flat1a = scaled_flat1[0].data
and when I print its shape:
print scaled_flat1a.shape
I get the following:
(1, 1, 510, 765)
I want it to read:
(510, 765)
How do I get rid of the two ones before it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…