class_docstr: Class for NIfTI2 header
  
  NIfTI2 is a slightly simplified variant of NIfTI1 which replaces 32-bit
  floats with 64-bit floats, and increases some integer widths to 32 or 64
  bits.
class_docstr_tok: ["Class","for","NIfTI2","header","NIfTI2","is","a","slightly","simplified","variant","of","NIfTI1","which","replaces","32-bit","floats","with","64-bit","floats",",","and","increases","some","integer","widths","to","32","or","64","bits","."]
docstr: Set shape of data
  
  If ``ndims == len(shape)`` then we set zooms for dimensions higher than
  ``ndims`` to 1.0
  
  Parameters
  ----------
  shape : sequence
     sequence of integers specifying data array shape
  
  Notes
  -----
  Does not apply nifti1 Freesurfer hack for long vectors (see
  :meth:`Nifti1Header.set_data_shape`)
docstr_tok: ["Set","shape","of","data","If","``","ndims","==","len","(","shape",")","``","then","we","set","zooms","for","dimensions","higher","than","``","ndims","``","to","1.0","Parameters","--","--","--","--","--","shape",":","sequence","sequence","of","integers","specifying","data","array","shape","Notes","--","--","-","Does","not","apply","nifti1","Freesurfer","hack","for","long","vectors","(","see",":","meth",":","`","Nifti1Header.set_data_shape","`",")"]
code: def set_data_shape(self, shape):
      """Set shape of data
  
      If ``ndims == len(shape)`` then we set zooms for dimensions higher than
      ``ndims`` to 1.0
  
      Parameters
      ----------
      shape : sequence
         sequence of integers specifying data array shape
  
      Notes
      -----
      Does not apply nifti1 Freesurfer hack for long vectors (see
      :meth:`Nifti1Header.set_data_shape`)
      """
      AnalyzeHeader.set_data_shape(self, shape)
  
imports: import numpy
  from .analyze import AnalyzeHeader
  from .batteryrunners import Report
  from .filebasedimages import ImageFileError
  from .nifti1 import Nifti1Header, Nifti1Image, Nifti1Pair
  from .spatialimages import HeaderDataError
label_desc: Use image node_id 2 for calling the Nifti2Header obj's underlying member method code with example usage: obj.set_data_shape(shape) without return types