# Analysis

After the Data Collection and Processing is complete, the analysis steps are completed via Script Tools in the order listed. The Script Tools are located in the PHB Pro Project Toolbox. Below each Tool there is a description of the analysis that is being completed.

## 1. Create Streets Layer

* **Streets for PHBs ASMP Script Tool**&#x20;
  * **Note:** You must login as ATD Admin (or your own account if you have rights to the layer) to the maint.sde connection under databases before running this tool
  * This Script Tool processes the ASMP Street Network feature class that is located on GISDM.
  * Clips the layer based on the City of Austin Full Purpose Jurisdiction boundary where Existing Cross Streets <> DNE (does not exist).
  * Unnecessary ASMP Street Network fields are deleted from the attribute table.
  * Creates a subset of the complete layer based on Street Level.
  * Adds all fields for the Data Driven PHB Ranking Process.
  * Identity with the ASMP Intersection Polygon layer to split the street segments into small, more equal sized segments.

## 2. Data to PHB Data FGDB

* **Data to PHB Data Script Tool**&#x20;
  * This Script Tool will copy all data layers that are necessary to perform the analysis from the Data Collection and Scratch FGDBs, including the Street Select PHB layer that was created in step 1.

## 3. Generate Near Tables

* **Demand Risk Safety for PHBs ASMP Script Tool**&#x20;
  * This Script Tool Generates Near Tables based on the distance from street segments in the Street Select PHB layer to many of the feature classes that participate in the analysis.
  * A Frequency is then completed on most of the output Near Tables.
  * All Near Tables and Near Table Frequencies are saved to the PHB Data FGDB.

## 4. PHB Criteria Ranking

* **PHB Criteria Ranking ASMP Script Tool**&#x20;
  * This Script Tool analyzes the Street Select PHB layer against all input category data. Each criteria field in the table is calculated, which in turn populates the Total fields (Demand, Risk, Safety), and finally the Total Rank field.
  * The final step of the Tool creates the Street Select PHB Final feature class, which is a subset of Street Select PHB where all segments within 300' of a signal are removed.

## 5. Final PHB Data to AMD

* **Copy data to Arterial Management folder** :open\_file\_folder:&#x20;
  * The final step of the process is to copy the updated PHB Data FGDB from the Data folder to the AMD folder in the PHB directory.&#x20;
  * Before copying the FGDB, move the last PHB Data FGDB into the Archive directory and rename it to PHB Data yyyymmdd FGDB (use today's date to make things simpler).
  * From the Data directory, copy the PHB Data FGDB to the AMD directory.
  * Since the most current FGDB always has the same name, AMD will not have to update data connections in their working Projects.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://atd-dts.gitbook.io/atd-geospatial/arterial-management/data-driven-phb-ranking/analysis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
