class_docstr: Class for AFNI header
docstr: AFNI applies volume-specific data scaling
  
  Examples
  --------
  >>> fname = os.path.join(datadir, 'scaled+tlrc.HEAD')
  >>> header = AFNIHeader(parse_AFNI_header(fname))
  >>> header.get_data_scaling()
  array([3.883363e-08])
code: def get_data_scaling(self):
      """
      AFNI applies volume-specific data scaling
  
      Examples
      --------
      >>> fname = os.path.join(datadir, 'scaled+tlrc.HEAD')
      >>> header = AFNIHeader(parse_AFNI_header(fname))
      >>> header.get_data_scaling()
      array([3.883363e-08])
      """
      # BRICK_FLOAT_FACS has one value per sub-brick, such that the scaled
      # values for sub-brick array [n] are the values read from disk *
      # BRICK_FLOAT_FACS[n]
      floatfacs = self.info.get("BRICK_FLOAT_FACS", None)
      if floatfacs is None or not np.any(floatfacs):
          return None
      scale = np.ones(self.info["DATASET_RANK"][1])
      floatfacs = np.atleast_1d(floatfacs)
      scale[floatfacs.nonzero()] = floatfacs[floatfacs.nonzero()]
      return scale
  
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 9 for calling the AFNIHeader obj's underlying member method code with example usage: obj.get_data_scaling() and returns: scale, None