<div dir="ltr"><div>Hi</div><div><br></div><div>I am struggling to save my data in (Geo)TIFF files with the proper creation options.</div><div>My data is not standard RGB(A), but a collection of bands like red, green, (not necessarily blue), another type of red, near infrared, etc, and Alpha. It can be uint8, uint16 or float.</div><div><br></div><div>I was using PHOTOMETRIC=MINISBLACK and ALPHA=YES, but now I am not sure if this is the proper configuration.  In addition to that, I am setting a ColorInterpretation to the bands (many bands as GCI_Undefined, like for Near Infrared. The alpha band is clear as GCI_AlphaBand).</div><div><br></div><div>The "extra samples" is obscure to me, I do not know how many bands expects, and how many are "extra". (<a href="https://www.awaresystems.be/imaging/tiff/tifftags/extrasamples.html">https://www.awaresystems.be/imaging/tiff/tifftags/extrasamples.html</a>)</div><div><br></div><div>TIFF says "There is no default for PhotometricInterpretation, and it is required. Do not rely on applications defaulting to what you want." in <a href="https://www.awaresystems.be/imaging/tiff/tifftags/photometricinterpretation.html">https://www.awaresystems.be/imaging/tiff/tifftags/photometricinterpretation.html</a></div><div><br></div><div>How should I create my TIFFs?</div><div><br></div><div>Thanks.<br></div>.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__<br><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Entre dos pensamientos racionales <br>hay infinitos pensamientos irracionales.<br><br></div></div></div></div>