Slicing and shape manipulation (baseband_tasks.shaping)

shaping contains tasks to slice the time stream and change the sample shape, e.g., to ensure frequency and polarization are on different axes in preparation for calculating polarized powers and cross products. The changes can be done using a user-defined function or with pre-defined implementations for slicing, reshaping, and transposing.

Reference/API

baseband_tasks.shaping Module

Classes

ChangeSampleShapeBase(ih, **kwargs)

Base class for sample shape operations.

ChangeSampleShape(ih, task[, method])

Change sample shape using a callable.

Reshape(ih, sample_shape)

Reshapes the sample shape of a stream.

Transpose(ih, sample_axes)

Reshapes the axes of the samples of a stream.

ReshapeAndTranspose(ih, sample_shape, ...)

Reshapes the sample shape of a stream and transpose its axes.

GetItem(ih, item)

Index or slice the samples of a stream.

GetSlice(ih, item)

Slice a stream and index or slice its samples.

Class Inheritance Diagram

Inheritance diagram of baseband_tasks.shaping.ChangeSampleShapeBase, baseband_tasks.shaping.ChangeSampleShape, baseband_tasks.shaping.Reshape, baseband_tasks.shaping.Transpose, baseband_tasks.shaping.ReshapeAndTranspose, baseband_tasks.shaping.GetItem, baseband_tasks.shaping.GetSlice