planetarypy / planetaryimage

Python PDS and Isis Cube file parser.
BSD 3-Clause "New" or "Revised" License
39 stars 20 forks source link

PDS3Image.open() fails when we try to open Compressed PDS file (.gz -or- .bz2) with Sample_Bits = 64 #56

Open bvnayak opened 8 years ago

bvnayak commented 8 years ago

Error:

ValueError: total size of new array must be unchanged
bvnayak commented 8 years ago

The reason behind this was Line#17 , where we hard coded the 4 which is actually sample_bytes.

Also, One interesting thing was, PDS file with sample_bits = 64 works fine if it is not compressed, as we use np.fromfile in this case instead of np.fromstring.