Creating a 3d numpy array matrix using append method
By definition you cannot append anything to an array because when the array is declared in memory it has to reserve as much space as it is going to need.
What you can do is to either declare an array with the known geometry and initial values and then rewrite the new values per row keeping a counter of the rows "appended" or you can double the size of the array when you run out of space.
Is there a way to create a 3d numpy array by appending 2d numpy arrays? What I currently do is append my 2d numpy array into an initialized list of pre determined 2d numpy array, i.e., List=[np.zeros((600,600))]. After appending all my 2d numpy arrays I use numpy.dstack to create 3d numpy array. I think this is not a very efficient method. Any suggestions.