Update spatial_density.pl