plmapcalc.py

Single-file Python script. No build step — install dependencies and run.

Version 2.0 · Python 3.9+ · Linux / macOS / Windows
↓ plmapcalc.py

requirements.txt

Minimum version pins for the three runtime dependencies.

numpy ≥ 1.24 · rasterio ≥ 1.3 · numba ≥ 0.61 (optional but recommended)
↓ requirements.txt

Dependencies

PackageMin versionRoleRequired?
numpy1.24Tile buffers, IN/OUT/MEM/GEOTRANS arrays (float64)Yes
rasterio1.3GeoTIFF read/write (replaces GDAL C API)Yes
numba0.61JIT compilation of pixel kernels, prange parallelismStrongly recommended

Without numba the tool falls back to a pure-Python per-pixel loop which is significantly slower. All other imports (argparse, math, os, re, sys, time, concurrent.futures, typing) are part of the Python standard library.

Install dependencies

shell
pip install -r requirements.txt

Or individually:

shell
pip install numpy rasterio numba

Verify

shell
python plmapcalc.py --help