Updated PCA.m so that NaNs are removed from data in computing the PCAs, then added back in the score matrix so the score matrix can be reshaped to have separate time and space dimensions