I would like to assign the following variable names to a directory for easy manipulation later. The idea is as follow:
data_1= fits.getdata(.....)
data_2= fits.getdata(.....)
data_3= fits.getdata(.....)
. .
N=10
d={}
for i in range(N):
d['data_'+ str(i)] = data_i
Is there a way to call the variables in a similar way?