function [row,col] = LEM_row_col(grid,pt)
%

x_vals = [grid.x_min:grid.del_x:grid.x_max];
if x_vals(end)~=grid.x_max
    x_vals(end+1) = grid.x_max;
end
y_vals = [grid.y_min:grid.del_y:grid.y_max];
if y_vals(end)~=grid.y_max
    y_vals(end+1) = grid.y_max;
end

x_less = find(x_vals<=pt(1));
y_less = find(y_vals>=pt(2));
row = max(1,length(y_less));
col = max(1,length(x_less));
