title: AttributeError: 'FileDataset' object has no attribute 'ImagePosition'
body: <pre><code>for person in range(0, len(dirs1)):
      for root, dirs, files in os.walk(os.path.join(path, dirs1[person])):
          dcmfiles = [_ for _ in files if _.endswith('.dcm')]
          for dcmfile in dcmfiles:
              dcm_image = pydicom.read_file(os.path.join(root, dcmfile))
              img = dcm_image.pixel_array
              img2 = dcm_image.ImagePosition   # Error in this line
  </code></pre>
  
  <p>for:</p>
  
  <pre><code>(0020, 0032) Image Position (Patient) DS: ['-166.000000', '-171.699997', '-207.500000']
  </code></pre>
  
  <p>My problem is that I want the "Image Position (Patient)" structure as an array or one element of it (Like '-207.500000'). 
  And when I run the code, this error occurs: the line of  <code>img2 = dcm_image.ImagePosition</code> gives <code>AttributeError: 'FileDataset' object has no attribute 'ImagePosition'</code></p>