class_docstr: Class to wrap MINC2 format file
  
  Although it has some of the same methods as a ``Header``, we use
  this only when reading a MINC2 file, to pull out useful header
  information, and for the method of reading the data out
class_docstr_tok: ["Class","to","wrap","MINC2","format","file","Although","it","has","some","of","the","same","methods","as","a","``","Header","``",",","we","use","this","only","when","reading","a","MINC2","file",",","to","pull","out","useful","header","information",",","and","for","the","method","of","reading","the","data","out"]
docstr: Return scaled data for slice definition `sliceobj`
  
  Parameters
  ----------
  sliceobj : tuple, optional
      slice definition. If not specified, return whole array
  
  Returns
  -------
  scaled_arr : array
      array from minc file with scaling applied
docstr_tok: ["Return","scaled","data","for","slice","definition","`","sliceobj","`","Parameters","--","--","--","--","--","sliceobj",":","tuple",",","optional","slice","definition",".","If","not","specified",",","return","whole","array","Returns","--","--","--","-","scaled_arr",":","array","array","from","minc","file","with","scaling","applied"]
code: def get_scaled_data(self, sliceobj=()):
      """Return scaled data for slice definition `sliceobj`
  
      Parameters
      ----------
      sliceobj : tuple, optional
          slice definition. If not specified, return whole array
  
      Returns
      -------
      scaled_arr : array
          array from minc file with scaling applied
      """
      if sliceobj == ():
          raw_data = np.asanyarray(self._image)
      else:  # Try slicing into the HDF array (maybe it's possible)
          try:
              raw_data = self._image[sliceobj]
          except (ValueError, TypeError):
              raw_data = np.asanyarray(self._image)[sliceobj]
          else:
              raw_data = np.asanyarray(raw_data)
      return self._normalize(raw_data, sliceobj)
  
imports: import warnings
  import numpy
  from .minc1 import Minc1File, Minc1Image, MincError, MincHeader
label_desc: Use image node_id 8 for calling the Minc2File obj's underlying member method code with example usage: obj.get_scaled_data(sliceobj) and returns: self