title: how to save an array representing an image with 40 band to a .tif file
body: <p>I have an array with 600×600×40 dimension that each band(from 40 band) represent a 600×600 image
  I want to save it to a multiple band .tif image.
  I have tried this functions from scikit-image and openCV but they can not save more than 3 band(as RGB).</p>
  
  <pre><code>import cv2
  cv2.imwrite('image.tif',600by600_just3band_array)
  </code></pre>