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

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

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/FM5-33CCM.py   defense-and-intel-analysis-toolbox(Download)
        deleteme.append(clipSoils)
        # Join soils table
        arcpy.JoinField_management(clipSoils,"soilcode",inputSoilsTable,"soilcode")
        intersectionList.append(clipSoils)
 
        arcpy.Clip_analysis(inputSurfaceRoughness,fishnetBoundary,clipRoughness)
        # Join roughness table
        arcpy.JoinField_management(clipRoughness,"roughnesscode",inputRoughnessTable,"roughnesscode")
        intersectionList.append(clipRoughness)
 
        arcpy.Statistics_analysis(pointIdentity,stats1,[["ID","COUNT"]],"ID")
        deleteme.append(stats1)
        arcpy.JoinField_management(pointIdentity,"ID",stats1,"ID", "FREQUENCY; COUNT_ID")
        stats2 = os.path.join(scratch,"stats2")
        arcpy.Statistics_analysis(pointIdentity,stats2,[["COUNT_ID","MEAN"]], "SlopeCat")
        # join intercept stats table to slope polys
        arcpy.AddIndex_management(slopeClip,"SlopeCat","SlopeIndx")
        arcpy.JoinField_management(slopeClip,"SlopeCat",stats2,"SlopeCat")
 
        # copy to new

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/ConvertCoordinates.py   defense-and-intel-analysis-toolbox(Download)
    arcpy.AddMessage("Converting & appending GARS ...")
    arcpy.ConvertCoordinateNotation_management(intermed, scratchTable, X_Field__Longitude__UTM__MGRS__USNG__GARS__GeoRef_, Y_Field__Latitude_, Input_Coordinate_Format, "GARS", "JoinID", Spatial_Reference)
    arcpy.JoinField_management(intermed, "JoinID", scratchTable, "JoinID", "GARS")
 
    # Process: Convert Coordinate Notation (DD)
    arcpy.AddMessage("Converting & appending Decimal Degrees ...")
    arcpy.ConvertCoordinateNotation_management(intermed, scratchTable, X_Field__Longitude__UTM__MGRS__USNG__GARS__GeoRef_, Y_Field__Latitude_, Input_Coordinate_Format, "DD", "JoinID", Spatial_Reference)
    arcpy.JoinField_management(intermed, "JoinID", scratchTable, "JoinID", "DDLat;DDLon")
    arcpy.AddMessage("Converting & appending Degrees Decimal Minutes ...")
    arcpy.ConvertCoordinateNotation_management(intermed, scratchTable, X_Field__Longitude__UTM__MGRS__USNG__GARS__GeoRef_, Y_Field__Latitude_, Input_Coordinate_Format, "DDM", "JoinID", Spatial_Reference)
    arcpy.JoinField_management(intermed, "JoinID", scratchTable, "JoinID", "DDMLat;DDMLon")
 
    # Process: Convert Coordinate Notation (DMS)
    arcpy.AddMessage("Converting & appending Degrees Minutes Seconds ...")
    arcpy.ConvertCoordinateNotation_management(intermed, scratchTable, X_Field__Longitude__UTM__MGRS__USNG__GARS__GeoRef_, Y_Field__Latitude_, Input_Coordinate_Format, "DMS", "JoinID", Spatial_Reference)
    arcpy.JoinField_management(intermed, "JoinID", scratchTable, "JoinID", "DMS")
    arcpy.AddMessage("Converting & appending UTM ...")
    arcpy.ConvertCoordinateNotation_management(intermed, scratchTable, X_Field__Longitude__UTM__MGRS__USNG__GARS__GeoRef_, Y_Field__Latitude_, Input_Coordinate_Format, "UTM", "JoinID", Spatial_Reference)
    arcpy.JoinField_management(intermed, "JoinID", scratchTable, "JoinID", "UTM")
 
    # Process: Convert Coordinate Notation (MGRS)

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/CreateRangeFanBoxes.py   defense-and-intel-analysis-toolbox(Download)
    deleteme.append(tempCCNPoints)
    arcpy.ConvertCoordinateNotation_management(tempGeoPoints,tempCCNPoints,"POINT_X","POINT_Y","DD_2","MGRS","RFID",GCS_WGS_1984)
    arcpy.JoinField_management(outputWeaponPositions,"RFID",tempCCNPoints,"RFID",["MGRS"])
 
    # ENHANCEMENT: add Range Rings for each weapon position 

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeRings2.py   defense-and-intel-analysis-toolbox(Download)
    tempTableOIDFieldName = arcpy.Describe(tempTable).OIDFieldName
    ringOIDFieldName = arcpy.Describe(outputRings).OIDFieldName
    arcpy.JoinField_management(outputRings,ringOIDFieldName,tempTable,tempTableOIDFieldName,["Range","RingID"])
 
    # Delete junk field

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RasterOffRoad.py   defense-and-intel-analysis-toolbox(Download)
        arcpy.Clip_analysis(inputVegetation,inputAOI,vegetation)
        deleteme.append(vegetation)
        arcpy.JoinField_management(vegetation,"f_code",inputVegetationConversionTable,"f_code")
        # Convert vegetation to Raster using MIN or MAX field
        if min_max == "MAX":
        arcpy.Clip_analysis(inputSoils,inputAOI,clipSoils)
        deleteme.append(clipSoils)
        arcpy.JoinField_management(clipSoils,"soilcode",inputSoilsTable,"soilcode")
        # Convert soils to Raster using WET or DRY field
        if wet_dry == "DRY":
        arcpy.Clip_analysis(inputSurfaceRoughness,inputAOI,clipRoughness)
        # Join roughness table
        arcpy.JoinField_management(clipRoughness,"roughnesscode",inputRoughnessTable,"roughnesscode")
        intersectionList.append(clipRoughness)
        # Convert surface roughness to raster