function resizefits, image, imagedims, reskoef newx=imagedims[0]*reskoef newy=imagedims[1]*reskoef image=congrid(image, newx,newy) return, image end