title: How to write a TIFF from a 2D array of floats in Java?
body: <p>In a Java program I have a 1024 x 1024 array of floats.  How can I write a TIFF file corresponding to the image represented by this array?</p>
  
  <p>Clarifications:</p>
  
  <ol>
  <li>I am asking for a <em>code snippet</em> illustrating how to write a TIFF corresponding to the array of floats.</li>
  <li>I'm looking for a grayscale image.</li>
  <li>I know how to convert the 1024 x 1024 array of floats into any other 1024 x 1024 array of numerical values; e.g. if the method you have in mind requires, say, 1024 x 1024 floats in the range [0, 1.0), no problem, I know how to convert my data so that this constraint holds.</li>
  </ol>
  
  <p>Thanks!</p>
  
  <p>kjo</p>