class_docstr: Proxy object for AFNI image array.
  
  Attributes
  ----------
  scaling : np.ndarray
      Scaling factor (one factor per volume/sub-brick) for data. Default is
      None
docstr: Initialize AFNI array proxy
  
  Parameters
  ----------
  file_like : file-like object
      File-like object or filename. If file-like object, should implement
      at least ``read`` and ``seek``.
  header : ``AFNIHeader`` object
  mmap : {True, False, 'c', 'r'}, optional, keyword only
      `mmap` controls the use of numpy memory mapping for reading data.
      If False, do not try numpy ``memmap`` for data array.  If one of
      {'c', 'r'}, try numpy memmap with ``mode=mmap``.  A `mmap` value of
      True gives the same behavior as ``mmap='c'``.  If `file_like`
      cannot be memory-mapped, ignore `mmap` value and read array from
      file.
  keep_file_open : { None, True, False }, optional, keyword only
      `keep_file_open` controls whether a new file handle is created
      every time the image is accessed, or a single file handle is
      created and used for the lifetime of this ``ArrayProxy``. If
      ``True``, a single file handle is created and used. If ``False``,
      a new file handle is created every time the image is accessed.
      If ``file_like`` refers to an open file handle, this setting has no
      effect. The default value (``None``) will result in the value of
      ``nibabel.arrayproxy.KEEP_FILE_OPEN_DEFAULT`` being used.
code: def __init__(
      self, file_like, header, *, mmap=True, keep_file_open=None
  ):
      """
      Initialize AFNI array proxy
  
      Parameters
      ----------
      file_like : file-like object
          File-like object or filename. If file-like object, should implement
          at least ``read`` and ``seek``.
      header : ``AFNIHeader`` object
      mmap : {True, False, 'c', 'r'}, optional, keyword only
          `mmap` controls the use of numpy memory mapping for reading data.
          If False, do not try numpy ``memmap`` for data array.  If one of
          {'c', 'r'}, try numpy memmap with ``mode=mmap``.  A `mmap` value of
          True gives the same behavior as ``mmap='c'``.  If `file_like`
          cannot be memory-mapped, ignore `mmap` value and read array from
          file.
      keep_file_open : { None, True, False }, optional, keyword only
          `keep_file_open` controls whether a new file handle is created
          every time the image is accessed, or a single file handle is
          created and used for the lifetime of this ``ArrayProxy``. If
          ``True``, a single file handle is created and used. If ``False``,
          a new file handle is created every time the image is accessed.
          If ``file_like`` refers to an open file handle, this setting has no
          effect. The default value (``None``) will result in the value of
          ``nibabel.arrayproxy.KEEP_FILE_OPEN_DEFAULT`` being used.
      """
      super().__init__(
          file_like, header, mmap=mmap, keep_file_open=keep_file_open
      )
      self._scaling = header.get_data_scaling()
  
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 AFNIArrayProxy object from inherited base classes: ArrayProxy with example: obj = AFNIArrayProxy(file_like, header)