class_docstr: Template class for images that have dataobj data stores
class_docstr_tok: ["Template","class","for","images","that","have","dataobj","data","stores"]
docstr: Initialize dataobj image
  
  The datobj image is a combination of (dataobj, header), with optional
  metadata in `extra`, and filename / file-like objects contained in the
  `file_map` mapping.
  
  Parameters
  ----------
  dataobj : object
     Object containing image data.  It should be some object that returns
     an array from ``np.asanyarray``.  It should have ``shape`` and
     ``ndim`` attributes or properties
  header : None or mapping or header instance, optional
     metadata for this image format
  extra : None or mapping, optional
     metadata to associate with image that cannot be stored in the
     metadata of this image type
  file_map : mapping, optional
     mapping giving file information for this image format
docstr_tok: ["Initialize","dataobj","image","The","datobj","image","is","a","combination","of","(","dataobj",",","header",")",",","with","optional","metadata","in","`","extra","`",",","and","filename","\/","file-like","objects","contained","in","the","`","file_map","`","mapping",".","Parameters","--","--","--","--","--","dataobj",":","object","Object","containing","image","data",".","It","should","be","some","object","that","returns","an","array","from","``","np.asanyarray","``",".","It","should","have","``","shape","``","and","``","ndim","``","attributes","or","properties","header",":","None","or","mapping","or","header","instance",",","optional","metadata","for","this","image","format","extra",":","None","or","mapping",",","optional","metadata","to","associate","with","image","that","can","not","be","stored","in","the","metadata","of","this","image","type","file_map",":","mapping",",","optional","mapping","giving","file","information","for","this","image","format"]
code: def __init__(
      self,
      dataobj: ArrayLike,
      header: FileBasedHeader | ty.Mapping | None = None,
      extra: ty.Mapping | None = None,
      file_map: FileMap | None = None,
  ):
      """Initialize dataobj image
  
      The datobj image is a combination of (dataobj, header), with optional
      metadata in `extra`, and filename / file-like objects contained in the
      `file_map` mapping.
  
      Parameters
      ----------
      dataobj : object
         Object containing image data.  It should be some object that returns
         an array from ``np.asanyarray``.  It should have ``shape`` and
         ``ndim`` attributes or properties
      header : None or mapping or header instance, optional
         metadata for this image format
      extra : None or mapping, optional
         metadata to associate with image that cannot be stored in the
         metadata of this image type
      file_map : mapping, optional
         mapping giving file information for this image format
      """
      super().__init__(header=header, extra=extra, file_map=file_map)
      self._dataobj = dataobj
      self._data_cache = None
      self._fdata_cache = None
  
file_path: nibabel/nibabel/dataobj_images.py
imports: from __future__ import annotations
  import typing
  import numpy
  from .arrayproxy import ArrayLike
  from .deprecated import deprecate_with_version
  from .filebasedimages import FileBasedHeader, FileBasedImage
  from .fileholders import FileMap
label_desc: Use image node_id 1 to create a new DataobjImage object from inherited base classes: FileBasedImage with example: obj = DataobjImage(dataobj, header, extra, file_map)