New answers tagged

1

The answer in Use Get Field Value tool to calculate field? shows how you can accomplish this. In short, use the Get Field Value help (modelbuilder only tool) on the featureclass in question. Using its output variable name, supply that as an inline variable in your output featureclass parameter. If the GFV param name was called fieldValue, your output FC ...


1

you can replace the list raster with glob.glob in order to get the list of your raster : import glob, arcpy list_composites = [] list_images = glob.glob("path_to_your_image.SAFE\GRANULE\*\IMG_DATA\*B01.jp2") #first band in each folder for image in list_images: rasters = glob.glob(image[:-6]+"*") #all bands in one folder ...


0

http://proceedings.esri.com/library/userconf/proc14/tech-workshops/tw_471.pdf Running multiple renditions of slide # 5 might be your only option if you have 20 folders and then press play. I had Bare Earth / First Returns and ARCMAP only ran them one at a time taking 2 hours for over 800 tiles. A lesson learned if you move the datasets around and see a \ ...


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.


3

!a! is not valid Python. Is this a typo? Calculate Field defaults to the VB parser, so you'll want to change that to Python. Something like the following should work: str.format() for reference. arcpy.CalculateField_management(fc, b, "!{}!".format(a), "PYTHON_9.3") To simplify things, you can combine all your for loops into one: for fc in ...


6

The way I would set your task up would be to create a custom script which provides greater flexibility than the modeler but can still provide a similar interface to its users. You can create one from: Processing Toolbox > Scripts > Tools > Create new script Then copy/paste the script below and save it into C:/Users/You/.qgis2/processing/scripts. The ...


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.



Top 50 recent answers are included