Moved import of 'spectral' package to function level.

Signed-off-by: Daniel Scheffler <danschef@gfz-potsdam.de>
3 jobs for bugfix/fix_importerror_spectral in 1 minute and 6 seconds (queued for 2 seconds)