Guia Frag Stats
Guia Frag Stats
Objectives
1. For this exercise you will need to install Fragstats, a free software available for
download from the web, from home or office, go to the website:
http://www.umass.edu/landeco/research/fragstats/fragstats.html
2. Click on FRAGSTATS Downloads (on the left navigation bar) and scroll down to
FragStats4.2.zip
(http://www.umass.edu/landeco/research/fragstats/downloads/fragstats4.2.zip)
save this file in c:\temp.
3. Extract the contents of this folder into c:\temp
4. Double click on Fragstats.exe to install the program.
5. You can save the program on the C drive default (C:\Program Files\Fragstats 4)
When done you should be able to find Fragstats 4.2 from the Start>Programs
menu
6. The data files for this exercise are stored in exc6.zip on the website
In ArcCatalog you should see the following layers:
L_Fp99.dbf [Pierce county Fragstats output for 1999 landscape metrics]
Landcover_classes.layer [A layer file for symbology of the land cover grids]
New_extent.shp [The extent of analysis we will be doing]
P_Fp99.dbf [Pierce county Fragstats output for 1999 patch metrics]
Pie99rcid8 [Pierce county 1999 Fragstats output for non-urban patches]
Pie_91_lc10 [Pierce county 1991 land cover data, raster format]
Pie_99_lc10 [Pierce county 1999 land cover data, raster format]
The following are a few metrics which are calculated in this exercise, there are many
more. The help menu in Fragstats has a good summary of the major landscape metrics,
how they are calculated and what they are helpful for. The following details are pulled
directly from the help pages:
-1-
UDP 422 – GeoSpatial Analysis
Exercise 6: Assessing Landscape Metrics in Fragstats 8/25/2023
Number of Patches
Patch Area
-2-
UDP 422 – GeoSpatial Analysis
Exercise 6: Assessing Landscape Metrics in Fragstats 8/25/2023
Aggregation Index
-3-
UDP 422 – GeoSpatial Analysis
Exercise 6: Assessing Landscape Metrics in Fragstats 8/25/2023
Shape Index
Directions
5. Click on Import… (in the upper right hand corner of the popup window)
and navigate to the location where you saved all the data for this exercise.
ArcMap is looking for a layer file. These files are useful for storing legend
information such as colors and fills, and labels. Select landcover_classes.lyr
and press add. Notice how the colors changed and the labels are filled with text
such as High urban and Medium urban.
6. Press OK.
7. Repeat the above steps for Pie_99_lc10
8. Create a jpeg of the 1999 Pierce county landcover map with the following
specifications:
Page size <letter> with a landscape orientation
Scale of 1 m = 500 km (of entire map)
Scale, legend, north arrow, and title (24 pt font) clearly and eloquently
included.
Save the jpeg, at 150dpi, clipped to graphics extent, into your personal
space for later insertion.
-4-
UDP 422 – GeoSpatial Analysis
Exercise 6: Assessing Landscape Metrics in Fragstats 8/25/2023
Notice how cover such as urban and cleared is classified as 0, while non-
urban covers are classified as 1.
Set the output raster as Pie91_rc in your personal space.
5. Press Ok.
Notice how the new raster only has two colors, one for 0(urban) and one for 1 (non-
urban).
We will now use this reclassified image to measure a few patch and landscape metrics
for Pierce County in 1991. Later we will compare these values with calculated values for
1999.
-5-
UDP 422 – GeoSpatial Analysis
Exercise 6: Assessing Landscape Metrics in Fragstats 8/25/2023
One more step is needed before we can run the most recent version of Fragstats.
Fragstats 4.2 can’t use ArcGIS 10.2’s raster data… so we need to use another data
format!)
Find the Raster to Other Format tool. Make sure the input raster is pie91_rc. Create a
new folder called “Raster” in your Exercise 6 personal space and make that your Output
Workspace.
Choose “TIFF” for the Raster Format.
Example::
You are creating a comma delineated file which has the following information:
new_class ID [ as you just reclassified the grid],
class_type [urban or not-urban, word descriptions for what each class
represents],
true for enabled false for disabled [analysis will be conducted on this cell value],
and lastly is
background [useful for looking at the edge of the grid, so that it knows not to
count these values]. You can visit the help files to learn more – page 47, here:
http://www.umass.edu/landeco/research/fragstats/documents/fragstats.help.4.pdf
.
Q1. Based on this information, which class are we going to calculate the patch
information for?
-6-
UDP 422 – GeoSpatial Analysis
Exercise 6: Assessing Landscape Metrics in Fragstats 8/25/2023
3. Save this file as type “All files” and named: pierce91_99.fcd. The new file name
is fcd, which is a file type which Fragstats recognizes.
Note: make sure before you exit notepad that everything is correct. If you try to open the
file again in notepad to make further edits, Fragstats will stop recognizing the file.
Running Fragstats
1. Launch Fragstats with a single click.
-7-
UDP 422 – GeoSpatial Analysis
Exercise 6: Assessing Landscape Metrics in Fragstats 8/25/2023
Now we will set the Patch and Landscape Metrics (in the panel on the right of our
dialogue box).
1. First, click on the red Patch Metrics button . Here select Shape Index
(under Shape tab) and specify Landscape Level Deviations, Standard
Deviation.
2. Then under the Area-Edge tab, select patch area, again specify only
Landscape Level Deviations (Standard Deviation).
-8-
UDP 422 – GeoSpatial Analysis
Exercise 6: Assessing Landscape Metrics in Fragstats 8/25/2023
-9-
UDP 422 – GeoSpatial Analysis
Exercise 6: Assessing Landscape Metrics in Fragstats 8/25/2023
If all was completed successfully, the lower right activity log should be populated with
something along the lines of the image below (13:36:35 and later lines. If you had an
error, you could see something like the messages received earlier ~13:24:59-13:25:09).
Navigate to your files, you should see the following outputs (there are more, but these
are the three we will be using today):
Pie91_rc_id8 (this will be in your Raster folder)
Fpie91rc.patch (these will be in your Fragstats folder)
Fpie91rc.land
3. In Windows Explorer copy the file Fpie_91rc.patch, paste the copy in the same
folder and rename to: patch_Fpie_91rc.txt
you will get a warning message about changing the file type. Click yes,
since you want to make sure that the file extension is changed to txt. A txt
file can be read by ArcGIS.
- 10 -
UDP 422 – GeoSpatial Analysis
Exercise 6: Assessing Landscape Metrics in Fragstats 8/25/2023
2. Add the table patch_Fpie_91rc.txt; this has the information about the patch
metrics.
3. Create an attribute table to the id raster
4. Join this table to Pie91_rcid8. Join the Value to the PID (that’s the Patch
Identification).
a. You can let ArcMap create an index if it asks.
5. Open up the attribute table for pie_rcid8 and look at the different columns:
Rowid is just an automatic identification given to each Patch.
Value is the specific patch ID given to each patch by fragstats.
Count is the number of cells in each patch,
F91_OID, F91.ID are automatic numbers given to each object in the table
F91, PID is the patch id,
type is the written description you entered for each patch type in the class
properties field,
area is the size of the patch in hectares, and
area_LSD is the standard deviation of the size of the patch
shape_1 is the shape index
Shape_LSD is the standard deviation of the shape index.
Q2. Can you calculate the relationship between ‘count’ and area? (HINT: you can add a
field to the raster table and use the field calculator or you can calculate the values in
excel).
- 11 -
UDP 422 – GeoSpatial Analysis
Exercise 6: Assessing Landscape Metrics in Fragstats 8/25/2023
a. Manually change the color of the smallest group to yellow and the largest
to purple by double clicking on the color (or right click, properties for
selected colors).
3. Make a new map with this image, add a descriptive title, north arrow, legend
and scale bar.
4. Q3. Create a jpeg of this image.
5. Q4. Reopen the attribute table, which patch (use PID value) has the most
complex shape?
- 12 -
UDP 422 – GeoSpatial Analysis
Exercise 6: Assessing Landscape Metrics in Fragstats 8/25/2023
We have processed the data for you through fragstats following the very same steps,
such that the 1999 landcover has been similarly reclassified, the same patch and
landscape metrics were calculated in fragstats and the output files were exported as
dbfs.
4. Add the 1999 file (l_fp99.dbf) and type in the values in your excel chart.
5. Make an excel graph that shows the change in the number of patches between
1991 and 1999. Make sure that the graph is self-explanatory (it should have a
title, x- and y- axis labels, and the y-axis scale should begin at zero).
6. Q5 What happened to the Aggregation Index? What does this mean, both
spatially and ecologically speaking? Remember, information about the
Aggregation Index can be found at the top of this exercise or online.
Deliverable
Remember to type your name on the top and or submit to CollectIt with yourname_exc6.
- 13 -