Tag Info

Hot answers tagged

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 : ...


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] + ...


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).


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 : ...


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

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 ...


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.


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

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 ...


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 ...



Only top voted, non community-wiki answers of a minimum length are eligible