本文整理汇总了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)
示例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)
示例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)