tobac.analysis.cell_analysis.mask_cell#

tobac.analysis.cell_analysis.mask_cell(mask, cell, track, masked=False)#

Create mask for specific cell.

Parameters:
  • mask (iris.cube.Cube) – Cube containing mask (int id for tracked volumes 0 everywhere else).

  • cell (int) – Integer id of cell to create masked cube for.

  • track (pandas.DataFrame) – Output of the linking.

  • masked (bool, optional) – Bool determining whether to mask the mask for the cell where it is 0. Default is False.

Returns:

mask_i – Mask for a specific cell.

Return type:

numpy.ndarray