now uses astropy and saves file lcoally.