Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/FM5-33CCM.py   defense-and-intel-analysis-toolbox(Download)
    arcpy.AddField_management(slopePoly,"SlopeCat","SHORT")
    arcpy.CalculateField_management(slopePoly,"SlopeCat","!grid_code!","PYTHON_9.3")
    arcpy.DeleteField_management(slopePoly,"grid_code")
 
    # Calculate f1 using slope category and vehicle parameters
            dropFields.append(field.name)
    if debug == True: arcpy.AddMessage(str(dropFields))
    arcpy.DeleteField_management(outputCCM,dropFields)
 
    # set the output

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RLOSdebug.py   defense-and-intel-analysis-toolbox(Download)
    if (removeSPOT == True):
        arcpy.AddMessage("Observer SPOT is <NULL>, deleteing field ...")
        arcpy.DeleteField_management(observers,"SPOT")
 
    # Do a Minimum Bounding Geometry (MBG) on the input observers
        # since we are doing infinity we can drop the RADIUS2 field
        arcpy.AddMessage("Analysis to edge of surface, dropping RADIUS2 field ...")
        arcpy.DeleteField_management(observers,"RADIUS2")
    else:
        pass

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RLOS.py   defense-and-intel-analysis-toolbox(Download)
    if (removeSPOT == True):
        arcpy.AddMessage("Observer SPOT is <NULL>, deleteing field ...")
        arcpy.DeleteField_management(observers,"SPOT")
 
    # Do a Minimum Bounding Geometry (MBG) on the input observers
        # since we are doing infinity we can drop the RADIUS2 field
        arcpy.AddMessage("Analysis to edge of surface, dropping RADIUS2 field ...")
        arcpy.DeleteField_management(observers,"RADIUS2")
    else:
        pass

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeRings2.py   defense-and-intel-analysis-toolbox(Download)
 
    # Delete junk field
    arcpy.DeleteField_management(outputRings,"RingRadius")
 
 

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/Concealment.py   defense-and-intel-analysis-toolbox(Download)
            removeFields.append(field.name)
    if debug == True: arcpy.AddMessage("Removing unnecessary fields...")
    arcpy.DeleteField_management(outConcealment,removeFields)
 
    # add suitibilty fields in veg

src/a/r/arcapi-HEAD/arcapi.py   arcapi(Download)
        arcpy.AddField_management(tbl, newcol, oldF.type, oldF.precision, oldF.scale, oldF.length, alias, oldF.isNullable, oldF.required, oldF.domain)
        arcpy.CalculateField_management(tbl, newcol, "!" + col + "!", "PYTHON_9.3")
        arcpy.DeleteField_management(tbl, col)
    return newcol
 

src/o/p/OpenColorado-Tools-and-Utilities-HEAD/Scripts/ArcGIS/10.0/Python/PublishOpenDataset.py   OpenColorado-Tools-and-Utilities(Download)
        # If commas are used instead of semi-colons, swap them
        exclude_fields = exclude_fields.replace(',',';')
        arcpy.DeleteField_management(staging_feature_class, exclude_fields)    
 
def replace_literal_nulls(layer_name):