REDE 2.4


Program by Jonathan Greenberg
Property of the CSTARS Lab at the University of California, Davis. Please ask for permission before distributing this script.


Introduction:

MATLAB function for performing red edge vegetation analyses on hyperspectral datasets using a cubic polynomial interpolation. The function returns the wavelength location of the red edge.


System Requirements:

This program needs quite a bit of memory, but you can modify this somewhat by lowering the "maxPixelRead" value.

With enough memory, this can be fairly speedy, but if it starts using virtual memory it can take awhile. Be patient. Go get some coffee and come back later.


Instructions:

1. Unzip the file with your favorite decompressor-- Unix users use "unzip [filename]", Macintosh users can use Stuffit Expander and Windows users have a myriad of decompressors (usually WinZip is the unzipper of choice).

2. Place the redEdge.m file in your MATLAB:Toolbox:local folder.

3. You will need to first create a list of the wavelengths in BAND order of the sensor. A down-and-dirty way of doing this is to open the header of the image file and copy and paste the wavelengths into a separate text file. Each wavelength should be on a separate line. We used a text editor to search and replace all the commas with returns. Remember that it is important that you do NOT sort the wavelengths-- sensors like AVIRIS record data somewhat out of order, but we account for this in the program and you will get errors if you try to sort it.

Note: We have included several inWaveFiles:

4. The command to initiate the function is "feval('redEdge',inBipFile,byteOrder,dataType,inWaveFile,numPixels,header,minWave,maxWave,maxPixelRead,outBipFile)".


Change Log:

2.4

2.2:

2.1: Added "maxpixelread" argument which reduces memory usage significantly.
2.0: Original release of the red edge by interpolation function.


Bugs:


Contact:

Jonathan Greenberg, greenberg@ucdavis.edu.


The software on this page has been created by CSTARS members, and may be freely downloaded by outside users. However, if you wish to distribute or use the source code of these applications, please ask permission from the author(s) first. The author, CSTARS and the University of California take no responsibility for any damage this software may create.