SMS: Environmental statistics and data analysis