diff --git a/spectral_cube/lower_dimensional_structures.py b/spectral_cube/lower_dimensional_structures.py index 3b9f1dcd2..92d2906bd 100644 --- a/spectral_cube/lower_dimensional_structures.py +++ b/spectral_cube/lower_dimensional_structures.py @@ -47,7 +47,7 @@ def header(self): log.debug('Adding NAXIS{0} at position {1}'.format(ind+1, 3+ind+1)) header.insert(3+ind+1, Card(keyword='NAXIS{0:1d}'.format(ind+1), - value=sh)) + value=sh)) if self.wcs.naxis > self.ndim: assert ind != 0 for ii in range(self.wcs.naxis - self.ndim):