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: Get shape of data
  
  Examples
  --------
  >>> hdr = Nifti2Header()
  >>> hdr.get_data_shape()
  (0,)
  >>> hdr.set_data_shape((1,2,3))
  >>> hdr.get_data_shape()
  (1, 2, 3)
  
  Expanding number of dimensions gets default zooms
  
  >>> hdr.get_zooms()
  (1.0, 1.0, 1.0)
  
  Notes
  -----
  Does not use Nifti1 freesurfer hack for large vectors described in
  :meth:`Nifti1Header.set_data_shape`
docstr_tok: ["Get","shape","of","data","Examples","--","--","--","--",">",">",">","hdr","=","Nifti2Header","(",")",">",">",">","hdr.get_data_shape","(",")","(","0",",",")",">",">",">","hdr.set_data_shape","(","(","1,2,3",")",")",">",">",">","hdr.get_data_shape","(",")","(","1",",","2",",","3",")","Expanding","number","of","dimensions","gets","default","zooms",">",">",">","hdr.get_zooms","(",")","(","1.0",",","1.0",",","1.0",")","Notes","--","--","-","Does","not","use","Nifti1","freesurfer","hack","for","large","vectors","described","in",":","meth",":","`","Nifti1Header.set_data_shape","`"]
code: def get_data_shape(self):
      """Get shape of data
  
      Examples
      --------
      >>> hdr = Nifti2Header()
      >>> hdr.get_data_shape()
      (0,)
      >>> hdr.set_data_shape((1,2,3))
      >>> hdr.get_data_shape()
      (1, 2, 3)
  
      Expanding number of dimensions gets default zooms
  
      >>> hdr.get_zooms()
      (1.0, 1.0, 1.0)
  
      Notes
      -----
      Does not use Nifti1 freesurfer hack for large vectors described in
      :meth:`Nifti1Header.set_data_shape`
      """
      return AnalyzeHeader.get_data_shape(self)
  
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 1 for calling the Nifti2Header obj's underlying member method code with example usage: obj.get_data_shape() and returns: AnalyzeHeader