Suzanne-Boden
Esri Regular Contributor
since ‎07-01-2014
41 Badges Earned
Expert Discoverer
View All Badges Earned
3 weeks ago
481 Posts created
151 Kudos given
51 Solutions
534 Kudos received
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

My Ideas

(0 Idea Submissions)

Latest Contributions by Suzanne-Boden

POST
0
3
1073
BLOG
0
0
868
POST
1
0
1135
BLOG


Here's a simple example that shows how.The Example

Almost every month of the year, Esri Training Services hosts one or more live training seminars. And for years, we've been doing three live broadcasts at the same times on each seminar day. From time to time, we evaluate whether our broadcast schedule is still suitable—do we need to adjust the broadcast times or number of broadcasts?

Examining the distribution of seminar attendees helps us answer these questions. For simplicity, this example focuses on U.S. seminar attendance.Step 1: Prepare the DataFinding the data needed for a GIS analysis is a common challenge. ArcGIS Online organizational subscriptions include access to a large content library. From within ArcGIS Pro, you have easy access to this content.PortalSearch_WorldTimeZones-300x246.jpg
  • Start ArcGIS Pro and open a blank project and a new map. Add the seminar attendee data.
  • In the Project pane, click the Portal tab, then click the icon for All Portal.
  • In the search box, enter world time zones.
  • Drag the feature layer into the map. Now search for usa states and drag the USA States (Generalized) feature layer into the map.

Because the focus is the U.S., clip World Times Zones to the extent of USA States.
  • Click the Analysis tab, then click the Clip tool in the tool gallery. Fill out the tool's parameters, then run the tool.ClippedTimeZones-300x192.jpg

When the tool finishes running, a new layer of U.S. time zones is added to the map.Step 2: Create Information

The Summarize Within tool will generate a new output layer that includes a count of attendee points within each time zone polygon.
  • In the Analysis tool gallery, click Summarize Within.
  • SummarizeWithin1-214x300.jpgIn the tool dialog box, specify Input Polygons, Input Summary Features, and the Output Feature Class.
  • Run the tool.

The tool output is added to the map with a single symbol legend. To better visualize attendance by time zone, apply a graduated colors legend.

Not surprisingly, the most populated time zone (Eastern) attracted the most attendees, followed by the Pacific time zone.Step 3: Share Your Work

These analysis results are useful to those who monitor live training seminar attendance patterns. You can share content you create in ArcGIS Pro with everyone in your organization, with members of organizational groups you specify, or even with the general public.FinalTZMap1-300x195.jpg
  • In the Contents pane, remove the World Time Zones and USA States layers. Turn off the USA time zones and basemap layers. Save the project.
  • Click the Share tab and click Web Map. Fill out the Item Description and choose to share to your organization (requires publish privileges).
  • Click Analyze to make sure there are no errors, then click Share.

When the share job completes, colleagues can view the web map in the ArcGIS Online map viewer or in ArcGIS Desktop.

And there you have it. It's never been easier to access an extensive collection of high-caliber data, use it for your project needs, apply analysis tools to generate new data, and share your work in a format that others can easily access and understand.
Related posts:Resources to learn more: -->
0
0
755
DOC
0
0
1748
BLOG
0
0
628
BLOG
2
0
1371
BLOG
"P" Is the Key
ModelNoParamsMSg-300x222.jpg

Uh oh. Now what?



Have you ever opened a model tool and seen the statement, "This tool has no parameters"? Maybe you closed the dialog box thinking the model had a fatal error.

Time to clear up the confusion. That statement is information, not an error message.

The model will run fine as-is, meaning it will run using the inputs and criteria specified by the model creator. You can't change anything. Go ahead and click OK to run the model.

Model parameters are things that can be changed. If they exist, you will see them when you open a model tool.

So what can be changed using a parameter? Just about anything—inputs, outputs, and tool-specific parameters. A good way to learn how to work with model parameters is to create a model, add its tools, and set the tool parameters as usual.

After the model is built (and saved), think about what criteria you would want to change when running it in the future. Running a model using different input data is a common need. Adding a parameter can meet that need.
ModelParam-300x143.jpg

The input to the Create Folder tool is a model parameter.

Allow for ChangeTo make a tool's input a parameter, in the ModelBuilder window right-click the input element and choose Model Parameter. It's that easy. The letter "P" above an element indicates it's a model parameter.
  • Tip: When you make an element a model parameter, the element name will display in the model tool. Element names can be cryptic, so a good practice when adding a parameter is to rename its element so that model users will understand what is expected. To rename an element, right-click it and choose Rename.

Here, the Create Folder tool input was renamed to "Set your workspace folder" (the original name was a folder path). With the new name, it will be clear that you can browse to a different workspace if you don't want to use the default location.

To make a tool parameter into a model parameter, first make the tool parameter a variable, then set the variable to be a model parameter. The Create File GDB tool has three parameters: Location, File GDB Name, and Version.

Suppose you want the ability to assign a different geodatabase name each time the model is run (perhaps you'll be creating multiple geodatabases as part of your project).
ToolParam-300x117.jpg

File GDB Name is now a model parameter.



In the model window, right-click Create File GDB, click Make Variable > From Parameter > File GDB Name.

The variable is added to the diagram with an arrow connecting it to the Create File GDB tool. To make the variable a model parameter, right-click it and choose Model Parameter. Now it too has a "P" above it.

In this case, "File GDB Name" is self-explanatory, so there's no need to rename the element.
4ModelParams-300x172.jpg

Descriptive parameter names help model users know what to do.



To support testing multiple scenarios, now suppose you want to be able select subsets of features for processing. In the example model, the Feature Class to Feature Class tool is used to convert a shapefile of ASAM incidents to a geodatabase feature class.

The tool has two parameters that make sense to designate as model parameters: Input Features (required) and an optional Expression parameter used to define a subset of features. Input Features is the location of the shapefile on disk, which could vary.

Right-click the Feature Class to Feature Class tool and click Make Variable > From Parameter > Input Features. Right-click the Input Features variable element and choose Model Parameter.

Repeat this process for the Expression parameter. Both of these model parameters will benefit from being renamed.
ModelTool-300x152.jpg

Model parameters exposed in the model tool.



After saving the model, close ModelBuilder and open the model as a tool to see the parameters.
  • Tip: If you don't like the display order of the parameters in the model tool, you can reorder them in ModelBuilder (Model menu > Model Properties > Parameters tab).

Notice the help text on the right side of the model tool. This is the Description text from the Model Properties dialog box.Less Is More

By allowing certain criteria to be changed, parameters increase model usability and are a valuable technique to explore what-if scenarios. However, as with anything, it's important to exercise restraint. Setting too many parameters defeats the other main advantage of a model—to simplify and speed up a geoprocessing workflow.

Remember, you can always open a model in ModelBuilder to tinker with individual tool settings and run the model to explore the result of your tinkering. Add parameters only for items you or others are likely to find most useful, such as the option to specify different input data or modify a key analysis tool setting. Put the rest of the model elements on auto-pilot.

In the next installment, you will go beyond basic techniques and learn some model power moves.

Related posts:
-->
0
0
1728
POST
2
1
4433
BLOG
2
0
4389
BLOG
0
0
1046
IDEA
-->
0
0
293
IDEA
-->
0
0
246
BLOG
3
1
1549
IDEA
-->
0
1
847
Activity Feed