#grouptags = ['ID1', 'ID2'] output_workspace = arcpy.GetParameterAsText(4) # Target table file for the parameters DataFrame params_file = arcpy.GetParameterAsText(5) #params_file = r"C:\Users\admin_jlehtoma\workspace\gdalscripts\R\parameters_new.csv" # Field in the params table to idetify the group idfield = arcpy.GetParameterAsText(6) #idfield = "IPUULAJI" debugging = arcpy.GetParameterAsText(7) try: try: parameters = read_csv(params_file, dialect=ZCustom) except: arcpy.AddError('Could not read in parameter file %s' % params_file) # Create a FileGroupIterator to iterate over raster pairs iterator = FileGroupIterator(inputws, wildcard, template, grouptags) for key, pair in iterator: if len(pair) != 2: raise ValueError('Only 2 rasters per group can be provided for rasigmoidal') raster1 = pair[0] raster2 = pair[1] # These should be the same for both rasters, note that ID1 is by # convention used to signify identifier in params table
wildcard = arcpy.GetParameterAsText(1) template = arcpy.GetParameterAsText(2) grouptags = arcpy.GetParameterAsText(3) grouptags = grouptags.split(";") operator = arcpy.GetParameterAsText(4) outws = arcpy.GetParameterAsText(5) # These will be None if not provided reftable_file = arcpy.GetParameterAsText(6) reftable = read_csv(reftable_file, dialect=ZCustom) reffields = (arcpy.GetParameterAsText(7), arcpy.GetParameterAsText(8)) debugging = bool(arcpy.GetParameterAsText(9)) manager.run_job( Job(NAME, batch=True, gui=True, input_workspace=inputws, wildcard=wildcard, template=template, grouptags=grouptags, operator=operator, output_workspace=outws, reference_table=reftable,
wildcard = arcpy.GetParameterAsText(1) template = arcpy.GetParameterAsText(2) grouptags = arcpy.GetParameterAsText(3) grouptags = grouptags.split(";") operator = arcpy.GetParameterAsText(4) outws = arcpy.GetParameterAsText(5) # These will be None if not provided reftable_file = arcpy.GetParameterAsText(6) reftable = read_csv(reftable_file, dialect=ZCustom) reffields = (arcpy.GetParameterAsText(7), arcpy.GetParameterAsText(8)) debugging = bool(arcpy.GetParameterAsText(9)) manager.run_job(Job(NAME, batch=True, gui=True, input_workspace=inputws, wildcard=wildcard, template=template, grouptags=grouptags, operator=operator, output_workspace=outws, reference_table=reftable, reference_fields=reffields, debug=debugging)) else:
#grouptags = ['ID1', 'ID2'] output_workspace = arcpy.GetParameterAsText(4) # Target table file for the parameters DataFrame params_file = arcpy.GetParameterAsText(5) #params_file = r"C:\Users\admin_jlehtoma\workspace\gdalscripts\R\parameters_new.csv" # Field in the params table to idetify the group idfield = arcpy.GetParameterAsText(6) #idfield = "IPUULAJI" debugging = arcpy.GetParameterAsText(7) try: try: parameters = read_csv(params_file, dialect=ZCustom) except: arcpy.AddError('Could not read in parameter file %s' % params_file) # Create a FileGroupIterator to iterate over raster pairs iterator = FileGroupIterator(inputws, wildcard, template, grouptags) for key, pair in iterator: if len(pair) != 2: raise ValueError( 'Only 2 rasters per group can be provided for rasigmoidal') raster1 = pair[0] raster2 = pair[1] # These should be the same for both rasters, note that ID1 is by