        disp('Hardcoded to blank out with good guesses');
%       set points north & south to border value
        for ix=1:length(xi);
          for iy=1:length(yi);
            if bb(ix,iy)~=1;
              id=find(bb(ix,:)==1);
              if length(id)<1;
%               find out what side of the poly  you are & max border value
                idnz=find(mean(bb)~=0);
%               idnz(1) is leftmost and idnz(length(idnz) is right
                if xi(ix)<=mean(x);
                  idnzy=find(bb(idnz(1),:)~=0);
                  zi(ix,iy)=mean(zi(idnz(1),idnzy));
                else
                  idnzy=find(bb(idnz(length(idnz)),:)~=0);
                  zi(ix,iy)=mean(zi(idnz(length(idnz)),idnzy));
                end;
              else;    
                if yi(iy)<yi(id(1));
                  zi(ix,iy)=zi(ix,id(1));
                else;
                  zi(ix,iy)=zi(ix,max(id));
                end;
              end;
            end;
          end;
        end;
