title: Unwanted extra dimensions in NumPy array
body: <p>I've opened a .fits image:</p>
  
  <pre><code>scaled_flat1 = pyfits.open('scaled_flat1.fit')   
  scaled_flat1a = scaled_flat1[0].data
  </code></pre>
  
  <p>and when I print its shape:</p>
  
  <pre><code>print scaled_flat1a.shape
  </code></pre>
  
  <p>I get the following:</p>
  
  <pre><code>(1, 1, 510, 765)
  </code></pre>
  
  <p>I want it to read:</p>
  
  <pre><code>(510, 765)
  </code></pre>
  
  <p>How do I get rid of the two ones before it?</p>