class_docstr: Class for AFNI header
docstr: Initialize AFNI header object
  
  Parameters
  ----------
  info : dict
      Information from HEAD file as obtained by :func:`parse_AFNI_header`
  
  Examples
  --------
  >>> fname = os.path.join(datadir, 'example4d+orig.HEAD')
  >>> header = AFNIHeader(parse_AFNI_header(fname))
  >>> header.get_data_dtype().str
  '<i2'
  >>> header.get_zooms()
  (3.0, 3.0, 3.0, 3.0)
  >>> header.get_data_shape()
  (33, 41, 25, 3)
code: def __init__(self, info):
      """
      Initialize AFNI header object
  
      Parameters
      ----------
      info : dict
          Information from HEAD file as obtained by :func:`parse_AFNI_header`
  
      Examples
      --------
      >>> fname = os.path.join(datadir, 'example4d+orig.HEAD')
      >>> header = AFNIHeader(parse_AFNI_header(fname))
      >>> header.get_data_dtype().str
      '<i2'
      >>> header.get_zooms()
      (3.0, 3.0, 3.0, 3.0)
      >>> header.get_data_shape()
      (33, 41, 25, 3)
      """
      self.info = info
      dt = _get_datatype(self.info)
      super().__init__(
          data_dtype=dt,
          shape=self._calc_data_shape(),
          zooms=self._calc_zooms(),
      )
  
imports: import os
  import re
  from copy import deepcopy
  import numpy
  from .arrayproxy import ArrayProxy
  from .fileslice import strided_scalar
  from .spatialimages import HeaderDataError, ImageDataError, SpatialHeader, SpatialImage
  from .volumeutils import Recoder
label_desc: Use image node_id 1 to create a new AFNIHeader object from inherited base classes: SpatialHeader with example: obj = AFNIHeader(info)