class_docstr: Class for basic analyze header
  
  Implements zoom-only setting of affine transform, and no image
  scaling
class_docstr_tok: ["Class","for","basic","analyze","header","Implements","zoom-only","setting","of","affine","transform",",","and","no","image","scaling"]
docstr: Get shape of data
  
  Examples
  --------
  >>> hdr = AnalyzeHeader()
  >>> 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)
docstr_tok: ["Get","shape","of","data","Examples","--","--","--","--",">",">",">","hdr","=","AnalyzeHeader","(",")",">",">",">","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",")"]
code: def get_data_shape(self):
      """Get shape of data
  
      Examples
      --------
      >>> hdr = AnalyzeHeader()
      >>> 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)
      """
      dims = self._structarr["dim"]
      ndims = dims[0]
      if ndims == 0:
          return (0,)
      return tuple(int(d) for d in dims[1 : ndims + 1])
  
imports: from __future__ import annotations
  import numpy
  from .arrayproxy import ArrayProxy
  from .arraywriters import ArrayWriter, WriterError, get_slope_inter, make_array_writer
  from .batteryrunners import Report
  from .fileholders import copy_file_map
  from .spatialimages import HeaderDataError, HeaderTypeError, SpatialHeader, SpatialImage
  from .volumeutils import apply_read_scaling, array_from_file, make_dt_codes, native_code, seek_tell, shape_zoom_affine, swapped_code
  from .wrapstruct import LabeledWrapStruct
label_desc: Use image node_id 11 for calling the AnalyzeHeader obj's underlying member method code with example usage: obj.get_data_shape() and returns: tuple, int