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

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

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/Concealment.py   defense-and-intel-analysis-toolbox(Download)
    # add suitibilty fields in veg
    if debug == True: arcpy.AddMessage("Adding concealment fields...")
    arcpy.AddField_management(outConcealment,"vegname","TEXT","","",70,"FACC_Vegetation_Type","NULLABLE","NON_REQUIRED")
    arcpy.AddField_management(outConcealment,"sumsuit","LONG",2,"","","Summer_Suitability","NULLABLE","NON_REQUIRED")
    arcpy.AddField_management(outConcealment,"winsuit","LONG",2,"","","Winter_Suitability","NULLABLE","NON_REQUIRED")

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFanByBearingAndTraversal.py   defense-and-intel-analysis-toolbox(Download)
        arcpy.AddMessage("Creating target feature class ...")
        arcpy.CreateFeatureclass_management(os.path.dirname(tempFans),os.path.basename(tempFans),"Polygon","#","DISABLED","DISABLED",webMercator)
        arcpy.AddField_management(tempFans,"Range","DOUBLE","#","#","#","Range (meters)")
        arcpy.AddField_management(tempFans,"Bearing","DOUBLE","#","#","#","Bearing (degrees)")
        arcpy.AddField_management(tempFans,"Traversal","DOUBLE","#","#","#","Traversal (degrees)")
        arcpy.AddField_management(tempFans,"LeftAz","DOUBLE","#","#","#","Left Bearing (degrees)")
        arcpy.AddField_management(tempFans,"RightAz","DOUBLE","#","#","#","Right Bearing (degrees)")

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFanByBearingLimits.py   defense-and-intel-analysis-toolbox(Download)
    arcpy.AddMessage("Creating target feature class ...")
    arcpy.CreateFeatureclass_management(os.path.dirname(tempFans),os.path.basename(tempFans),"Polygon","#","DISABLED","DISABLED",webMercator)
    arcpy.AddField_management(tempFans,"Range","DOUBLE","#","#","#","Range (meters)")
    arcpy.AddField_management(tempFans,"Bearing","DOUBLE","#","#","#","Bearing (degrees)")
    arcpy.AddField_management(tempFans,"Traversal","DOUBLE","#","#","#","Traversal (degrees)")
    arcpy.AddField_management(tempFans,"LeftAz","DOUBLE","#","#","#","Left Bearing (degrees)")
    arcpy.AddField_management(tempFans,"RightAz","DOUBLE","#","#","#","Right Bearing (degrees)")

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/Trajectory_Path.py   defense-and-intel-analysis-toolbox(Download)
    # create output layer
    arcpy.CreateFeatureclass_management(os.path.dirname(outFeature),os.path.basename(outFeature),"POLYLINE","","ENABLED","ENABLED",prjWebMercator)
    arcpy.AddField_management(outFeature,"Bearing","DOUBLE","","","","Bearing from north (deg)")
    arcpy.AddField_management(outFeature,"ElevAngle","DOUBLE","","","","Elevation angle from surface (deg)")
    arcpy.AddField_management(outFeature,"InitV","DOUBLE","","","","Initial velocity (m/sec)")
    arcpy.AddField_management(outFeature,"MaxHeight","DOUBLE","","","","Maximum projectile height (m)")
    arcpy.AddField_management(outFeature,"Range","DOUBLE","","","","3D range (m)")

src/a/r/arcapi-HEAD/arcapi.py   arcapi(Download)
        oldF = [f for f in flds if f.name.lower() == col.lower()][0]
        if alias == "": alias = newcol
        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)
        if len(f) > 2:
            flength = int(f[2]) if str(f[2]).isdigit() else '#'
        arcpy.AddField_management(out_tbl, fname, ftype, '#', '#', flength)
    # rewrite all tuples
    fields = [c[0] for c in cols]

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeRings2.py   defense-and-intel-analysis-toolbox(Download)
    delete_me.append(tempTable)
    arcpy.CreateTable_management(os.path.dirname(tempTable),os.path.basename(tempTable))
    arcpy.AddField_management(tempTable,"POINT_X","DOUBLE")
    arcpy.AddField_management(tempTable,"POINT_Y","DOUBLE")
    arcpy.AddField_management(tempTable,"Range","DOUBLE")
    arcpy.AddField_management(tempTable,"RingID","LONG")
    arcpy.AddField_management(tempTable,"RingRadius","DOUBLE")

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/FM5-33CCM.py   defense-and-intel-analysis-toolbox(Download)
    if debug == True: arcpy.AddMessage(str(time.strftime("RasterToPolygon: %m/%d/%Y  %H:%M:%S", time.localtime())))
    arcpy.RasterToPolygon_conversion(boundaryClean,slopePoly,"NO_SIMPLIFY","VALUE")
    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
    # vehicleTable[name] = [classname,name,weight,maxkph,onslope,offslope]
    # vehicleParams = vehicleTable[inputVehicleType]
    arcpy.AddField_management(slopePoly,"f1","DOUBLE")
        tileClip = os.path.join(scratch,"tileClip")
        arcpy.CreateFeatureclass_management(os.path.dirname(tileClip),os.path.basename(tileClip),"POLYGON","#","#","#",srAOI)
        arcpy.AddField_management(tileClip,"FnetID","LONG")
        arcpy.CalculateField_management(tileClip,"FnetID",tileOID)
        deleteme.append(tileClip)
        diagonals = os.path.join(scratch,"diagonals")
        arcpy.CreateFeatureclass_management(os.path.dirname(diagonals), os.path.basename(diagonals), "POLYLINE", "#", "#", "#", arcpy.Describe(slopePoly).SpatialReference, "#", "#", "#", "#")
        arcpy.AddField_management(diagonals,"RNDID","LONG")
        deleteme.append(diagonals)
        rows = arcpy.da.SearchCursor(randomPoint,["OID@","SHAPE@XY"])
        arcpy.Statistics_analysis(pointIdentity,stats2,[["COUNT_ID","MEAN"]], "SlopeCat")
        deleteme.append(stats2)
        arcpy.AddField_management(stats2,"f2","DOUBLE")
        #
        # CALCULATE F2

src/g/e/geoprocessing-tools-for-hadoop-HEAD/JSONUtil.py   geoprocessing-tools-for-hadoop(Download)
            if field_type == u'String' :
                field_type = 'TEXT'
            arcpy.AddField_management(in_mem_fc, field[u'name'], field_type, "", "", (field[u'length'] if field.has_key(u'length') else ""), field[u'alias'], True)
            #keep original field list to access json attributes while inserting into new table (new table can have different field names after validation)
            attributeFieldList.append(field[u'name'])

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/CreateRangeFanBoxes.py   defense-and-intel-analysis-toolbox(Download)
 
    outputExtentBoxes = arcpy.CreateFeatureclass_management(os.path.dirname(outputExtentBoxes),os.path.basename(outputExtentBoxes),"POLYGON","#","DISABLED","DISABLED",inputFeatureSR)
    arcpy.AddField_management(outputExtentBoxes,"RFID","LONG")
    arcpy.AddField_management(outputExtentBoxes,"Bearing","DOUBLE")
    arcpy.AddField_management(outputExtentBoxes,"Range","DOUBLE")
    arcpy.AddField_management(outputExtentBoxes,"Width","DOUBLE")
    arcpy.AddField_management(outputExtentBoxes,"LeftAz","DOUBLE")

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFansByFeature.py   defense-and-intel-analysis-toolbox(Download)
    arcpy.AddMessage("Creating out features ...")
    arcpy.CreateFeatureclass_management(os.path.dirname(outFeature),os.path.basename(outFeature),"Polygon","#","DISABLED","DISABLED",webMercator)
    arcpy.AddField_management(outFeature,"Range","DOUBLE")
    arcpy.AddField_management(outFeature,"Bearing","DOUBLE")
 

  1 | 2  Next