The parallel cartographic modeling language (PCML) is a multi-institutional collaborative project aiming to create a computing language for cyberGIScientists that is designed for (1) usability, (2) programmability, and (3) scalability. PCML provides multi-core parallel processing for spatial operations while hiding the implementation complexities of parallelism.
1. Make sure that pip
and setuptools
are installed in your current Python environment (global or a virtualenv).
$ sudo apt-get install libgdal-dev
or
$ su -c 'yum install gdal-devel gdal-libs'
The command may vary according to package manager and system.
$ pip install -r requirements.txt
$ python setup.py install
from pcml import *
PCMLConfig.num_procs = 4 # Run computation in 4 processes (default)
layer1 = ReadASCIIGrid("layer1.asc")
layer2 = ReadGeoTIFF("layer2.tiff")
layer_out = layer1 + layer2
layer_out.print_data()
Please also see test.py
for additional working examples.