Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle ENVI headers for PCI images #74

Open
tboggs opened this issue Feb 21, 2018 · 3 comments
Open

Handle ENVI headers for PCI images #74

tboggs opened this issue Feb 21, 2018 · 3 comments

Comments

@tboggs
Copy link
Member

tboggs commented Feb 21, 2018

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.

@pythonic2020
Copy link

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

@tboggs
Copy link
Member Author

tboggs commented Nov 21, 2020

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.

@pythonic2020
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants