New answers tagged modelbuilder
0
Use the Calculate Value tool with a bit of arcpy to retrieve the coordinate system of your raster then pass it to the Project tool as an output coordinate system.
In model builder, connect your raster dataset as precondition to the Calculate Value tool
Within the Calculate Value tool's code block, add this
def rasterPrj(raster):
return ...
2
Try this to get minimum cell size for collection of rasters:
Add the Calculate Value tool to your inner model (iterate selected rasters) after Collect Values.
Connect the Collect Values output as a precondition to Calculate Value.
Define a small function within Calculate Value (Code Block) as shown below.
def minCellSize(rasters):
rasterList = ...
2
You need to wrap the provided functionality in a geoprocessing function tool with a given set of input and output parameters. Then it can be used in many ways, such as directly from ArcToolbox, from the commandline, Python script or from Modelbuilder.
For details, see Custom geoprocessing function tools.
2
If you don't mind using a bit of arcpy you can implement the Describe function. As you iterate over your rasters simply use:
inRaster = 'C:\...\raster'
describeRaster = arcpy.Describe(inRaster)
cellSize = describeRaster.children[0].meanCellHeight # or .meanCellWidth
Now you can compare your cellSize variable to find the minimum.
EDIT:
You can get the ...
0
You can call arcpy in Model Builder for check lock schema.
Remove lock on feature class:
Remove lock on feature class
Interaction ArcPy with Model Builder
1
You can do it following these steps:
Define a case field within the Summary Statistics tool (some sort of ID field).
Use Join Field tool to join the summary table (by case field) back to your original layer
Use Feature Class to Feature Class tool to export out a new shapefile which includes the new statistic fields
Use Select Layer by Attribute tool to ...
1
Without knowing how all of your fields are created in the model, a possible solution is to make a variable out of a tool parameter and then feed those variables into the Delete Field tool. This avoids the problem of the fields not being selectable directly through the Delete Field tool.
...
3
Just use the Delete Field tool.
This tool deletes one or more fields from a table, feature class,
feature layer, or raster dataset.
After you get it linked up to your layer, it gives you checkboxes for all the fields you want to delete. If you they all start off with the same name (ie- NEAR_FID), you will probably end up seeing a series of ...
0
So problem solved. This post encountered a similar issue. It's possible to ignore the field selection in the join field tool. I was not able to use add join and run the iterators successfully.
http://forums.arcgis.com/threads/73410-Model-Builder-Using-iterator-and-Add-Join-tools-to-join-tables
The starting materials for this process is a spreadsheet of ...
1
If I understand your question properly, you should use raster algebra to produce a single band raster rather than Composite Bands to produce a multiband raster. Sounds like you are calculating multi-direction-oblique-weighted (MDOW) hillshades. As you know the MDOW hillshade is a combination of hillshades at various azimuth directions (e.g. 0, 90, 180, 270 ...
2
This can be done using a conditional (Con) statement (see example below) using the raster calculator in ArcToolbox > Spatial Analyst > Raster Algebra > Raster Calculator. What I do not understand is how you are getting negative values in slope with -60 to 60 bounds.
Assuming that your values are bounded to -60 to 60 with a threshold of -6 the Con statement ...
0
Was ArcGIS for Desktop installed as Administrator?
Some other things to try:
1) Check that you have read/write on the Toolbox.
2) Try running ArcGIS as Administrator.
3) Turn off User Account Control (in the Control Panel > Users Accounts)
Good luck!
4
Use the model only tool called Parse Path.
Right-click on the ModelBuilder screen > Model Only Tools > Parse
Path.
Make sure to select the "NAME" Parse Type, which will pass on
"LST01011990" to the next tool
Connect "Value" to the next tool as a precondition, so that the name
is parsed before the Raster to ASCII is run
Call the raster name in the raster ...
3
You can do this using Calculate Value and a bit of Python:
Expression:
make_fieldname(%Points%)
(where Points is the value you actually want to use, I just guessed)
Code Block:
def make_fieldname(input):
return '_'.join(input.split(' ')[1:])[:10]
This will take your input value, split it at the spaces, strip off the first element (the year in ...
Top 50 recent answers are included



