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 ofSpectrogramCube
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
The physical types associated with each array axis, including the sequence axis.
Return the coordinate values along the sequence axis.
The length of each axis including the sequence axis.
Method to slice instance as though data were 4D, i.e. raster number, slit step position, position along slit, wavelength.
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.
The physical types associated with each array axis, omitting the sequence axis.
The coordinate values at each location along the common axis across all cubes.
The length of each array axis as if all cubes were concatenated along the common axis.
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 eachNDCube
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 sequene axis. Ifstr
, the values are taken fromndcube.NDCubeSequence.sequence_axis_coords
.sequence_axis_unit (
str
orastropy.units.Unit
, optional) – The unit in which to display the sequence_axis_coords.
- plot_as_sns(*args, **kwargs)#