-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I am trying to execute
imdata = PDS3Image.open('./Data/02NASA_Cassini/N1454725799_1.IMG')
in my Jupyter notebook, and I see the following error:
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-7-ed1161877cab> in <module>()
----> 1 imdata = PDS3Image.open('./Data/02NASA_Cassini/N1454725799_1.IMG')
/home/andput/anaconda3/envs/py35/lib/python3.5/site-packages/planetaryimage-0.4.1-py3.5.egg/planetaryimage/image.py in open(cls, filename)
90 else:
91 with open(filename, 'rb') as fp:
---> 92 return cls(fp, filename)
93
94 def __init__(self, stream_string_or_array, filename=None, compression=None):
/home/andput/anaconda3/envs/py35/lib/python3.5/site-packages/planetaryimage-0.4.1-py3.5.egg/planetaryimage/image.py in __init__(self, stream_string_or_array, filename, compression)
119
120 #: A numpy array representing the image
--> 121 self.data = self._load_data(stream_string_or_array)
122
123 def __repr__(self):
/home/andput/anaconda3/envs/py35/lib/python3.5/site-packages/planetaryimage-0.4.1-py3.5.egg/planetaryimage/image.py in _load_data(self, stream)
198
199 def _load_data(self, stream):
--> 200 if self.data_filename is not None:
201 return self._load_detached_data()
202
/home/andput/anaconda3/envs/py35/lib/python3.5/site-packages/planetaryimage-0.4.1-py3.5.egg/planetaryimage/image.py in data_filename(self)
172 def data_filename(self):
173 """Return detached filename else None."""
--> 174 return self._data_filename
175
176 @property
/home/andput/anaconda3/envs/py35/lib/python3.5/site-packages/planetaryimage-0.4.1-py3.5.egg/planetaryimage/pds3image.py in _data_filename(self)
299 @property
300 def _data_filename(self):
--> 301 return self._image_pointer.filename
302
303 @property
/home/andput/anaconda3/envs/py35/lib/python3.5/site-packages/planetaryimage-0.4.1-py3.5.egg/planetaryimage/pds3image.py in _image_pointer(self)
312 @property
313 def _image_pointer(self):
--> 314 return Pointer.parse(self.label['^IMAGE'], self.record_bytes)
315
316 @property
/home/andput/anaconda3/envs/py35/lib/python3.5/site-packages/pvl/_collections.py in __getitem__(self, key)
121 if isinstance(key, INDEX_TYPES):
122 return self.__items[key]
--> 123 return dict_getitem(self, key)[0]
124
125 def __delitem__(self, key):
KeyError: '^IMAGE'
My default Python evironemnt is
Notebook Executed: 2017-09-12 21:39:34.026349
================================================================================
Python Version:
--------------------------------------------------------------------------------
3.5.3 |Anaconda custom (64-bit)| (default, Mar 6 2017, 11:58:13)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
================================================================================
PlanetaryImaging Version:
--------------------------------------------------------------------------------
0.4.1 (also tried with 0.5.0 with the same error message)
================================================================================
PVL Version:
--------------------------------------------------------------------------------
0.2.0
================================================================================
I will try some debugging over night, but would really appreciate any help.
Metadata
Metadata
Assignees
Labels
No labels