added formatteddataprecipitation function to init