spectralpython / spectral

Python module for hyperspectral image processing
MIT License
571 stars 139 forks source link

unable to open .hdr file #73

Closed BlcaKHat closed 6 years ago

BlcaKHat commented 6 years ago

as the optional image argument to envi.open.

img = envi.open('EO1H1400432009124110PY.hdr', 'EO1H1400432009124110PY.hdr') Unable to create memmap interface.

BlcaKHat commented 6 years ago

i am able to open .lan, .spc but when i am opening .hdr , it's giving error. I am new to it, please help.

tboggs commented 6 years ago

It is not an error per se. It is just informing you that numpy was not able to create a memmap interface to the file, which will result it significantly slower performance.

What is the size of the file (and also the sizes of the files that opened successfully)? Are you on a 32 or 64-bit system?

BlcaKHat commented 6 years ago

i am on 64 bit system and i want to open an image generated by envy . with the help of python. I want to open the image same as it open in envi. please suggest me some libraries which will help me. https://drive.google.com/open?id=1d4Zdc4RdB38v6EQtQHl7u6DbHegItcfq these are the images of my file and what i want to do. I am new to it and my supervisor gave me this work. please help

tboggs commented 6 years ago

In your original post, you have the header file passed as the argument to envi.open twice (both arguments end in ".HDR"). The second argument should be the name of the image data file, which should either have a different extension (e.g., ".img", ".ref") or no extension at all.

BlcaKHat commented 6 years ago

yeah, i fixed that but how do i plot it with the help of spectral library. I don't know more about. In documentation I didn't got anything.

tboggs commented 6 years ago

There are multiple examples in the online documentation and system requirements are detailed in the installation section.

BlcaKHat commented 6 years ago

I got it now. thank you so much. It was a small mistake. I lost the flow. thanx for your support.

tboggs commented 6 years ago

You are welcome.