CNN time series prediction with 2d, 3d arrays

How would I code a CNN model for predicting future arrays when I give the model a multidimensional array? Also, how would I format the dataset? And do I need to have a 3d array for each image?