PrepGR function

Creation of the inputs required to run the CalGR and SimGR functions