decode.assign module#

scan(dems: DataArray, /, *, by: Literal['beam', 'scan', 'state'] = 'state', dt: timedelta64 | None = None, inplace: bool = False) DataArray[source]#

Assign scan labels (scan coordinate) to DEMS.

Parameters:
  • dems (DataArray) – Input DEMS DataArray to be assigned.

  • by (Literal['beam', 'scan', 'state']) – By what coordinate the scan labels are inferred.

  • dt (timedelta64 | None) – Minimum time difference to assign different scan labels even if adjacent coordinate values are the same.

  • inplace (bool) – Whether the scan labels are assigned in-place. If False, they are assigned to the copy of the input.

Returns:

DEMS DataArray to which the scan label are assigned.

Return type:

DataArray