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 = # needs to be copied to the new GeoArray
# validation
if spectra.shape[0] !=[0]:
......@@ -1130,6 +1132,9 @@ class RefCube(object):
else: = GeoArray(im_col)
# copy previous metadata to the new GeoArray instance = meta
# add source image name to list of image names
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