Weather data, once used strictly for inventory planning, is now helping retailers localize advertising and decide when to discount seasonal items such as sweaters.