Estimation of the solar Lyman alpha flux from ground based measurements of the Ca II K line