Tag Info

New answers tagged

0

You are describing a problem that has often plagued me, although not for a while. It has been discussed in a Knowledge Base Technical Article entitled: Problem: On some systems, running any Geoprocessing tool in ArcToolbox results in Microsoft Script Errors and the tool dialog box appears blank Two solutions/workarounds are offered there: ...


0

Along the lines of what @michael said, just set all of the parameters to required, and in the tool validation script modify the updateParameters function to look like this: def updateParameters(self): for i in range(6): if not self.params[i].value: self.params[i].value = '--' return Then have your script to only use parameters that do not ...


2

The problem is in your code block. Instead of: def Reclass( !CODE! , !COMPLEX! ): if ( !CODE! == 1.1.7 and !COMPLEX! == 4): return 1.3 elif ( !CODE! == 3.2.0 and !COMPLEX! == 4): return 1.3 else: return 0 try: def Reclass( CODE , COMPLEX ): if ( CODE == "1.1.7" and COMPLEX == 4): return 1.3 elif ( ...


2

Only a small modification is needed: You need to generate the group prior to exporting (i.e., use i.group), then export to a multilayer file by assigning the group name as input in the r.out.gdal call.


1

Why don't you change the cell size of the baseline file? If the resolutions are the same, you will be able to correctly use GRASS (and if it is the same region) or GDAL_CALC. In fact, it is what QGIS probably does before execute the multiplication. Otherwise, you should consider using the Python Console with the QqgRasterCalculator Class: ...


0

One option, here is the general code logic: Create a script tool with a Field multi value data type Within the python code, loop through the field list and define the index value as the field parameter within the IDW method fieldList = arcpy.GetParameterAsText(0) for fieldName in fieldList.split(';'): outIDW = Idw(inPointFeatures, fieldName, ...



Top 50 recent answers are included