capstone-coal / pycoal

Python toolkit for characterizing Coal and Open-pit surface mining impacts on American Lands
http://capstone-coal.github.io/
GNU General Public License v2.0
28 stars 14 forks source link

Create SPLIB06 Visualization Example #121

Closed ghost closed 6 years ago

ghost commented 6 years ago

This issue is to add the SPLIB06 Visualization to pycoal/examples. It would also be possible to incorporate it into the website somewhere.

ghost commented 6 years ago

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.

ghost commented 6 years ago

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 NaNs 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.

ghost commented 6 years ago

Pull https://github.com/capstone-coal/pycoal/pull/123 added example_splib06.py.