% ADJGRIDORIGIN adjusts the input grid's origin to ensure consistency among images.
% ADJGRIDORIGIN takes as input the grid from GETMISSCRNRS and returns a the
% grid with the origin adjusted if necessary. If no adjustment is needed
% the same grid is returned.
% grid: output of GETMISSCRNRS
% gridout: adjusted grid