Lots of data (3 column) in files such as:
longitude latitude count
20.12 50.45 1
35.78 24.26 1
20.48 50.16 2
... ... ...
Map (longitude and latitude) split many grids: 0.5*0.5 (size), for example:
longitude: [0, 0.5), [0.5, 1.0), ... , [179.5, 180.0)
latitude : [-90, -89.5), [-89.5, -89.0), ... , [89.5, 90.0]
Grids are formatted by 0.5*0.5 on the map.
for example: the 1st and 3rd records above are located the grid longitude [20.0, 20.5) and latitude [50.0, 50.5), so the counts=1+2=3.
So,How to program to get counts located in each grid from the data files with awk or other scripts? How to plot the result ?