Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slope, Aspect, Curvature algorithm #3

Open
PedroVenancio opened this issue Mar 7, 2019 · 0 comments
Open

Slope, Aspect, Curvature algorithm #3

PedroVenancio opened this issue Mar 7, 2019 · 0 comments

Comments

@PedroVenancio
Copy link
Contributor

SAGA Slope, Aspect, Curvature algorithm is being applied in a very strange way.

Looking at log and saga_batch_job.bat file, it is running saga_cmd ta_morphometry "Slope, Aspect, Curvature" several times, each one adding a new output.

set SAGA=C:/OSGeo4W64/saga-7.2.0_x64
set SAGA_MLB=C:/OSGeo4W64/saga-7.2.0_x64\modules
PATH=%PATH%;%SAGA%;%SAGA_MLB%
saga_cmd ta_morphometry "Slope, Aspect, Curvature"  -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat"
saga_cmd ta_morphometry "Slope, Aspect, Curvature"  -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat"
saga_cmd ta_morphometry "Slope, Aspect, Curvature"  -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat"
saga_cmd ta_morphometry "Slope, Aspect, Curvature"  -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature"  -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature"  -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature"  -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature"  -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature"  -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature"  -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI "" -C_MAXI ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature"  -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI "" -C_MAXI "" -C_TOTA ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature"  -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI "" -C_MAXI "" -C_TOTA "" -C_ROTO ""
exit

Note that I only had choosed outputs to -SLOPE, -ASPECT and -C_GENE. All others are with "[Skip output]".

In the end, it only creates the -SLOPE output, because, in fact, looking at log, Processing only runs

saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat"

instead of

saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat"

Processing algorithm…
Algorithm 'Slope, aspect, curvature' starting…
Input parameters:
{ 'ASPECT' : 'D:/SIG/MDT/testes/aspect.sdat', 'C_GENE' : 'D:/SIG/MDT/testes/gen_curvature.sdat', 'ELEVATION' : 'D:/SIG/MDT/dem_srtm_pttm06_80m_clip.tif', 'METHOD' : 6, 'SLOPE' : 'D:/SIG/MDT/testes/slope.sdat', 'UNIT_ASPECT' : 1, 'UNIT_SLOPE' : 1 }

ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat"
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat"
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat"
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI "" -C_MAXI ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI "" -C_MAXI "" -C_TOTA ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI "" -C_MAXI "" -C_TOTA "" -C_ROTO ""

C:\OSGeo4W64\bin>set SAGA=C:/OSGeo4W64/saga-7.2.0_x64

C:\OSGeo4W64\bin>set SAGA_MLB=C:/OSGeo4W64/saga-7.2.0_x64\modules

C:\OSGeo4W64\bin>PATH=C:\OSGEO4~1\apps\qgis-rel-dev\bin;C:\OSGEO4~1\apps\grass\grass-7.6.0\lib;C:\OSGEO4~1\apps\grass\grass-7.6.0\bin;C:\OSGEO4~1\apps\Python37;C:\OSGEO4~1\apps\Python37\Scripts;C:\OSGEO4~1\apps\qt5\bin;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program Files\RStudio\bin;C:\OSGEO4~1\apps\Python37\lib\site-packages\numpy\.libs;C:\OSGEO4~1\apps\Python37\lib\site-packages\scipy\extra-dll;C:/OSGeo4W64/saga-7.2.0_x64;C:/OSGeo4W64/saga-7.2.0_x64\modules

C:\OSGeo4W64\bin>saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat"
____________________________

##### ## ##### ##
### ### ## ###
### # ## ## #### # ##
### ##### ## # #####
##### # ## ##### # ##
____________________________

SAGA Version: 7.2.0 (64 bit)

ERROR 1: Can't load requested DLL: C:\OSGeo4W64\saga-7.2.0_x64\dll\gdal_KEA.dll

Execution completed in 2.06 seconds
Results:
{'ASPECT': 'D:/SIG/MDT/testes/aspect.sdat',
'C_CROS': '',
'C_GENE': 'D:/SIG/MDT/testes/gen_curvature.sdat',
'C_LONG': '',
'C_MAXI': '',
'C_MINI': '',
'C_PLAN': '',
'C_PROF': '',
'C_ROTO': '',
'C_TANG': '',
'C_TOTA': '',
'SLOPE': 'D:/SIG/MDT/testes/slope.sdat'}

Loading resulting layers
The following layers were not correctly generated.<ul><li>D:/SIG/MDT/testes/aspect.sdat</li><li>D:/SIG/MDT/testes/gen_curvature.sdat</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.

Another issue I see is this error

ERROR 1: Can't load requested DLL: C:\OSGeo4W64\saga-7.2.0_x64\dll\gdal_KEA.dll

gdal_KEA.dll exists in C:\OSGeo4W64\saga-7.2.0_x64\dll\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant