RasterSequence#

class sunraster.RasterSequence(data_list, common_axis, meta=None)[source]#

Bases: SpectrogramSequence

Class for holding, slicing and plotting series of spectrograph raster scans.

Parameters:
  • data_list (list) – List of SpectrogramCube objects from the same spectral window and OBS ID. Must also contain the ‘detector type’ in its meta attribute.

  • common_axis (int) – The axis of the SpectrogramCube instances corresponding to the slit step axis.

  • meta (dict or header object (optional)) – Metadata associated with the sequence.

Attributes Summary

raster_array_axis_physical_types

The physical types associated with each array axis, including the sequence axis.

raster_axis_coords

Return the coordinate values along the sequence axis.

raster_dimensions

The length of each axis including the sequence axis.

raster_instrument_axes_types

slice_as_raster

Method to slice instance as though data were 4D, i.e. raster number, slit step position, position along slit, wavelength.

slice_as_sns

Method to slice instance as though data were taken as a sit-and-stare, i.e. slit position and raster number are combined into a single axis.

sns_array_axis_physical_types

The physical types associated with each array axis, omitting the sequence axis.

sns_axis_coords

The coordinate values at each location along the common axis across all cubes.

sns_dimensions

The length of each array axis as if all cubes were concatenated along the common axis.

sns_instrument_axes_types

Methods Summary

plot_as_raster([sequence_axis_coords, ...])

Visualize the NDCubeSequence.

plot_as_sns(*args, **kwargs)

Attributes Documentation

raster_array_axis_physical_types#

The physical types associated with each array axis, including the sequence axis.

raster_axis_coords#

Return the coordinate values along the sequence axis.

These are compiled from the GlobalCoords objects attached to each NDCube where each cube represents a location along the sequence axis. Only coordinates that are common to all cubes are returned.

raster_dimensions#

The length of each axis including the sequence axis.

raster_instrument_axes_types#
slice_as_raster#

Method to slice instance as though data were 4D, i.e. raster number, slit step position, position along slit, wavelength.

slice_as_sns#

Method to slice instance as though data were taken as a sit-and-stare, i.e. slit position and raster number are combined into a single axis.

sns_array_axis_physical_types#

The physical types associated with each array axis, omitting the sequence axis.

sns_axis_coords#

The coordinate values at each location along the common axis across all cubes.

Only coordinates associated with the common axis in all cubes in the sequence are returned. Coordinates from different cubes are concatenated along the common axis. They thus represent the coordinate values at each location as if all cubes in the sequence were concatenated along the common axis.

sns_dimensions#

The length of each array axis as if all cubes were concatenated along the common axis.

sns_instrument_axes_types#

Methods Documentation

plot_as_raster(sequence_axis_coords=None, sequence_axis_unit=None, **kwargs)#

Visualize the NDCubeSequence.

Parameters:
  • sequence_axis_coords (str or array-like, optional) – The real world value of each step along the sequence axis. If str, the values are taken from ndcube.NDCubeSequence.sequence_axis_coords.

  • sequence_axis_unit (str or astropy.units.Unit, optional) – The unit in which to display the sequence_axis_coords.

plot_as_sns(*args, **kwargs)#