How to get ASCII spectra out of an ROI in ENVI? [message #12988] |
Tue, 29 September 1998 00:00 |
jmcfee
Messages: 17 Registered: August 1995
|
Junior Member |
|
|
In my continuing quest to ask at least one stupid question a week, I offer this
one. I have a saved ROI for a multiband image. I want to make a file which
contains the ASCII values for each band for each pixel within the ROI (I do not
care what the actual position of the pixel is within the ROI). For instance, if
my ROI has 40 pixels inside it, and the spectra consisted of 4 bands, I would
ideally like a file like:
[pixel 1] band1_value band2_value band3_value band4_value
[pixel 2] band1_value band2_value band3_value band4_value
[pixel 3] band1_value band2_value band3_value band4_value
...
[pixel 40] band1_value band2_value band3_value band4_value
It seems crazy, but I cannot find an ENVI function that does this. It should be
easy to write such an ENVI-callable IDL function, but if there is a way of doing
it with existing ENVI functions, it would save me the work.
I appreciate any help. Thanks.
John McFee
--
Dr. John E. McFee
Defence Research Establishment Suffield
Box 4000, Medicine Hat, AB Canada T1A 8K6
(403) 544-4739 (voice) 544-4704 (fax)
|
|
|