transbigdata.GPS_to_grid
- transbigdata.GPS_to_grid(lon, lat, params)
Match the GPS data to the grids. The input is the columns of longitude, latitude, and the grids parameter. The output is the grid ID.
- 参数:
lon (Series) – The column of longitude
lat (Series) – The column of latitude
params (list or dict) – Gridding parameters. See https://transbigdata.readthedocs.io/en/latest/grids.html for detail information about gridding parameters.
- 返回:
Rectangle grids
[LONCOL,LATCOL] (list) – The two columns LONCOL and LATCOL together can specify a grid.
Triangle and Hexagon grids
[loncol_1,loncol_2,loncol_3] (list) – The index of the grid latitude. The two columns LONCOL and LATCOL together can specify a grid.