Tag Info

New answers tagged

0

I am just considering your attached image only. Create a string variable (i see "Vendors" what you created) for "Code Value" and another for "Code description" (say you created "My Coded Value Description") as string. Then double click in the tools' "Code Value" and write %Vendors% ;again double click on "Code Description" and write %My Coded Value ...


0

If you are trying to create a shapefile for each station with these 31 fields (daily weather readings) and your rows contain weather station records, you are making a logical mistake. Your Make XY Event tool expects two fields to yield locations but Iterate Field will return only one (field, field value). So, the tool becomes blank expecting to be introduced ...


0

I used IDV ( Integrated Data Viewer) software to extract (subset the .nc files). This gives 120 ( in the 2001-2010 period) monthly data. I used IDV again to process the monthly .nc files into annual means using a built-in timeseries average formula for each year. Data>Formula>Grids>Timesteps>Average Timesteps.This yields annual means. The annual means were ...


1

Output Group Layer Name is the name of the group layer that will store the results of the trace as a selected set. Based on your scenario, there must be one feature layer (e.g. SourceFeatureLayer) inside that group layer that you have to a get a reference to to export it to a Feature Class. You should use the name of output group layer concatenated to the ...


1

I was experiencing a similar issue with my iterating model. I was calculating a field in a series of tables to equal the names of the tables. I was left with blank fields. Since the data type is string, the expression needed to include quotes around the substituted variable, such as '%Name%' as opposed to %Name%. With this change, the model worked as ...


1

This is an old and long document from the 9.3 Help solved my problem. On right clicking the model and opening the properties, there was the option to use relative paths.


1

I was able to get around the problem by removing all data from the spreadsheets except the xy coordinates and place each sheet of the workbook in their own .xlsx file in one folder to be iterated. This was the only solution I found for my data.


1

You need to do a dissolve before the sum, to amalgamate the duplicates into one row. This would be because a track zigzags over the boundary so after intersect there's multiple instances = multiple lines. Dissolve will only work for feature classes, not tables, so it must be done just after the intersect. If you have a table then summarize with summary ...


0

The answer to your question is "No". It sounds like you're wanting to find the nearest intersection to the west of each house. If you want the nearest intersection following the road, you'll need the Closest Facility tools in the Network Analyst extension. If you want the nearest intersection in a straight line, a possible solution mightbe: create lines ...


1

If you have the spatial analysis extension, you should be able to get good results with the spatial join tool using a one-to-many operation. eg. arcpy.SpatialJoin_analysis(points_file, buffers_file, output_file, "JOIN_ONE_TO_MANY") You can also choose which fields you would like to keep, so you can just keep the field which identifies the buffer.


0

I created a new text field, Field Calculated the integer field to it, and it ran fine, so I guess the issue was with the integers.


1

I would suggest try using the model only tool parse path to force the name into your copy features tool. You can find the parse path tool under the same menu as the feature selection iterator. For the parse path tool select name and use the name of the variable for the string variable substitution. Also make it a precondition to copy features.


0

The join is not technically a layer in ModelBuilder's mind. I would try adding the 'Make Feature Layer' tool before Copy Features.


2

The following is a Python script that uses itertools.groupby for a very efficient grouping approach. itertools creates a list of lists (i.e. grouped pairs), that is then iteratively passed to the Mosaic To New Raster (Data Management) tool. import arcpy, itertools, os # Define the input and output workspaces arcpy.env.workspace = ...


0

I don't have an answer to your exact requirements, but if you don't mind having one feature that is the result of the 'XY to Line' tool, this could work. You can overwrite the result each time you run the script. It would look something like this: # Import system modules import arcpy from arcpy import env arcpy.env.workspace = "c:/workspace" ...


1

This is a Model Builder solution by using Calculate Value tool (this is how Python scripting starts for many model builders :)) by assuming your rasters are in one workspace and their names are generated by using time stamps (which allows sorting, i.e., ascending order will yield correct TOP and BOTTOM parts): Here are the specifics of each Calculate ...


0

If the first 35 characters are always the same for a pair of bottom/top images, then the following is a good starting place. Regex would be useful for more advanced matching techniques: #Note that the list of files doesn't have to be in order. files = ["LS7_ETM_NBAR_150_-027_2011-01-22T23-47-13.tif", ...


0

I finally got it to work by making "Maintain fully qualified names" a variable from the environment. I did it for both the make feature layer and copy features just in case. I also made another variable for field info, but I'm not sure if that had anything to do with it working. It's really frustrating that changing the environment settings alone doesn't ...


0

You need to manually add the field to your dissolve tool input. There is a button called "Add Field" just below the dissolve field selection. You can also input any field name you want into statistics field(s), even if it doesn't appear in the list.


0

You could also use "%Name%".replace(".tif","") in Calculate Value in Model Builder


0

i am not sure if you got this answered . i am not very good with model builder , but your basis of your problem seemed similar to the one i had when i was making layers for each unique value within a feild. I was using the value for the deinfation query and the name. But i ran into problems as the value could be john/ street. So when it was used in the ...


1

Use a try catch to fetch error messages from the gp object. try { GP.Execute("Creation", parameters, null); } catch(exception ex) { Messagebox.Show(GP.GetMessages(<severity>)); }


0

You should be able to use this option: http://resources.arcgis.com/en/help/main/10.1/index.html#//001w00000008000000 I am sure you can get there with field mappings if that doesn't work, but it would likely be a lot more lines of code than what youd expect. https://geonet.esri.com/thread/30539


0

Just an idea but if your output was a GeoDatabase Featureclass rather than a Shapefile you could use the Alter Field tool to rename it back as part of the work flow of the model?


1

Make your current output a temporary dataset and then run Append GP tool to add the results into a final output dataset.


0

You can run your cell statistics with all the rasters (GRIDs) as they are. Provided you haven't put them into folders that are too deep in the folder structure (more than 128 characters), but there are ways to get around even that: In a command window type SUBST /?, this will show you the help for the subst command. You can set a 'fake' drive to a path deep ...



Top 50 recent answers are included