build intermediate file for location entropy

Close the enhancement issue 2