当前位置: 首页>>代码示例>>Python>>正文


Python SSUtilities.createOutputTable方法代码示例

本文整理汇总了Python中SSUtilities.createOutputTable方法的典型用法代码示例。如果您正苦于以下问题:Python SSUtilities.createOutputTable方法的具体用法?Python SSUtilities.createOutputTable怎么用?Python SSUtilities.createOutputTable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SSUtilities的用法示例。


在下文中一共展示了SSUtilities.createOutputTable方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: createCoefficientTable

# 需要导入模块: import SSUtilities [as 别名]
# 或者: from SSUtilities import createOutputTable [as 别名]
    def createCoefficientTable(self, tableName):
        """Creates Output Coefficient Database Table for OLS.

        INPUTS:
        tableName (str): catalog path to the output table
        """

        #### Set Progressor ####
        ARCPY.AddMessage(ARCPY.GetIDMessage(84071))
        ARCPY.SetProgressor("default", ARCPY.GetIDMessage(84071))
        outPath, outName = OS.path.split(tableName)

        #### Set Up Field Names and Types ####
        inputFields = UTILS.getFieldNames(olsCoefFieldNames, outPath)
        inputTypes = ["TEXT", "DOUBLE", "DOUBLE",
                      "DOUBLE", "DOUBLE", "DOUBLE",
                      "DOUBLE", "DOUBLE", "DOUBLE"]

        #### Set Up Input Data ####
        inputData = []
        coefList = list(self.coef.flatten())
        for rowInd, rowVal in enumerate(coefList):
            inputData.append( (self.varLabels[rowInd], rowVal,
                               self.seCoef[rowInd], self.tStats[rowInd],
                               self.pVals[rowInd], self.seCoefRob[rowInd],
                               self.tStatsRob[rowInd], self.pValsRob[rowInd],
                               self.coefSTD[rowInd])
                             )

        #### Write Coefficient Table ####
        UTILS.createOutputTable(tableName, inputFields,
                                inputTypes, inputData)
开发者ID:rvinc66,项目名称:ArcGISRuntimeBook,代码行数:34,代码来源:OLS.py

示例2: createOutputTable

# 需要导入模块: import SSUtilities [as 别名]
# 或者: from SSUtilities import createOutputTable [as 别名]
    def createOutputTable(self):
        """Create output table for a given set of results."""

        #### Message and Progressor ####
        msg = ARCPY.GetIDMessage(84008)
        ARCPY.AddMessage(msg)
        ARCPY.SetProgressor("default", msg)

        #### Create/Finalize Output Table Name ####
        UTILS.createOutputTable(self.outputTable, self.outFieldNames,
                                self.outFieldTypes, self.tableResults)
开发者ID:rvinc66,项目名称:ArcGISRuntimeBook,代码行数:13,代码来源:ExploratoryRegression.py

示例3: createDiagnosticTable

# 需要导入模块: import SSUtilities [as 别名]
# 或者: from SSUtilities import createOutputTable [as 别名]
    def createDiagnosticTable(self, tableName):
        """Creates Output Diagnostic Database Table for OLS.

        INPUTS:
        tableName (str): catalog path to the output table
        """

        #### Set Progressor ####
        ARCPY.AddMessage(ARCPY.GetIDMessage(84098))
        ARCPY.SetProgressor("default", ARCPY.GetIDMessage(84098))
        outPath, outName = OS.path.split(tableName)

        #### Set Up Field Names and Types ####
        inputFields = UTILS.getFieldNames(olsDiagFieldNames, outPath)
        inputTypes = ["TEXT", "DOUBLE", "TEXT"]

        #### Set Up Input Data ####
        inputData = []
        diags = [84114, 84249, 84018, 84021, 84024, 84027, 84030,
                 84033, 84036, 84039, 84042, 84045, 84062]

        desc = [84116, 84250, 84020, 84023, 84026, 84029, 84032,
                84035, 84038, 84041, 84044, 84047, 84063]

        diags = [ ARCPY.GetIDMessage(i) for i in diags ]
        desc = [ ARCPY.GetIDMessage(i) for i in desc ]

        stats = [self.aic, self.aicc, self.r2, self.r2Adj,
                 self.fStat, self.fProb, self.waldStat, self.waldProb,
                 self.BP, self.BPProb, self.JB, self.JBProb, self.s2]

        for rowInd, rowVal in enumerate(stats):
            inputData.append( (diags[rowInd], rowVal, desc[rowInd]) )

        #### Write Diagnostic Table ####
        UTILS.createOutputTable(tableName, inputFields,
                                inputTypes, inputData)
开发者ID:rvinc66,项目名称:ArcGISRuntimeBook,代码行数:39,代码来源:OLS.py


注:本文中的SSUtilities.createOutputTable方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。