Commit 63200c23 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Improved log message.

parent c47a8ca2
Pipeline #3063 passed with stage
in 19 minutes and 46 seconds
......@@ -952,7 +952,8 @@ class ReferenceCube_Generator(object):
spectra = GeoArray(spectra)
# perform spectral resampling of input image to match spectral properties of target sensor
self.logger.info('Performing spectral resampling to match spectral properties of target sensor...')
self.logger.info('Performing spectral resampling to match spectral properties of %s %s...'
% (tgt_srf.satellite, tgt_srf.sensor))
SR = SpectralResampler(src_cwl, tgt_srf)
spectra_rsp = SR.resample_spectra(spectra, chunksize=200, CPUs=self.CPUs)
......@@ -981,7 +982,8 @@ class ReferenceCube_Generator(object):
im_gA.cwl = np.array(im_gA.meta.loc['wavelength'], dtype=np.float).flatten()
# perform spectral resampling of input image to match spectral properties of target sensor
self.logger.info('Performing spectral resampling to match spectral properties of target sensor...')
self.logger.info('Performing spectral resampling to match spectral properties of %s %s...'
% (tgt_srf.satellite, tgt_srf.sensor))
SR = SpectralResampler(im_gA.cwl, tgt_srf)
tgt_im = GeoArray(np.zeros((*im_gA.shape[:2], len(tgt_srf.bands)), dtype=np.int16), im_gA.gt, im_gA.prj)
......
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