Tutorial - Itree Eco Python Tools
Tutorial - Itree Eco Python Tools
Acknowledgement
This project was supported by the Urban & Community Forestry Program of the U.S.
Forest Service, Department of Agriculture State & Private Forestry, Region 8 (Atlanta)
under cooperative agreement [14-CS-11330144-078] between Georgia Tech and the
USDA Forest Service (Urban Forestry South, Athens, Georgia)
Project Title
Data Model for GIS Database Management and i-Tree Eco
Project Period
8/15/2014 - 12/18/2015
Project Team
Rama Sivakumar (PI), Senior Research Engineer, Center for GIS, Georgia Tech
Ryan Bowman, Graduate Student
Manasvini Sethuraman, Graduate Student
Overview
Along with the geodatabase model, there are a set of Python scripts that transfer data between
the ArcGIS geodatabase and i-Tree Eco software. This enables the users to quickly derive the tree
inventory’s ecosystem services through the i-Tree Eco model, then spatially display the results
in ArcMap. The first script will create an Access database that is in compliance with i-Tree Eco’s
domains, the second script will copy the data from i-TreeEco feature class to the newly created
Microsoft Access database, while the third script will join the results from the i-Tree Eco model to
the existing feature class to enable visual representation of the ecosystem services.
Now that the tool setup is complete, let’s use the tools!
Page: 2
2. Running the Populate MS Access Database script
4--> Double click on “1- Create MS Access Database” script. The tool window appears.
4--> Click the Open Folder button next to the Folder Name field.
4--> Navigate to the folder where you want to create the MS Access database. Click Open.
4--> Type Tutorial_FullInventory under Database Name. Click OK (Fig. 2.1).
4--> If the script runs successfully, the results window should say Succeeded. Close the
window.
The script performs validation, the results of which are stored in a .csv file in the same folder as the MS
Access Database. The error log gives a short description and a brief explanation of the error. The records
which produce errors will not be added to the MS Access database. How- ever, the user can always correct
the errors, and execute this step again in order to include the previously erroneous records.
Page: 3
3. Working in i-Tree Eco
The previous steps created stock databases where the input and results for the i-Tree Eco analysis
will be stored. Now we will configure what type of inventory will be fed into these databases. This
is and important step as the type of inventory is unique to the iTree Eco geodatabse developed.
8--> Now click Configure input.
8--> Location Name type Georgia Tech.
8--> State field navigate the drop-down to
Georgia.
8--> County navigate to DeKalb.
8--> Place navigate to Atlanta.
8--> For the Weather Station ID field click
“Select”.
8--> Choose the weather station pin in the
middle of the map. The weather station Figure 3.1 Selecting Weather Station in new i-Tree Eco Project
ID should be 722190-13874, then press
OK (Fig. 3.1).
9--> In the Series name field type
Tutorial_1.
9--> Next to sampling, select the
“Inventory- 100% census” oval
9--> In the Year type 2015.
9--> Next to Data units: field, select the
“English (inches, feet, acres)” oval
9--> Under Project Options, uncheck the
boxes “Pest Detection” and “Energy
Included”.
9--> Do not edit any information in the
Plot Info or Data Collections
sections.
9--> Make sure the Creating/Configuring
inventories window looks like
Figure 3.2, click Add to Database.
9--> Once we have configured the input,
click Exit.
9--> In the create new project window
click OK. Figure 3.2 Creating new i-Tree Eco Project
Page: 4
Importing the data into i-Tree Eco
Now that the data is in MS Access database and the i-Tree Eco project has been created, it is pos-
sible to import the data to i-Tree Eco and submit it to the remote server for processing.
12--> When the results are ready, an email will be sent with a zip file name.
12--> In i-Tree Eco, go to Tools > Load Results.
12--> Open the email that was sent to you informing that the i-Tree Eco data has been
processed and is ready for download.
12--> Highlight the .zip file name (will be within the quotes).
12--> Copy and paste the file name into the pop-up window in i-Tree Eco.
12--> Press OK. Once the results are loaded, a pop-up window will appear. Press OK.
12--> Close i-Tree Eco. All of the data is now in the Tutorial_results database, which we
can access using scripts in ArcMap.
Page: 5
4. Running the Get data from iTree for displaying in ArcMap script
Now the processed inventory data is in the Tutorial_results.gdb, we can use the final tool to bring
these results back into ArcGIS to join the results with the original tree inventory shapefile.
13--> Open ArcGIS if it was closed. Bring the Full-
Inventory_Tutorial shapefile from the Tutori-
al_iTreeEco.gdb into the Table of Contents.
13--> In the itree-dbtools.tbx, double click the
script “3-Get data from iTree for displaying
in ArcMap”.
13--> Click the Open Folder button next for the
Results database field.
13--> Navigate to the folder where Tutorial_re-
sults.mdb is located. This is the database you
created when making the i-Tree Eco Project. Figure 4.1 Get data from iTree tool window
Page: 6