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 zooms from header
  
  Returns
  -------
  z : tuple
     tuple of header zoom values
  
  Examples
  --------
  >>> hdr = AnalyzeHeader()
  >>> hdr.get_zooms()
  (1.0,)
  >>> hdr.set_data_shape((1,2))
  >>> hdr.get_zooms()
  (1.0, 1.0)
  >>> hdr.set_zooms((3, 4))
  >>> hdr.get_zooms()
  (3.0, 4.0)
docstr_tok: ["Get","zooms","from","header","Returns","--","--","--","-","z",":","tuple","tuple","of","header","zoom","values","Examples","--","--","--","--",">",">",">","hdr","=","AnalyzeHeader","(",")",">",">",">","hdr.get_zooms","(",")","(","1.0",",",")",">",">",">","hdr.set_data_shape","(","(","1,2",")",")",">",">",">","hdr.get_zooms","(",")","(","1.0",",","1.0",")",">",">",">","hdr.set_zooms","(","(","3",",","4",")",")",">",">",">","hdr.get_zooms","(",")","(","3.0",",","4.0",")"]
code: def get_zooms(self):
      """Get zooms from header
  
      Returns
      -------
      z : tuple
         tuple of header zoom values
  
      Examples
      --------
      >>> hdr = AnalyzeHeader()
      >>> hdr.get_zooms()
      (1.0,)
      >>> hdr.set_data_shape((1,2))
      >>> hdr.get_zooms()
      (1.0, 1.0)
      >>> hdr.set_zooms((3, 4))
      >>> hdr.get_zooms()
      (3.0, 4.0)
      """
      hdr = self._structarr
      dims = hdr["dim"]
      ndim = dims[0]
      if ndim == 0:
          return (1.0,)
      pixdims = hdr["pixdim"]
      return tuple(pixdims[1 : ndim + 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 14 for calling the AnalyzeHeader obj's underlying member method code with example usage: obj.get_zooms() and returns: tuple, int