Hot answers tagged

3

Depends on the machine specs and dataset size and number of points. One way to speed things up is to set the environment processing extent of the snap pour point tool. So if you are snapping a few points in a sub-catchment onto a flow accumulation for the whole of America then may be thats why... Try setting the extent to the extent of your study region. ...


3

You can use the Get Count tool from the Data Management toolbox, which Returns the total number of rows for a feature class, table, or layer


3

You could use the Summary Statistics tool. The input table would be that which you want to count the records of. The statistics could be any field, but let's say ObjectID/OID. The statistic type would be COUNT. The output table could be whatever you like, possibly even stored in_memory. Once the tool is run, the output table will have one record, and the ...


2

Check the options in the drop-down against a Text field rather than a Number field. They differ and may be why you don't see what you're expecting. Text field merge options: Number field merge options:


2

What you will need to use is Iterate Row Selection instead. See the ArcGIS help page for more information. If you then use Get Field Value you will be able to use the Name/Expression in other tools.


2

I have not used 9.3 for many years now. An alternative way to run your model is to right click on it and run in batch mode. You may be able to drag and drop multiple datasets in to the batch grid interface? I remember looping was awkward in 9.3 and the usual way of resolving things was to write a simple loop in python.


2

When you run Polygon to Raster, under Value field you need to specify "distance" (if you haven't changed the default of Multiple Ring Buffer). Then, the new raster will have as many unique values as there were unique distances, specified under field Value. This Value field is the one to reclassify, but until you run Polygon to Raster, ArcMap won't be able ...


2

You don't need a script to do get your input's basename and reuse it in parameters' names. Add the 'Parse Path' tool to your model and connect it to your input raster. Chose 'NAME' for the 'Parse Type' parameter: Then, in the parameters of the Extract by Mask tool, reuse this name variable (here called by its default name, 'Value') in the path of the mask ...


2

Indeed, marking intermediate parameters as Managed can cause issues. Below is an example of using the Raster Calculator and then Raster to Polygon. When using in_memory the model fails; when marking the intermediate outputs as Managed, the in_memory - even though exists in the output path - is ignored and the data is written to %temp%, as the Scratch folder. ...


2

The behaviour you describe sounds correct. The outputs of tools in your model are automatically intermediate, you need to right click on the green blobs and untick intermediate. These intermediate outputs persist when you run your model from within modelbuilder as modelbuilder needs this to happen so the "ready to run" state can be established. This does ...


1

The problems has been solved thanks to a user on GeoNet. Solution: elseif InStr( [Modified], nblaugh) then Score =7


1

Finally, I added a % sign before and after each tif file in each line and it worked. For eg. "%hydro_sg2.tif%"


1

Reading the output message of the geoprocessing tool in batch, I realized the batch is not looping as I expected. It seems it loops at each tool in the model for each line in the batch, rather than performing the entire model once and then passing the next line and so on. So, it was sufficient to append an "%n%" to the first output variable ("judete_100_L" ...


1

I haven't attempted to run any of my models in batch mode before, but it sounds like something is being held over from the first step. ArcGIS likes to hold on to layers and selections made when tools are run. It is possible that either the feature layer created in step one, or one of the selections created (step two or four) may still be held in memory and ...


1

An out-of-the-box ArcMap tool that can do this is Data Management Tools > Features > Minimum Bounding Geometry. This will create a polygon feature class containing one polygon that depicts the extent of your features. You can do different things with this tool. To create a polygon feature class containing a single feature depicting the extent of all ...


1

You might attempt to set a "precondition" by linking the mosaicmb variable to the Add Raster To Mosaic Dataset a second time, and choosing "precondition" when the connect tool of ModelBuilder shows it's context menu. A pre-condition will ensure the File Geodatabase and Mosaic Dataset will be created in advance of the Add Raster To Mosaic Dataset being run. ...


1

If you want to be able to assign arbitrary values to your scores, I'd use a python dictionary in your calculate field portion of your model. Here's an example code block... def find_val(x): return {1 : 10, 2 : 10, 3 : 10, 4 : 9, 5 : 9, 6 : 9, 7 : 9 }[x] On the left of the colon is your ranking value, and on the right is your score for that ranking. ...



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