From help-request at octave dot org Sun Jan 9 13:50:20 2005 Subject: Re: MATLAB script for parsing ENVI headers? From: Jonathan Greenberg To: Paul Laub , "help@octave.org" Date: Sun, 09 Jan 2005 11:53:09 -0800 Hi Paul: RSI ENVI (www.rsinc.com) is a widely used commercial satellite imagery analysis system. ENVI is used often enough that their image format (really just a binary matrix file with a header file) has become a semi-standard in the community. While its easy to manually open the header file and look at how the image is organized (numbers of samples, lines, bands, floating point/integer/whatever, big-endian/little-endian, etc.), it would make data import/export much easier to be able to read the header file and glean all the needed info from it (so I could write a more generalized "open this file"). I think another subscriber sent me a script to parse the header, so I'll check that out. Thanks for the email tho! --j On 1/8/05 8:28 PM, "Paul Laub" wrote: > Jonathan, > > It might help if you explained what the MATLAB ENVI file header is. I > have used MATLAB but have never come across mention of such a thing. > > If if has anything to do with environment variables or program > configuration, then you might look into Octave's getenv(), putenv(), > octave_config_info(), and dump_prefs() commands. > > Paul Laub > > > On Sat, 08 Jan 2005 15:45:32 -0800, Jonathan Greenberg > wrote: >> I was wondering if anyone knew of a MATLAB/Octave script which can parse an >> ENVI header file, retrieving all of the info necessary to import the file >> into MATLAB (number type, endian, samples, lines, bands, etc...) >> >> --j >> >> -- >> Jonathan A. Greenberg >> Ph.D., Ecology >> AIM: jgrn307 or jgrn3007 >> MSN: jgrn307 at hotmail dot com or jgrn3007@hotmail.com >> >> ------------------------------------------------------------- >> Octave is freely available under the terms of the GNU GPL. >> >> Octave's home on the web: http://www.octave.org >> How to fund new projects: http://www.octave.org/funding.html >> Subscription information: http://www.octave.org/archive.html >> ------------------------------------------------------------- >> >> > > > > ------------------------------------------------------------- > Octave is freely available under the terms of the GNU GPL. > > Octave's home on the web: http://www.octave.org > How to fund new projects: http://www.octave.org/funding.html > Subscription information: http://www.octave.org/archive.html > ------------------------------------------------------------- -- Jonathan A. Greenberg Ph.D., Ecology AIM: jgrn307 or jgrn3007 MSN: jgrn307 at hotmail dot com or jgrn3007@hotmail.com ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------