plotting a raster z-profile not working

Issue #723 invalid
Andreas Janz created an issue

Traceback (most recent call last):
File "D:\source\QGISPlugIns\enmap-box\enmapbox\gui\enmapboxgui.py", line 1186, in <lambda>
lambda crs, pt, c=canvas: self.setCurrentLocation(SpatialPoint(crs, pt), canvas)
File "D:\source\QGISPlugIns\enmap-box\enmapbox\gui\enmapboxgui.py", line 1617, in setCurrentLocation
self.loadCurrentMapSpectra(spatialPoint, mapCanvas)
File "D:\source\QGISPlugIns\enmap-box\enmapbox\gui\enmapboxgui.py", line 1231, in loadCurrentMapSpectra
self.createDock(SpectralLibraryDock)
File "D:\source\QGISPlugIns\enmap-box\enmapbox\gui\enmapboxgui.py", line 1664, in createDock
return self.mDockManager.createDock(*args, **kwds)
File "D:\source\QGISPlugIns\enmap-box\enmapbox\gui\dockmanager.py", line 1461, in createDock
dock = SpectralLibraryDock(*args, **kwds)
File "D:\source\QGISPlugIns\enmap-box\enmapbox\gui\docks.py", line 800, in init
self.mSpeclibWidget: SpectralLibraryWidget = SpectralLibraryWidget(parent=self, speclib=speclib)
File "D:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\speclib\gui\spectrallibrarywidget.py", line 67, in init
self.pageProcessingWidget: SpectralProcessingWidget = SpectralProcessingWidget()
File "D:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\speclib\processing.py", line 1407, in init
self.mDummyBlocks.append(SpectralProfileBlock.dummy(1, 7, 'nm'))
File "D:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\speclib\core\spectralprofile.py", line 825, in dummy
profiles = list(TestObjects.spectralProfiles(n, n_bands=n_bands, wlu=wlu))
File "D:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\testing.py", line 722, in spectralProfiles
profileGenerator = SpectralProfileDataIterator(n_bands)
File "D:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\testing.py", line 578, in init
self.coredata, self.wl, self.wlu, self.gt, self.wkt = TestObjects.coreData()
File "D:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\testing.py", line 650, in coreData
assert source_raster.is_file()

Comments (3)

  1. Andreas Janz reporter

    after commenting out the assert, I get this error:

    RuntimeError: D:/source/QGISPlugIns/enmap-box/enmapbox/externals/qps/enmap.tif: No such file or directory
    

    Benjamin, I think I accidentally deleted the enmap.tif some commits ago. I thought, that I created it accidentally, because GIT asked me to commit it.

    Can you fix this?

  2. Log in to comment