Example:
Let the NDCube have three dimensions, space, space, wavelength.
Slice out the wavelength dimension:
>>> new_cube = NDCube[:, :, 0]
Value of wavelength at that sliced pixel should be in extra_coords:
>>> new_cube.extra_coords
{"wavelength": {"axis": None, "value": 1 nm}}
Example:
Let the
NDCubehave three dimensions, space, space, wavelength.Slice out the wavelength dimension:
Value of wavelength at that sliced pixel should be in extra_coords: