Generate sun_to_sat dynamically