% thin down the data a lot
[map_r,map_c] = size(map);
thinner = find(mod([0:map_r-1],thin_mod)<thin_cap);
map = map(thinner,:);

