bug fixes to mgrast and location gridding

fixed problem with gridding by longitude and occasional latitude. got
working with other files.