Update spatial_density.pl

Fixed to calculate spatial density not spatial intensity.