Geologic thermometry and barometry