[R-sig-Geo] Error in use Gaussian Filter with rsaga.geoprocessor: "Gaussian Filter: could not initialize data objects"... had status 1
francescor
reyesfrance at gmail.com
Fri Aug 16 19:03:19 CEST 2013
R studio, Version 0.97.551
SAGA from saga_2.1.0_win32.zip
Windows 7 Profesional, Service Pack 1, 64-bit Operating System
Privileges: "C:\\Program Files (x86)\\SAGA-GIS" requires administrator's
privileges, so I copied SAGA in that folder as administrator, but used R
from another user account.
#Dear all,
#I cannot make rsaga.geoprocessor working to use other functions such as
gaussian filter, watershed #segmentation or hillshade.
#Did anybody encountered and solved this kind of problem?
#Thank you for reading, and maybe answering!
#For example when I run the following lines:
#Set SAGA Working Directory
rsaga.env(workspace=initialdata,
path= "C:\\Program Files (x86)\\SAGA-GIS",
modules="C:\\Program Files (x86)\\SAGA-GIS\\modules",
check.libpath=TRUE)
#Gaussian Filter
rsaga.geoprocessor("grid_filter", module = 1,
param = list(INPUT= "C:\\Program Files
(x86)\\SAGA-GIS\\max_image_r0.25.sdat",
RESULT=
"C:\\Users\\reyesf\\Desktop\\Trial_with_R_calling_saga",
SIGMA=2 , MODE=1, RADIUS=3))
#after the following 16 lines that look fine
#R gives me the error "Gaussian Filter: could not ...."(see below)
library path: C:\PROGRA~2\SAGA-GIS\modules\grid_filter.dll
library name: Grid - Filter
module name : Gaussian Filter
author : Copyrights (c) 2003 by Andre Ringeler
Parameters
Grids: No objects
Files: C:\Program Files (x86)\SAGA-GIS\max_image_r0.25.sdat
Transformation: yes
Interpolation: B-Spline Interpolation
loading: C:\Program Files (x86)\SAGA-GIS\max_image_r0.25.sdat
Driver: C:\Program Files (x86)\SAGA-GIS\max_image_r0.25.sdat/
Cells: x 448, y 440
Bands: 1
Transformation x' = 676735.000000 + x * 0.250000 + y * 0.000000
Transformation y' = 5091759.990000 + x * 0.000000 + y * -0.250000
loading band [1/1]
Gaussian Filter: could not initialize data objects
Error: executing module [Gaussian Filter]
Warning message:
running command '"C:/Program Files (x86)/SAGA-GIS/saga_cmd.exe" -f=q
grid_filter 1 -INPUT "C:\Program Files (x86)\SAGA-GIS\max_image_r0.25.sdat"
-RESULT "C:\Users\reyesf\Desktop\Trial_with_R_calling_saga" -SIGMA "2" -MODE
"1" -RADIUS "3"' had status 1
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Error-in-use-Gaussian-Filter-with-rsaga-geoprocessor-Gaussian-Filter-could-not-initialize-data-objec1-tp7584430.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
More information about the R-sig-Geo
mailing list