GRASS GIS script to calculate Jeffries-Matusita distance