Beginning script to resample map with spatial priors