X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 12 Mar 2009 06:14 PM by  anon
Problem creating a spectral library
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
12 Mar 2009 06:14 PM
    Short version: So I have these spectra I'm trying to import into ENVI so I can use them in mixure tuned matched filtering a Hyperion file. I brought them in as an ASCII file but it insists on thinking that the number of wavelengths (1-195) is the amount of wavelengths, when that's actually about 400 to 2300 nm. Hence, when I try to MTMF, it gives me only static as an output, I'm guessing because it's trying to compare wavelengths with wavelengths that aren't there. Here's the long version, so you actually know what I'm doing and can tell me what I'm doing wrong: Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 I'm trying to use Mixture Tuned Matched Filtering, but I want to use spectra that were collected in the field. To do this, I saved the spectra as CSV files with three columns -- wavelength, reflectance, and standard deviation. I saved them so that the number of wavelengths equals the number of bands in the MNF file I'm trying to apply MTMF to, because otherwise it says it's invalid. These files have 195 bands, from about 400 to 2300 nm. So while setting up the MTMF, I import the spectra as ASCII files into the Endmember Collection Box, I tell it the X should be column one (wavelength), the Y should be column 2 (reflectance), the wavelength is nanometers. Despite this, the program does not seem to understand that, although there are 195 bands, the wavelengths are not 1-195 nm. At first the endmember box displayed them as being 1-195 nanometers too, although when I imported them again they started displaying correctly. However, when I plot the added spectra, they still display on an axis of 1 to 200. When I run the MTMF the results display as static, I'm guessing because the program is displaying an image with wavelengths from 400 to 2300 nm against what it thinks are wavelengths from 1 to 200 nm. Likewise, I wanted to bring in a spectrum from the JPL spectral library, but I first had to resample it so it had the same number of bands as everything else. In ENVI I told it to resample from a file, using one of the CSV files in question. I got an error saying that of the 195 bands in that file, 165 didn't overlap with the spectrum I was trying to resample, which to me says that ENVI still hasn't figured out that the number of bands isn't the same as the wavelength. Any help would be much appriciated, as I'm pulling my hair out!
    You are not authorized to post a reply.