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

All Samples(23)  |  Call(20)  |  Derive(0)  |  Import(3)

src/a/g/agol-helper-HEAD/source/agol/common.py   agol-helper(Download)
          List of date field names as strings
    """
    return [field.name for field in arcpy.ListFields(fc, field_type="Date")]
#----------------------------------------------------------------------
def toDateTime(unix_timestamp):
        """
        desc = arcpy.Describe(dataset)
        fields = [field.name for field in arcpy.ListFields(dataset) if field.type not in ['Geometry']]
        non_geom_fields = copy.deepcopy(fields)
        features = []

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/FM5-33CCM.py   defense-and-intel-analysis-toolbox(Download)
 
    # make list of applicable factors
    fieldList = arcpy.ListFields(outputCCM)
    inputFactorList = []
    if "f3min" in fieldList: inputFactorList.append("f3min")
    dropFields = []
    if debug == True: arcpy.AddMessage("Dropping extraneous fields:")
    fieldList = arcpy.ListFields(outputCCM)
    for field in fieldList:
        if field.name not in ["OBJECTID","Shape","shape","SHAPE","SlopeCat","f_code","soilcode","roughnesscode","f1","f2","f3min","f3max","f4wet","f4dry","f5","ccm",r"Shape_Area",r"Shape_Length"]:

src/a/r/arcapi-HEAD/arcapi.py   arcapi(Download)
    >>> names('c:\\foo\\bar.shp', lambda f: f.name.startswith('eggs'))
    """
    flds = arcpy.ListFields(x)
    if filterer is None: filterer = lambda a: True
    return [f.name for f in flds if filterer(f)]
    >>> types('c:\\foo\\bar.shp', lambda f: f.name.startswith('eggs'))
    """
    flds = arcpy.ListFields(x)
    if filterer is None: filterer = lambda a: True
    return [f.type for f in flds if filterer(f)]
        nms,tps = [],[]
        i = 0
        for f in arcpy.ListFields(tbl):
            nms.append(f.name)
            tps.append(f.type)
    >>> tmp = head('c:\\foo\\bar.shp', 5, True, "|", " ")
    """
    flds = arcpy.ListFields(arcpy.Describe(tbl).catalogPath)
    fs = {}
    nflds = len(flds)
        d = arcpy.Describe(tbl)
        dcp = d.catalogPath
        flds = arcpy.ListFields(tbl)
        fnames = [f.name.lower() for f in flds]
        newcol = arcpy.ValidateFieldName(newcol, tbl) #os.path.dirname(dcp))

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/Concealment.py   defense-and-intel-analysis-toolbox(Download)
    # remove any unnecessary fields
    removeFields = []
    fields = arcpy.ListFields(outConcealment)
    for field in fields:
        if not (field.name in keepFields):

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/AddTravelTimeToRoads.py   defense-and-intel-analysis-toolbox(Download)
    # Add fields to inputFeatures
    fieldsToAdd = {"TF_MINUTES":"DOUBLE","FT_MINUTES":"DOUBLE"}
    fields = arcpy.ListFields(inputFeatures)
    fieldNames = []
    for f in fields: fieldNames.append(f.name)

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RLOS.py   defense-and-intel-analysis-toolbox(Download)
    removeSPOT = False
    isSPOTPresent = False
    fieldList = arcpy.ListFields(obs)
    # check if SPOT is in the fields
    for f in fieldList:

src/a/r/arc-open-HEAD/arc_open/esri2open/utilities.py   arc-open(Download)
from arcpy import ListFields,Describe,SetProgressorLabel,SetProgressorPosition,GetCount_management, SetProgressor, AddMessage
from os.path import splitext
 
#utility functions we will call more then once
 
#takes the input feature class and returns a dict with 
#	the field name as key and field types as values
def listFields(featureClass):
    fields=ListFields(featureClass)

src/e/s/esri2open-HEAD/Install/esri2open/utilities.py   esri2open(Download)
from arcpy import ListFields,Describe,SetProgressorLabel,SetProgressorPosition,GetCount_management, SetProgressor, AddMessage
from os.path import splitext
 
#utility functions we will call more then once
 
#takes the input feature class and returns a dict with 
#	the field name as key and field types as values
def listFields(featureClass):
    fields=ListFields(featureClass)

src/e/s/esri2topo-HEAD/scripts/esri2open/utilities.py   esri2topo(Download)
from arcpy import ListFields,Describe,SetProgressorLabel,SetProgressorPosition,GetCount_management, SetProgressor, AddMessage
from os.path import splitext
 
#utility functions we will call more then once
 
#takes the input feature class and returns a dict with 
#	the field name as key and field types as values
def listFields(featureClass):
    fields=ListFields(featureClass)

src/o/p/OpenColorado-Tools-and-Utilities-HEAD/Scripts/ArcGIS/10.0/Python/PublishOpenDataset.py   OpenColorado-Tools-and-Utilities(Download)
 
    # Get the field names
    fieldnames = [f.name for f in arcpy.ListFields(source)]
 
    # Exclude the OBJECTID field
 
        # Create a list of field objects.
        fields = arcpy.ListFields(layer_name)
 
        # Create an update cursor that will loop through and update each row.

  1 | 2  Next