[R-sig-Geo] Error in use Gaussian Filter with rsaga.geoprocessor: "Gaussian Filter: could not initialize data objects"... had status 1

Rainer Hurling rhurlin at gwdg.de
Tue Aug 20 21:31:45 CEST 2013


Am 17.08.2013 13:05, schrieb Alexander Brenning:
> Hi Francesco,
> 
> just a quick reaction while I'm heading out for a few days: I haven't seem this type of error before, and the module normally works well with RSAGA, so I suspect that this is a problem with SAGA GIS dealing with your data. May I suggest that you post this on one of the SAGA GIS discussion boards on sourcefourge ( http://sourceforge.net/p/saga-gis/discussion/ ) indicating also your SAGA GIS version and attaching your raster file (or a smaller test file that causes the same error) to that post if possible. I can have a look at it myself in a week from now if it hasn't been resolved by then.

For the record: This was asked and solved on the SAGA GIS 'Open
discussion Forum', see
http://sourceforge.net/p/saga-gis/discussion/354013/thread/b665f027/

Solution: Input grid has to be named xxx.sgrd instead of xxx.sdat.

So nothing with RSAGA, but with naming conventions of SAGA GIS.

Regards,
Rainer

> 
> Cheers
>   Alex
> 
> 
> Date: Fri, 16 Aug 2013 10:03:19 -0700 (PDT)
> From: francescor <reyesfrance at gmail.com>
> To: r-sig-geo at r-project.org
> Subject: [R-sig-Geo] Error in use Gaussian Filter with
>         rsaga.geoprocessor: "Gaussian Filter: could not initialize data
>         objects"... had status 1
> Message-ID: <1376672599372-7584430.post at n2.nabble.com>
> Content-Type: text/plain; charset=us-ascii
> 
> 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



More information about the R-sig-Geo mailing list