Skip to content

demjanp/chrono_spatial_modelling

Repository files navigation

Example code for the paper "Modelling prehistoric settlement activities based on surface and subsurface surveys" by D. Dreslerová and P. Demján

Author of the code:

Peter Demján (peter.demjan@gmail.com)

Institute of Archaeology of the Czech Academy of Sciences, Prague, v.v.i.

Overview

This is an example implementation of chrono-spatial modelling of settlement activities used in the aforementioned paper. The purpose is to provide a functional overview of the used methods, which is possible to execute and run without access to supercomputing facilities. Sample data is provided, which represents a subset of the actual data used in the original study. As of 2018, the processing should take under 48 hours on a reasonably powerful personal computer. The algorithms are intentionally only weakly optimized to preserve better readability of the code.

The processing includes the following steps:

  1. Load input data and generate a descriptive system
  2. Generate a set of solutions of chrono-spatial phasing of the evidence using MCMC
  3. Assign absolute dating to the modelled chrono-spatial phases in form of posterior probability distributions generated using MCMC analysis
  4. Calculate temporal distribution of amount of modelled habitation areas
  5. Calculate temporal distribution of summed evidence
  6. Calculate temporal distribution of the Habitation Stability Index (HSI)
  7. Analyze habitation continuity by calculating ratio of overlapping of habitation areas in subsequent phases
  8. Analyze spatial clustering of habitation areas by calculating a Pair Correlation Function (PCF) for every solution
  9. Generate raster probability maps of modelled production areas for every chrono-spatial phase
  10. Plot the results

For a more detailed description of the method see:

Dreslerová, D. & Demján, P. Modelling prehistoric settlement activities based on surface and subsurface surveys. Archaeol Anthropol Sci (2019) 11: 5513. DOI:10.1007/s12520-019-00884-7

How to run

The script is implemented in the Python programming language. All libraries used are open-source and available online (for details see Dependencies)

To execute, run process.py

Processing parameters are set by editing the values at the beginning of the process.py file.

It is possible to set different prior distributions for the chronometric modelling (step 3): uniform and trapezoid. This simulates different transitions between archaeological cultures, which were used to obtain the absolute dating intervals of the evidence units. The trapezoid distribution is modelled according to: Karlsberg A.J. 2006. Flexible Bayesian methods for archaeological dating (PhD thesis). Sheffield: University of Sheffield.

The code to compute the Pair Correlation Function is created according to an example by Craig Finch.

Input data are loaded from the directory data and have the form of CSV files and GeoTIFF rasters.

  • evidence.csv - dating1 and coordinates2 of all units of settlement evidence from field walking and excavations used in the original study
  • evidence_example.csv - dating1 and coordinates2 of selected units of settlement evidence used in this example code
  • coords_examined.csv - coordinates2 of all examined units, regardles of presence or dating of settlement evidence (used for randomization)
  • dem.tif - Digital Elevation Model of the section of ladscape used in this example code
  • slope.tif - slope values of the aforementioned section, calculated in ArcGIS
  • water.tif - flow accumulation of the aforementioned section, calculated in ArcGIS

1 All datings are in calendar years BP and based on typology of the finds.
2 All coordinates are in the Pulkovo 1942 / Gauss-Krüger zone 13 coordinate system and projection (EPSG: 28403). Precision of localisation is under ±50 m.

Results are plotted in from of graphs and maps in the directory 'output'. Pre-computed example results calculated with different prior distributions are available in the directory 'example_output':

Requirements

Running the script requires Python 3.6

Dependencies

The script requires the following libraries to be installed:

  • NumPy: pip install numpy
  • SciPy: pip install scipy
  • GDAL: pip install GDAL

Acknowledgements:

Development of this software was supported by OP RDE, MEYS, under the project "Ultra-trace isotope research in social and environmental studies using accelerator mass spectrometry", Reg. No. CZ.02.1.01/0.0/0.0/16_019/0000728.

License:

This code is licensed under the MIT License - see the LICENSE file for details

About

Chrono-spatial modelling of settlement activities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages