I have managed to get loadtxt to read in a single file, but now I want it to read in a bunch of files off a .list file I have. I tried throwing it in a for loop, but I can’t seem to get it to work. Can anyone help please?
[row1, row2, row3] = np.loadtxt("data.fits",unpack=True,skiprows=1)
And I want something like
for i in range(0,len(array)):
[row1, row2, row3] = np.loadtxt("list.list[i]",unpack=True,skiprows=1)
DO THINGS
Additionally:
I believe the quotation marks is messing with you. Also you do not need the 0 in range.
If this doesnt work can you paste what list.list is and array?