Deciphering the paleoenvironment in the archeological record