docstr: Get raw data from file object.
  
  :param frame: Time frame index from where to fetch data
  :param orientation: None (default), 'neurological' or 'radiological'
  :rtype: Numpy array containing (possibly oriented) raw data
  
  .. seealso:: data_from_fileobj
docstr_tok: ["Get","raw","data","from","file","object",".",":","param","frame",":","Time","frame","index","from","where","to","fetch","data",":","param","orientation",":","None","(","default",")",",","'neurological","'","or","'radiological'",":","rtype",":","Numpy","array","containing","(","possibly","oriented",")","raw","data","..","seealso",":",":","data_from_fileobj"]
code: def raw_data_from_fileobj(self, frame=0, orientation=None):
      """
      Get raw data from file object.
  
      :param frame: Time frame index from where to fetch data
      :param orientation: None (default), 'neurological' or 'radiological'
      :rtype: Numpy array containing (possibly oriented) raw data
  
      .. seealso:: data_from_fileobj
      """
      dtype = self._get_data_dtype(frame)
      if self._header.endianness is not native_code:
          dtype = dtype.newbyteorder(self._header.endianness)
      shape = self.get_shape(frame)
      offset = self._get_frame_offset(frame)
      fid_obj = self.fileobj
      raw_data = array_from_file(shape, dtype, fid_obj, offset=offset)
      raw_data = self._get_oriented_data(raw_data, orientation)
      return raw_data
  
imports: import warnings
  from numbers import Integral
  import numpy
  from .arraywriters import make_array_writer
  from .fileslice import canonical_slicers, predict_shape, slice2outax
  from .spatialimages import SpatialHeader, SpatialImage
  from .volumeutils import array_from_file, make_dt_codes, native_code, swapped_code
  from .wrapstruct import WrapStruct
label_desc: Use image node_id 10 for calling the EcatSubHeader obj's underlying member method code with example usage: obj.raw_data_from_fileobj(frame, orientation) and returns: raw_data