Saga_cmd io_gdal 0 -GRIDS=G:\path_to_file\bar.sgrd -FILES=G:\path_to_file\bar.adf So you need to adapt your commands, storing on your disk every output grid in SDAT (SAGA GIS Binary Grid File Format) format using the. The concept is quite the same for saga_cmd io_gdal 0. It allows to specify the name of the SAGA grid to store on your disk and not in memory. You will notice the -GRID optional parameter. Typing saga_cmd io_grid 3 and cutting the header: Usage: saga_cmd And how can I tell grid_tools "Mosaicking" to use the two before-loaded grids? But it seems to me that I have to name the imported grids, which I did not do in the script. In the SAGA GUI, I simply choose the input grids manually in this step (with a drop-down menu - interactively). The SAGA-generated example for the module grid_tools 3 suggests to do something like that: grid_tools "Mosaicking" -GRIDS=memory memory -TYPE=7 -INTERPOL=0 -OVERLAP=1 -BLEND_DIST=10.000000 -TARGET=1 -USER_XMIN=0.000000 -USER_XMAX=0.000000 -USER_YMIN=0.000000 -USER_YMAX=0.000000 -USER_SIZE=1.000000 -USER_COLS=0 -USER_ROWS=0 -USER_GRID=NULL -GRID_GRID= I managed to turn the first two steps into a script quite easily: io_grid 3 -FILE=G:\path_to_file\foo.grd -NODATA=0 -NODATA_VAL=-99999.000000 Now I want to automate all this using saga_cmd. Export the resulting grid using " io_grid" - "Export Grid to XYZ" (ID 5).Use the splendid mosaicking tool " grid_tools" - "Mosaicking" (ID 3).Import the inner grid using " io_gdal" - "GDAL: Import Raster" (ID 0).Import the outer grid using the module " io_grid" - "Import Surfer Grid" (ID 3).xyz files with grid size 50m.Īll this I can do manually in SAGA-GIS, using the following steps: I want to 'embed' the smaller one in the larger one, merge them and export the whole merged grid as. Both are given in grid formats and the outer one has gridsize 50m, the inner one 10m. My problem: I have two DEMs, one rectangular and containing the other.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |