<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/spectralpython/patches/" rel="alternate"/><link href="https://sourceforge.net/p/spectralpython/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/spectralpython/patches/</id><updated>2002-02-08T08:10:56Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>Improved reading of ENVI files</title><link href="https://sourceforge.net/p/spectralpython/patches/1/" rel="alternate"/><published>2002-02-08T08:10:56Z</published><updated>2002-02-08T08:10:56Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netd48b9d39e53135610bfcb8bd193fbf8df2bbd38a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I had a hard time reading any of the ENVI files&lt;br /&gt;
from the ENVI demonstration CDROM into Spectral Python.&lt;/p&gt;
&lt;p&gt;Attached are diffs towards Spectral/Io/Envi.py&lt;br /&gt;
which enabled me to read a file. It are patches&lt;br /&gt;
to obvious bugs in the code.&lt;/p&gt;
&lt;p&gt;This worked for the first ENVI image which satisfied&lt;br /&gt;
the following criteria:&lt;br /&gt;
- data type == 1 or 2 (most seem to be 4)&lt;br /&gt;
- interleave != bsq (most seem to be bsq)&lt;/p&gt;
&lt;p&gt;Also, the actual data does seem to have another&lt;br /&gt;
extension then .img. My solution was to copy the&lt;br /&gt;
header to a new place, and a soft linked called&lt;br /&gt;
&amp;amp;lt;name&amp;amp;gt;.img pointing to the actual data file.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>