Title: Starting with ArcBME
1Starting with ArcBME
2Agenda
- Temporal GIS (TGIS) Analysis Overview
- Interaction with ArcGIS
- Software structure
- Step by step instruction
3Temporal GIS Analysis Overview
4Temporal GIS Analysis Overview
- ArcBME consists of six screens
- Data Field screen
- Data Distribution screen
- Exploratory Data Analysis screen
- Mean Trend Analysis screen
- Space/Time Covariance Analysis screen
- BME estimation screen
5Data Input Screen
- Column Matching
- Input units and name of compound
6Data Distribution Screen
- Basic statistics
- Histogram (Raw data and log-transformed data)
7Exploratory Data Analysis Screen
- Time series at monitoring station
- Spatial distribution
- Data aggregation
8Mean Trend Analysis Screen
- Display temporal mean trend
- Display spatial mean trend (Raw Smooth)
- Model Parameter (Exponential Smoothing)
9Covariance Analysis Screen
- Display spatial temporal covariance
- Plot covariance models
10BME Estimation Screen
- Time series of BME mean estimation
- Map of BME mean estimation
- Map of BME error variance
11Interaction with ArcGIS
12Interaction with ArcGIS
- ArcBME creates following ArcGIS files
- Point layer file (BME mean estimation, BME error
variance) - BME mean estimation raster file
- BME error variance raster file
13Interaction with ArcGIS
14Software structure
15Software Structure
ArcGIS Geoprocessing Tools
GTK
matplotlib
pygtk
win32com
ArcBME
bmelibpy
Python
Numeric
SciPy
Numarray
Matlab Compiler
Matlab .exe file
MCR
16Features of Python
- Cross-platform language
- Very simple syntax rules
- Open source software Free!
- Support Object Oriented Programming
- Scripting language widely used in ArcGIS
- A number of additional modules
- Math and science modules
- Graphical user interface modules
17Sample Code
u 0 v 0 x 100 y 30 while x gt y u u
y x x y if x lt y2 v v
x x 0 else v v y 2
x x y 2 print u, v
while-statement block
if-statement block
From The Quick Python Book (Manning)
18Step by step instruction
19Before you start the TGIS analysis
- You need the data file!
- Your data set MUST have
- X field, Y field (Spatial Location)
- Time Field (Temporal Location)
- Data Value
- Data Type (Optional)
- Data MUST be stored in GeoEAS format
- Tab separated file with header
20GeoEAS format
Tetrachloroethene(micrograms per liter) in New
Jersey 7 LONGITUDE LATITUDE NUM
DAYS YEAR DATATYPE VAL1 VA
L2 -74.5278 40.5594 880 2001 0 0.01 0.01 -7
4.7781 40.2217 376 2000 0 0.01 0.01 -74.7781 40.
2217 410 2000 0 0.01 0.01
Number of Columns
File Description
Name of Columns
Tab-separated Data
21Some Limitations
- Store data in vector form
- Grid data should be transformed
- Do not use comma ( , ) in column name
- Data value must be a numeric value
- Character string not acceptable
- Cannot perform 1-D or 3-D analysis
22Download ArcBME
- From the class website, download TGISGUI_v1_0.zip
into your afs space - Unzip that file
- Python Development Modules(Modules)
- TGISGUI
- Put TGISGUI folder under your H drive
- If you want to use ArcBME on your laptop, you
must also install the Python Development Modules
(Need administrator right, see instruction in
ENVR468 website)
23Add Toolbox on ArcGIS
- Run ArcGIS, activate toolbox tool bar
- Right click and select Add Toolbox
- Select TGIS GUI Application toolbox from
H\TGISGUI
24Execute ArcBME
- Double click TGIS GUI Application
- Select Work Space and Data File
25Work Space
- Work Space is a folder used to store the
following ArcBME and ArcGIS files - Parameter file (.ybp)
- Result file (.ybe)
- Estimation file (.yme, .yse)
- ArcGIS objects (.lyr, .dbf, raster)
-
26Screen 1 Data Field
- Select data columns used for X Field, Y Field,
Time Field, and Data Value - Input Space Unit, Time Unit, Data Unit and Name
of Data
Select Column Name
Input Units and Name of Data
27Data Below Detection Limit
- Monitoring data often contains measurements below
the level of detection - How to deal with these measurements?
- Taking a half value of detection limit
- Construct softdata
- Eliminate data
- Taking a half value of detection limit is
supported by ArcBME.
28Datatype and Value 1 2 Field
- Datatype Field
- 0 Normal Data
- Use Valu1 field
- 1 Data Below Detection Limit
- Use (Value1 Value2)/2
(Sample) -75.0947 39.9014 1510 2003 0 2.30 2.30 -
74.5892 40.3133 445 2000 0 3.10 3.10 -74.5661
39.4397 1523 2003 1 0.00 0.10 -74.7656
39.6647 1504 2003 1 0.00 0.10
29Screen 2 Data Distribution
- Basic statistics
- Mean, Standard deviation, Skewness, Kurtosis
- Histogram Raw data, Log-transformed data
30Data Log-transformation
- If you want to use log-transformed data in the
following analysis, check Use Log-transformed
Data
31Screen 3 Exploratory Data Analysis
- Time series at monitoring station
- Spatial map at specific time
- Data aggregation
32Time series at monitoring station
- Input station ID
- Click Plot button
Input Station ID
Spatial coordinate of monitoring station
Click Plot button
Location of monitoring station
Zoom in/out
33Spatial map at specific time
- Click Next Time to get the new map.
Plot new map
Zoom in/out
34Data aggregation
- Check Aggregation Period box
- Enter aggregation period and click Aggregate
Data
Check Box
Enter aggregation period
Click Button
Button will change
35Quit ArcBME
- Click Quit button
- Dialog shows up, then click OK
36Recovery from error
- You will get an error message
- Check error message and correct problem
- If you could not understand the error message,
delete all files in Work Space and run ArcBME
again - Contact Info.
- BMElab MH0018
- Email akita_at_email.unc.edu