class_docstr: A class representing data embedded in a 3D space
  
  This object has data stored in an array like, that knows how it is
  mapped to a 3D "real-world space", and how it can change real-world
  coordinate system.
  
  Attributes
  -----------
  
  world_space: string
      World space the data is embedded in. For instance `mni152`.
  metadata: dictionary
      Optional, user-defined, dictionary used to carry around
      extra information about the data as it goes through
      transformations. The class consistency of this information is
      not maintained as the data is modified.
  _data:
      Private pointer to the data.
  
  Notes
  ------
  
  The data is stored in an undefined way: prescalings might need to
  be applied to it before using it, or the data might be loaded on
  demand. The best practice to access the data is not to access the
  _data attribute, but to use the `get_fdata` method.
class_docstr_tok: ["A","class","representing","data","embedded","in","a","3D","space","This","object","has","data","stored","in","an","array","like",",","that","knows","how","it","is","mapped","to","a","3D","``","real-world","space","''",",","and","how","it","can","change","real-world","coordinate","system",".","Attributes","--","--","--","--","--","-","world_space",":","string","World","space","the","data","is","embedded","in",".","For","instance","`","mni152","`",".","metadata",":","dictionary","Optional",",","user-defined",",","dictionary","used","to","carry","around","extra","information","about","the","data","as","it","goes","through","transformations",".","The","class","consistency","of","this","information","is","not","maintained","as","the","data","is","modified",".","_data",":","Private","pointer","to","the","data",".","Notes","--","--","--","The","data","is","stored","in","an","undefined","way",":","prescalings","might","need","to","be","applied","to","it","before","using","it",",","or","the","data","might","be","loaded","on","demand",".","The","best","practice","to","access","the","data","is","not","to","access","the","_data","attribute",",","but","to","use","the","`","get_fdata","`","method","."]
docstr: Method applying the transform: inner part of
  transformed_with, used in subclassing.
docstr_tok: ["Method","applying","the","transform",":","inner","part","of","transformed_with",",","used","in","subclassing","."]
code: def _apply_transform(self, w2w_transform):
      """Method applying the transform: inner part of
      transformed_with, used in subclassing.
      """
      new_v2w_transform = self.get_transform().composed_with(
          w2w_transform
      )
      new_img = copy.copy(self)
      new_img._transform = new_v2w_transform
      return new_img
  
file_path: nipy/nipy/labs/datasets/volumes/volume_data.py
imports: import copy
  import numpy
  from ..transforms.transform import CompositionError
  from .volume_field import VolumeField
label_desc: Use image node_id 4 for calling the VolumeData obj's underlying member method code with example usage: obj._apply_transform(w2w_transform) and returns: new_img