Tag Info

New answers tagged

1

I know this is an old thread, but I think there are much easier answers to your question. If you want to classify your data by Standard Deviation, you can choose this classification option under the Symbology tab of Layer Properties. Once you do that, you can see, very rapidly, where the stdev breakpoints are, and can then use those breakpoints in any ...


2

Simplest answer is to make your input a pre-condition for the tool. You can select the tool's properties and mark that input as a pre-condition or connect them with the "Connect" tool and select precondition from the context menu. By default that will make it a dashed line connecting them, but I believe you can change some of the display settings if really ...


0

In ModelBuilder, you use Iterate Feature Classes to loop through the shapefiles, then use Collect Values to send the iterator values to Merge. It will look like this:


7

It would be easier with arcpy. for i in range(10000): pol_list = [] for j in range(30): pol_list.append("a" + str(i*30 + j + 1) + ".shp") arcpy.Merge_management(pol_list, "b" + str(i+1) + ".shp") EDIT: for a feature class inside a geodatabase, you don't need the + ".shp" anymore, and you can define the workspace using : ...


0

It's late, I'm not thinking terribly straight, and I haven't done this in several months, but it sounds like you need to add a Make Feature Layer step between your SQL query and your Make Query Table in the model. Your selection output is the input for the Make Feature Layer and the output of that is your input for the Make Query Table. Tools in ...


0

This is a Question where I think your best way forward will be to contact your local Esri Support because, if they can reproduce what you are seeing using your data and model, then they should be able to submit it to the developers responsible for ModelBuilder to analyse it further than the limited troubleshooting suggestions that we can offer here.


0

I'm not sure how this could be done in ModelBuilder without creating an intermediate raster or zonal layer as was suggested. However, it is pretty straightforward in python. Maybe there is some way to add a python script into the ModelBuilder flow. I haven't done that before, so I can't say. Here is an example of how the two steps would be carried out in the ...


1

You can do this using the Calculate Value tool to modify the "Name" string variable to replace spaces with underscores. When you are saving the Spatial Join feature class output, you can then use inline variable substitution: C:\gisworkspace\WORKSPACE\testing_workspace\%output_value%.shp ....where 'output_value' is the output name from the Calculate value ...


1

The following model will achieve what you require: Your screen shot shows fields SAMPLE 1 to 9 so set the For iterator to this. Convert your lat/long into an event layer which feeds into the Spline tool. Note the use of in-line substitution to create the field name that will be the Z field. The same is used to create unique output raster names.


0

If you run Zonal Stats (max) this will "fill" your zone with that maximum value. In a second step you will then need to ask the raster calculator: Where is the Zonal stat grid equal to the original grid? Or something like: [zonal_out] = in_raster This will give you the pixels with the max values as calculated from the zonal stats tool.


3

The easiest way to do this would be to use the arcpy.ValidateTableName(fc, out_workspace) function, which will automatically convert any invalid characters (like spaces) into valid characters (underscores).


1

Yikes. This all sounds really painful for many reasons, not the least of which being that the ModelBuilder to Python exporter is quite flawed. I hope you commit the .tbx as well since if you actually need to revert back to a working model that's going to be the only option that is actually guaranteed to work. It may be easier to bite the bullet and just ...


1

you can use the tool called "symmetrical diffrence" to create a new feature class. If you don't have an advanced licence, you can make an union then select by attribute the features with one of the two origin ID field equal to -1 If you don't want it, you can select all feature (using select layer by attribute with SWITCH_SELECTION in model builder), then ...


3

There is a detailed discussion about this here :http://forums.arcgis.com/threads/3644-Generate-a-grid-of-latitude-values. William Huber & Curtis Price have offered a solution which involves using the FlowAccumulation tool in ArcMap. I haven't tried it but looks straightforward to me. Curtis Price has also posted some suggestions here : ...


0

If you are editing a check-out database and reconciling to SDE, in your disconnected edit tools there is 'Export to Delta' this (from memory) has a table of the deleted records and a feature class of the added records. Modified features occur in the delete table and in the adds feature class. Deleted records occur only in the delete table. Added records ...


0

I would just do something like this: field = "AveragePrice" values = [row[0] for row in arcpy.da.SearchCursor(fc, field)] top_three = sorted(values)[-3:] query = "\"{0}\" in {1}".format(field, tuple(top_three)) arcpy.MakeFeatureLayer_management(fc, "top_3_layer", query)


2

I assume you are wanting an output along the lines of the ASCII gridded XYZ format (or variation on this theme). There are a few simple approaches to this depending on what licence and modules you have. What I would not do, though, is manually iterate over the raster to generate your XYZ file. You could do that but it will take time to write and debug and ...


2

According to the help the Make Query Table tool takes a Table View as input. In your parent model, right click on the output of submodel 3 and select the properties and make sure data type is of type Table View.


1

Your problem is likely due to how your model handles bit-depth. EVI, like NDVI, ranges from -1 to 1 and has a practical range of 0 - 1. Therefore, if you try and perform the EVI (or NDVI) calculation and save it as an integer type raster (e.g. signed 8 bit), the output will appear to be black, or all one value. Rather, you need to save the output as a ...


4

Here is one way it can be done using the Calculate Value tool as you suggested. I put the code in the code block for easier reading...but can be done just as easily right in the expression line only: "%Name%".rstrip("utm83") + "NAD83" The expression could strip a certain number of characters instead of the string "utm83" as I have done: "%Name%"[:-5] + ...



Top 50 recent answers are included