mapindices = find(zoriglong ~= matchpos);
mzp = zpos(mapindices);
mzd = zdirs(mapindices);
testindices = find(zoriglong == matchpos);
tzp = zpos(testindices);
tzd = zdirs(testindices);
tsonars = sonars(testindices);
