transbigdata.grid_to_area

transbigdata.grid_to_area(data, shape, params, col=['LONCOL', 'LATCOL'])

Input the two columns of grid ID, the geographic polygon and gridding paramters. The output is the grid.

Parameters:
  • data (DataFrame) – Data, with two columns of grid ID

  • shape (GeoDataFrame) – Geographic polygon

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

  • col (List) – Column names [LONCOL,LATCOL] for rect grids or [loncol_1,loncol_2,loncol_3] for tri and hexa grids

Returns:

data1 – Data gridding and mapping to the corresponding geographic polygon

Return type:

DataFrame