I have a density (dens) array of 156510 values which comes from 141 files with 1110 values in each (141*1110=156510). These files were all combined, but I need to generate a for loop to separate each file of range 1110. Below is what I want the for loop to do, so I don't have to keep doing this manually if more files are added. What would I need to do to the for loop to get this proper separation as I have listed below?
dens_1 = dens[0:1109]
dens_2 = dens[1110:2219]
dens_3 = dens[2220:3329]
dens_4 = dens[3330:4439]
...
dens_140 = dens[154290:155399]
dens_141 = dens[155400:156509]