Marine palaeoenvironmental analysis from fossils