Stream temperature trend analysis code