Added code to check file size and open vis fits.open