Download
plmapcalc.py
Single-file Python script. No build step — install dependencies and run.
requirements.txt
Minimum version pins for the three runtime dependencies.
Dependencies
| Package | Min version | Role | Required? |
|---|---|---|---|
numpy | 1.24 | Tile buffers, IN/OUT/MEM/GEOTRANS arrays (float64) | Yes |
rasterio | 1.3 | GeoTIFF read/write (replaces GDAL C API) | Yes |
numba | 0.61 | JIT compilation of pixel kernels, prange parallelism | Strongly 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