I have just come across the WRF Hydro GIS Pre-Processing Tools for the first time. The version I am looking at is 2.2 and its documentation says:
The processing workflow for creating WRF-Hydro routing grids is available to users as an ArcGIS Python Toolbox. Python toolboxes were implemented in ArcGIS Desktop version 10.1 as a way to create custom geoprocessing tools directly from Python scripts.
Unfortunately, the people wanting to use these tools only have access to ArcGIS Desktop 10.0 which means that they will not "just work" because Python toolboxes did not exist until 10.1.
I am considering trying to downgrade the tools to 10.0 by creating a standard toolbox of Python script tools that calls the same functions that the tools in the Python toolbox do.
Before doing that I am wondering if anyone knows the history of these tools, to be able to tell me whether there was an earlier version of them that were designed to use with ArcGIS Desktop 10.0? If so, I may be able to try and source that version instead but my Google searches so far have been unsuccessful in finding such a version.
If I need to proceed with the creation of an equivalent standard toolbox for 10.0 then I plan to check that no critical tools/parameters that they use were added at 10.1 and keep my fingers crossed that I have not missed any gotchas.
toolbox = imp.load_source('toolbox', '/path/to/python_toolbox.pyt')
), which means you could just setup a wrapper script that sets up theParameter
objects and passes them to the tool, rather than trying to re-write the existing code (assuming nothing else from 10.1 is missing). Then you can just swap out the .pyt if there's an update