weather feature calculation