Create SPLIB06 Visualization Example
Closed this issue · 3 comments
This issue is to add the SPLIB06 Visualization to pycoal/examples
. It would also be possible to incorporate it into the website somewhere.
Configuring the Python environment was actually rather tricky for this example. I was unable to get wxPython to work with IPython3 on my system, but I was able to get it to work with IPython2 which for me is /usr/bin/ipython
. See also the Spectral Python documentation on Displaying Data for more on graphics.
It would also be interesting (as a follow-up to this issue perhaps) to create a visualization of SPLIB07 for comparison. Recall that we have yet to create a band-resampled version of SPLIB07 in ENVI format. For direct comparison with SPLIB06, we would want one with 224 bands.
Several things seem to jump out from looking at the SPLIB06 visualization. For one, it appears the library contains many sequentially similar samples, consistent with the groupings of related class names. The horizontal black bars most prominent in the far right samples are presumably spectral ranges that were not detectable by the spectrometer, which evidently correspond to rangeland. These would explain some of the NaN
s floating around in the library.
Each of the 1365 samples is represented by a pixel column from left to right. Each of the 224 bands is a pixel row, from near-ultraviolet (0.38 µm) on the top to short-wave infrared (2.5 µm) on the bottom.
Pull #123 added example_splib06.py
.