Commit 791c323b authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Bugfix for missing wavelength in reference cube headers.

parent 792d30ec
Pipeline #3075 failed with stage
in 17 minutes and 31 seconds
......@@ -1117,6 +1117,8 @@ class RefCube(object):
# reshape 2D spectra array to one image column (refcube is an image with spectral information in the 3rd dim.)
im_col = spectra.reshape(spectra.shape[0], 1, spectra.shape[1])
meta = self.data.metadata # needs to be copied to the new GeoArray
if self.data.size:
# validation
if spectra.shape[0] != self.data.shape[0]:
......@@ -1130,6 +1132,9 @@ class RefCube(object):
else:
self.data = GeoArray(im_col)
# copy previous metadata to the new GeoArray instance
self.data.metadata = meta
# add source image name to list of image names
self.srcImNames.append(src_imname)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment