Dear list,
I am using SAGA v2.0.2 and RSAGA interface with R 2.9.2. I am trying to batch load multiple .dem files (basically USGS DEM format) and mosaic them using the grid merge module in the "grid_tools" library. I am able to read in the original datafiles and save them in .sgrd format, but the subsequent command
 
rsaga.geoprocessor("grid_tools",3,param=list(GRIDS=paste(set.file.extension(filelist,".sgrd"),collapse=";"),MERGED="foo",TYPE=7,INTERPOL=4,OVERLAP=0))
 
produces a crash in saga_cmd.exe. Doing these steps manually seems to work ok, but I have far too many folders to do this by GUI. (Note that filelist is simply a list of dem files in the folder). The R console appears to start loading of the first grid, but then saga_cmd.exe crashes.
 
I wonder if I am not sending the appropriate command via R? Does anyone have any experience with this process?
 
Thanks in advance,

David Depew 
Postdoctoral Fellow 
School of Environmental Studies 
Queen's University 
Kingston, Ontario 
K7L 3N6 

david.depew@queensu.ca 
P: (613) 533-6000 x77831 

	[[alternative HTML version deleted]]

