spectral icon indicating copy to clipboard operation
spectral copied to clipboard

Handle ENVI headers for PCI images

Open tboggs opened this issue 7 years ago • 3 comments

ENVI headers with file type = PCI require special read procedures to access the data in the image file (see issue #72). Should either add support for reading these images or raise an exception or warning for PCI images.

tboggs avatar Feb 21 '18 13:02 tboggs

Has this enhancement been implemented? I tried reading a _.pix PCI cube with a _.pix.hdr file, and the image is all distorted when I view it. The image displays normally in ENVI. Image below is from viewing a 1000x1000 subset of the imported image using spectral imshow.

Figure 6

pythonic2020 avatar Nov 21 '20 17:11 pythonic2020

No, it has not been implemented. If I had access to the pci_read_spatial and pci_read_spectral routines referenced in issue #72, I could probably implement it. In the mean time, you can likely get around it by adjusted the samples parameter in the header file to account for the additional data being appended to each line.

tboggs avatar Nov 21 '20 20:11 tboggs

I have the pci_read_spatial and pci_read_spectral in my header also. I'll look into changing the samples param. Thank you!!!! :-)

pythonic2020 avatar Nov 21 '20 22:11 pythonic2020