User Activity

  • Posted a comment on discussion Open Discussion on SAGA GIS

    This was the problem! Thank you very much. Have a nice day Fred

  • Posted a comment on discussion Open Discussion on SAGA GIS

    Yes, the grid input was a problem and the tool seems to execute now. Thank you. But I think there must be something wrong with the table still because the 'OUTPUT' grid remains unchanged even though the values in the table correspond with the grid values.

  • Posted a comment on discussion Open Discussion on SAGA GIS

    Hey Volker, thanks for the reply. Unfortunately, now I get the message: Change Grid Values: could not initialize data objects failed to execute tool: Change Grid Values This is the entire code that is supposed to run and obviously I'm missing something. saga_helper.Initialize(True) input = "./Test" grid = saga_api.SG_Get_Data_Manager().Add_Grid(input + os.sep + "Rampe_2.5m_101x81.sg-grd-z") table = saga_api.SG_Get_Data_Manager().Add_Table(input + os.sep + "test.txt") Tool = saga_api.SG_Get_Tool_Library_Manager().Get_Tool('grid_tools',...

  • Posted a comment on discussion Open Discussion on SAGA GIS

    Hello all, I want to use the 'change grid vaues' tool to go through a number of grids while using a txt as a look-up table. And after trying around for a bit I just can't find a proper way to do it. This is one of the different attempts. table = input + os.sep + "test.txt" Tool.Set_Parameter('IDENTITY', saga_api.SG_Create_Table(table)) I also tried this: t = saga_api.SG_Create_Table(saga_api.CSG_String(table)) Tool.Get_Parameter('IDENTITY').asTable().Assign_Values(t) I would be glad to find out how...

  • Posted a comment on discussion User Forum on SAGA GIS

    Hello Volker, I can understand your time constraints and am very appreciative of your advice! The environment should work as intended, for I can use other tools without any problems. And the reason for the doubled grids inside the lists are just for testing purposes. Just to see if the list is loading them. I have tried to run the tool outside of a function and made somewhat of a progress. At least, after running the script, I am shown the parameters of the tool, as to be expected. What caught my...

  • Posted a comment on discussion User Forum on SAGA GIS

    Hello again, I think I understand now. And i've managed to run a simple Grid Product tool with a grid list like this. But when I try the same for a more "complex" tool, like the Soil Water Simulation after Glugla, the same problem persists. So I am thinking the gridlists weren't the only error sources in the code but I am pretty much at a loss at the moment . Traceback (most recent call last): File "C:/Path/BoWa_Soil_Water_Simulation_Glugla_Test.py", line 69, in <module> Out1.Set_Name(saga_api.CSG_String("Test"))...

  • Posted a comment on discussion User Forum on SAGA GIS

    Good Morning Volker, in my example you would pass a "filename" not a CSG_Grid data object like you do (I think that's the error you get, but I didn't verify). Yes, this was exactly the case, thanks for clarifying. With this method, I got the tool to work as well. Currently, I am trying to make it work by passing filled lists with your code bits - thanks a bunch for that already - and I still have some questions Those CSG_Parameters-commands do not belong inside the tool-function, right? Parms_Grids...

  • Posted a comment on discussion User Forum on SAGA GIS

    Hello Volker, first of all, thank you for the help. What I don't understand, would I create the list inside of the tool function and not transfer the complete list to the function all at once? wouldn't I initialize a list, fill it up with grids and then send it to the tool to be used? import os import saga_helper, saga_api saga_helper.Initialize(True) WORKDIR = ".\Input" RESULTDIR = ".\Output" DEM_File = WORKDIR + os.sep + "5mDEM.sgrd" DEM_Grid = saga_api.SG_Get_Data_Manager().Add_Grid(DEM_File)...

View All

Personal Data

Username:
frunzbob
Joined:
2021-06-25 08:29:21

Projects

  • No projects to display.

Personal Tools