transbigdata.grid_to_centre

transbigdata.grid_to_centre(gridid, params)

The center location of the grid. The input is the grid ID and parameters, the output is the grid center location.

Parameters:
  • gridid (list) –

    if Rectangle grids [LONCOL,LATCOL] : Series

    The two columns LONCOL and LATCOL together can specify a grid.

    if Triangle and Hexagon grids [loncol_1,loncol_2,loncol_3] : Series

    The index of the grid latitude. The two columns LONCOL and LATCOL together can specify a grid.

  • params (list or dict) – Gridding parameters. See https://transbigdata.readthedocs.io/en/latest/grids.html for detail information about gridding parameters.

Returns:

  • HBLON (Series) – The longitude of the grid center

  • HBLAT (Series) – The latitude of the grid center