POST
|
Curtis, I added a Calculate Value tool and calculated a value, with no luck (the value did not validation). I tried setting the data type to variant, table and table view without any luck as well. I did not see a data type of value table, so I was unable to test that. When the output of the calculate value tool was set to a data type of table or table view, the output was not included in the options for Height Field.
... View more
07-26-2018
12:33 PM
|
0
|
1
|
604
|
POST
|
For some reason, the Create TIN tool is not taking the value captured by the tool validator as a valid height field. Any thoughts on why this might be the case? I have tired passing the contents of the value as numerous variable types to no luck. The tool did work about six months ago, on the same machine but for some reason has stopped working.
... View more
07-26-2018
06:28 AM
|
0
|
3
|
729
|
POST
|
I have a five lines feature classes that I originally created individual TINS (Create TIN gp tool) for, from the TINS I created rasters (TIN to Raster gp tool). I then mosaicked all the grids into one master grid(Mosaic To New Raster gp tool) using the mosiac operator of maximum. Looking for a way to be more efficient, I merged (Merge gp tool) the five line feature classes into one line feature class, then converted the lines to a TIN (Create TIN gp tool) and the TIN into a grid (TIN to Raster gp tool). All feature classes are in a file geodatabase. When I do raster math subtracting one grid from the other, I am seeing massive differences (almost 50ft). I can understand some differences on the edges where the tinning is behaving differently than the mosaicing, however there are 10 foot differences between the line features. Does anyone have any ideas on what might be causing the problems, and which data is correct? Thanks
... View more
12-15-2017
09:07 AM
|
0
|
0
|
648
|
POST
|
After speaking with ESRI support, this issue has been logged as bug 000085746-When using multiple Select Data Tool (over two) to build the path for the input feature class for the Create Tin tool, the parameter for the tool becomes invalid.
... View more
03-19-2015
11:34 AM
|
0
|
1
|
1089
|
POST
|
I have set all the inputs and output manually, and it works fine. It seems not to like the output path as a variable.
... View more
02-19-2015
06:29 AM
|
0
|
0
|
1089
|
POST
|
I have a model(see graphic) that iterates through multiple folder workspaces and: Finds a geodatabase name (calculated using the calculate values tool) Finds a feature data set(RasResults) Feature class(XSCutlines) The feature class is then used as the input feature class parameter for the to create TIN tool. The TIN then should be saved in the same folder that the geodatabase was found in(the folder path is also being calculated by the calculate values tool). The problem is, it appears that the create tin tool is not accepting the value as valid output TIN as no TINs are ever created. Any help would be appreciated. Thanks Kevin
... View more
02-18-2015
12:33 PM
|
0
|
5
|
5195
|
POST
|
D'oh, I cannot believe that I missed spelling and variable errors. Although, I would have missed the spacing in the quotes. I appreciate everyone's help, the script is up and running as we speak! Once again, many thanks!
... View more
10-22-2013
01:06 PM
|
0
|
0
|
678
|
POST
|
Sorry for the delay in my response, you know how it goes always a thousand different things to do. 🙂 I originally set the number of bands by looking at raster data set properties. I thought maybe I had a rouge raster with a different amount of bands, so I went back and checked every input raster and they are all the same. (See below) [ATTACH=CONFIG]28511[/ATTACH] Any thoughts??
... View more
10-22-2013
06:11 AM
|
0
|
0
|
678
|
POST
|
I am trying to create a TIN from a cross section layer and then turn that TIN into a raster. The catch is, the TIN tool uses the alias name not the field name (I wish I knew why), and the data has different alias names for the same fields. Does anyone know if you can use the field.aliasName as an input for the TIN tool (or for that matter as an output for the raster tool)? The script seems to work if I hard code the paths, however I get a syntax error by using the field.aliasName. I tried making field.aliasName a variable and substituting that way, however no luck. Any help would be greatly appreciated!
# Set Enviromnent Settings
from arcpy import env
env.overwriteOutput = True
# Check out any necessary licenses
arcpy.CheckOutExtension("3D")
# Argument 1 is the XSCutlines Feature Class
Input_Feature_Class = arcpy.GetParameterAsText(0)
# Argument 2 is the Directory Rasters will be stored in
Output_Raster = arcpy.GetParameterAsText(1)
fieldList = arcpy.ListFields(Input_Feature_Class,"P00*","Double")
for field in fieldList:
print "Field Name: " + field.name
print "Alias: " + field.aliasName
if "FEMA" in field.aliasName:
#Process: Create TIN
print "Creating " + field.aliasName + " TIN"
arcpy.CreateTin_3d(Output_TIN, "", Input_Feature_Class field.aliasName hardline <NONE>, "True")
print arcpy.GetMessages()
# Process: TIN to Raster
print "Converting TIN to RASTER"
arcpy.TinRaster_3d(Output_TIN, Output_Raster + "\\" + fieldaliasName, "FLOAT", "LINEAR", "CELLSIZE 3", "1")
print arcpy.GetMessages()
print "Complete"
... View more
10-21-2013
01:39 PM
|
0
|
0
|
465
|
POST
|
Xander, Thanks for you help, the advice about environments and looping was extremely helpful. I have run into another problem. I keep on getting the below error: <class 'arcgisscripting.ExecuteError'>: Failed to execute. Parameters are not valid. ERROR 000157: Input and target dataset should have the same number of bands Failed to execute (MosaicToNewRaster). When I run the tool in ArcMap with the exact same settings, the tool completes no problems. Any thoughts?
# Import modules
import arcpy
import os
# Set enviroment settings
from arcpy import env
env.overwriteOutput = True
# Argument 1 is the GeoRAS Directory
Input_Model = arcpy.GetParameterAsText(0)
# Argument 2 is the 100-Year Floodplain
FP_Poly = arcpy.GetParameterAsText(1)
#Local Variables
Count = 0
P004 = 'wsgridp004'
lstRstr = ' '
#Set Workspace for list folders
env.workspace = Input_Model
Folders = arcpy.ListWorkspaces("*", "Folder")
print "Looking for Sub-Directories"
for Folder in Folders:
env.workspace = Folder
#Find the wsgridp004 Raster
print "Finding 100 YR WSEL Raster"
rasters = arcpy.ListRasters(P004, "Grid")
for raster in rasters:
Count = Count + 1
wse_grid = Input_Model + os.sep + "{0}{1}".format(P004 ,Count)
#Clip Raster with 100-Yr Floodplain Polygon
print "Clipping Raster"
arcpy.Clip_management(raster, "#", "wse_grid", FP_Poly, "0", "ClippingGeometry")
print arcpy.GetMessages()
if lstRstr == '':
lstRstr = wse_grid
else:
lstRstr = lstRstr + ";" + wse_grid
#Mosaics Clipped 100-Yr Floodplain Grids
print "Mosaicing Clipped Water Surface Grids"
arcpy.MosaicToNewRaster_management(lstRstr, Input_Model,"wse_100_Yr"," ", "32_BIT_FLOAT", "3", "1", "MAXIUM", "FIRST")
print arcpy.GetMessages()
print "Complete"
... View more
10-15-2013
10:55 AM
|
0
|
0
|
678
|
POST
|
Xander, Thanks for the suggestions, the first round of code was a rough. After Jim's help, I went back and spent a fair amount of time going back through the code and making changes that addressed a fair amount your points. However, I was having a rough time with the list rasters and array but you gave excellent tips. Thanks!
... View more
10-15-2013
06:14 AM
|
0
|
0
|
678
|
POST
|
As I am new to this, please forgive me for any glaring errors. I am trying to loop through a series of folders find the "wsgrid004" raster, clip it using a polygon, store the results in an array. Once all the rasters have been processed, mosaic them together. All I get is a general syntax error, any help would be appreciated! # Import modules import arcpy # Set enviroment settings env.workspace = Input_Model # Check out the ArcGIS Spatial Analyst extension license arcpy.CheckOutExtension("Spatial") # Load Required Toolboxes arcpy.AddToolBox (r"C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Data Management Tools.tbx") #Enable the Overwriting of Existing GeoProcessing Results gp.overwrite = "True" #Local Variables Count = 0 array = arcpy.Array() wse_grid = "wsgridp004 + Count" Folders = arcpy.ListWorspaces("*", "Folder") # Argument 1 is the GeoRAS Directory Input_Model = arcpy.GetParameterAsText(0) # Argument 2 is the 100-Year Floodplain FP_Poly = arcpy.GetParameterAsText(1) # Lists all folders in the Input_Model ListWorkspaces("*","Folder") print "Looking for Sub-Directories" for Folder in Folders: #Find the wsgridp004 Raster print "Finding 100 YR WSEL Raster" rasters = arcpy.ListRasters("wsgridp004", "Grid") for "wsgridp004" in rasters: Count = Count + 1 #Clip Raster with 100-Yr Floodplain Polygon print "Clipping Raster" arcpy.Clipmanagement("rasters", "#", "wse_grid", "FP_Poly", "0", "ClippingGeometry") print arcpy.GetMessages() array.add(wse_grid) #Mosaics Clipped 100-Yr Floodplain Grids print "Mosaicing Clipped Water Surface Grids" arcpy.MosaictoNewRaster_Management("array.next", "Input_Model", "wse_100_Yr","NAD_1983_StatePlane_Texas_Central_FIPS_4203_Feet", "32_BIT_FLOAT", "3", "1", " ", " " ) print arcpy.GetMessages() print "Complete"
... View more
10-11-2013
08:15 AM
|
0
|
9
|
845
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|