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

AttributeError: 'module' object has no attribute 'mineral' #143

Closed BlcaKHat closed 6 years ago

BlcaKHat commented 6 years ago

I was running the example with one hyperspectral image having 20 bands. i got this error. But It generates 2 images. but they are not RGB or classified.

bdegley4789 commented 6 years ago

@BlcaKHat We will look into this. Just to verify, you have built pycoal, correct?

python setup.py install

BlcaKHat commented 6 years ago

I installed it via pip. do i still need to build ?

bdegley4789 commented 6 years ago

@BlcaKHat Yes you do, let me know how pycoal behaves after you have built

BlcaKHat commented 6 years ago

still got this error in

generate a mining classified image

mining_classification.classify_image(mineral_filename, mining_filename)

last_line

I have aviris data of Ahamdabad , india and i have 9 classes . like ubran, water .. etc help me out.

bdegley4789 commented 6 years ago

@BlcaKHat It looks like you don't have spectral installed. Try

sudo pip install spectral

Here are all the dependencies for pycoal https://capstone-coal.github.io/docs#dependencies

gdal will take a bit longer to install than the others but you won't need it until you try to generate an environmental classified file

lewismc commented 6 years ago

@BlcaKHat just do he following https://github.com/capstone-coal/pycoal#source

lewismc commented 6 years ago

@BlcaKHat please provide a link to the Ahamdabad imagery you are attempting to classify. Thanks

BlcaKHat commented 6 years ago

The data i am using is not Free or sharable in my country. I am working under ( Indian institute of Remote sensing ). I am not allowed to take the data. I will try to give you the details of data tommorow.

BlcaKHat commented 6 years ago

I have installed spectral and I was working with spectral to work with hyperspectral data

lewismc commented 6 years ago

@BlcaKHat

The data i am using is not Free or sharable in my country. I am working under ( Indian institute of Remote sensing ). I am not allowed to take the data. I will try to give you the details of data tommorow.

Got it, right now pycoal only aims to work with AVIRIS-C and AVIRIS-NG data.

By the way, AVIRIS-NG had flown many campaigns in India, you can see them here https://avirisng.jpl.nasa.gov/alt_locator/

BlcaKHat commented 6 years ago

imggg

this is the image..

BlcaKHat commented 6 years ago

you try to get data if possible

lewismc commented 6 years ago

@BlcaKHat please see the following information

NOTE: If you encounter difficulty accessing any data, please contact Sarah Lundeen <sarah.r.lundeen@jpl.nasa.gov> and we will make the data available for you.
BlcaKHat commented 6 years ago

@lewismc thank you so much.