I have an array of unknown size - below 100 x 100 in it's dimensions; and I need to copy it into another Numpy array of a set size - 100 x 100.
emptyArray = np.empty(shape=[100,100])
fullArray = np.append(emptyArray, data1[y1:y2, x1:x2])
I need this so I can work with fullArray's of the same size later on in my code but this does not seem to be working. So the data would need to be appended into the top corner of the 100 x 100 array.
Does anyone have any advice on a how to do this? Be that an existing Numpy method or otherwise?
my_array.shape. Python lists of lists alsolen(my_list). How can you have an array of unknown size?