Dimensionality reduction of full fields by the principal components analysis