landmap0 = landmap[0:100, 0:100] landmap1 = landmap[100:200, 0:100] landmap2 = landmap[0:100, 100:200] landmap3 = landmap[100:200, 100:200] roadmap0 = roadmap[0:100, 0:100] roadmap1 = roadmap[100:200, 0:100] roadmap2 = roadmap[0:100, 100:200] roadmap3 = roadmap[100:200, 100:200] target0 = target[0:100, 0:100, :].flatten() target1 = target[100:200, 0:100, :].flatten() target2 = target[0:100, 100:200, :].flatten() target3 = target[100:200, 100:200, :].flatten() elevmap0 = prep.pca(elevmap0, num_principals).T elev0 = prep.pca(elevmap0, num_principals).flatten() elevmap1 = prep.pca(elevmap1, num_principals).T elev1 = prep.pca(elevmap1, num_principals).flatten() elevmap2 = prep.pca(elevmap2, num_principals).T elev2 = prep.pca(elevmap2, num_principals).flatten() elevmap3 = prep.pca(elevmap3, num_principals).T elev3 = prep.pca(elevmap3, num_principals).flatten() landmap0 = prep.pca(landmap0, num_principals).T land0 = prep.pca(elevmap0, num_principals).flatten() landmap1 = prep.pca(landmap1, num_principals).T land1 = prep.pca(elevmap1, num_principals).flatten() landmap2 = prep.pca(landmap2, num_principals).T land2 = prep.pca(elevmap2, num_principals).flatten() landmap3 = prep.pca(landmap3, num_principals).T