FRAGSTATS_40教程.pdf
《FRAGSTATS_40教程.pdf》由会员分享,可在线阅读,更多相关《FRAGSTATS_40教程.pdf(33页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、1|P a g e Last Updated:28 May 2012 Prepared by:Kevin McGarigal FRAGSTATS 4.0 Tutorial This tutorial is intended to provide FRAGSTATS users a quick start on how to use the software.All of the necessary data and files for the tutorial have been provided and these can be used as templates for how to fo
2、rmat your own files latter on.However,this tutorial is not a substitute for the complete FRAGSTATS user manual;all serious FRAGSTATS users are responsible for understanding all of the information in the user manual.The tutorial is actually a series of short tutorials designed to demonstrate some of
3、the basic features of FRAGSTATS;it is not intended to be a comprehensive guide,but rather a guide to help new users get started.The tutorials include the following:1.Setting Up Software and Inspecting Grids-Covers the basic setup of the software and computer for running FRAGSTATS and an inspection o
4、f the grids that will be used in the subsequent tutorials.All users should complete this tutorial.2.Analyzing a single grid-Covers the essential steps involved in analyzing a single grid,including the use of ancillary tables for calculating functional metrics.3.Batch processing multiple grids-Covers
5、 the use of batch files for processing multiple grids at once.4.Moving window analysis-Covers the use of a moving window analysis to create local landscape structure gradients.5.Running the command line version from R-Covers the execution of FRAGSTATS command line version from R(programming environm
6、ent and statistical computing environment).2|P a g e Tutorial 1.Setting Up Software and Inspecting Grids In this tutorial,we will setup the software and inspect the grids to be analyzed in the subsequent tutorials.1.Download and install FRAGSTATS First,if you havent already done so,download FRAGSTAT
7、S 4.0 and run the setup utility to install the software on your computer.2.Optional Setup your Computer for use with ESRI ArcGIS If you intend to work with ascii or binary data formats,you can skip this step.However,if you have a valid ESRI ArcGIS license(version 10 or earlier)with Spatial Analyst o
8、r ArcView 3.3 Spatial Analyst and intend to work with ArcGrids(or Rasters),then there are two important requirements,as follows:First,you need to edit your computer systems environmental path variable.Specifically,FRAGSTATS must have access to the aigridio.dll library found in the“bin”(for ArcGIS in
9、stallation)or the avgridio.dll library found in the“bin32(for ArcView 3.3 installation)directory.Note,the paths may differ depending on your version and installation.Search your computer for the corresponding file and copy the path to the bin or bin32 directory,as appropriate.Note,the path does NOT
10、include the aigridio.dll or avgridio.dll file name;it ends with bin or bin32.For example,for an ArcGIS 10 installation,the path might look like:C:Program Files(x86)ArcGISDesktop10.0Bin The path to the corresponding bin directory should be specified in the windows system environmental variable,as fol
11、lows:In Windows 7,the Environment variables can be accessed and edited from the Control Panel-System and Security-System-Advanced system settings under the“Advanced”tab and by clicking on“Environment Variables”(at the bottom of the dialog on the Advanced tab),as show in the figure below.In the list
12、of System variables,select the“path”variable and select“edit”and add the path to the corresponding bin directory(e.g.,;C:Program Files(x86)ArcGISDesktop10.0Bin).Note,you need a semicolon between each path in the list and make sure you enter the correct path on your system.If you are using a differen
13、t Windows operating system,youll have to figure out how to find the system environment variables,then edit the path variable as above.3|P a g e Second,you need to make sure that the ArcGrids that you intend to use,including those included with this tutorial,are located in a directory on your disk th
14、at does NOT contain any spaces in the full path.For example,if you have the tutorial grid reg78b located in the following directory:C:Documents and SettingsFragstatsTutorial_1reg78b you will get the following error message when attempting to Run FRAGSTATS:Error:Unexpected error encountered:cannot_se
15、t_access_window for:C:Documents and SettingsFragstatsTutorial_1reg78b.Model execution halted.4|P a g e This is an irreconcilable problem with ESRI and the only solution is to put all your grids,including those included in this tutorial,in a directory that does NOT contain spaces.Note,this is probabl
16、y good practice anyways,since there are other software programs that cannot deal properly with spaces in the path.3.Inspect the grids Next,inspect the grids to make sure you understand the landscape definition before analyzing them,since the results of the analysis can only be interpreted in the con
17、text of the landscape definition.ArcGIS grids.-If you are planning on working with ESRI ArcGIS,open up the provided fragtutorial_1.mxd project in ArcMap.The project contains several data layers,as listed in the table of contents,including a landcover grid(lugrid)for an arbitrary extent in western Ma
18、ssachusetts.5|P a g e As you can see from the legend,the lugrid contains six landcover classes,including:1)open(largely agriculture),2)residential,3)water(open water bodies and large rivers),4)forest,5)wetland,and 6)urban.Open the lugrid layer properties and inspect the grid properties on the Source
19、 tab.In particular,note the grid dimensions(1104 columns by 1035 rows),cell size(50 m),format(GRID),and pixel type(signed integer).The signed integer pixel type is necessary if the landscape has a border;i.e.,strip of classified cells outside the landscape boundary and assigned negative class values
20、.If the landscape does not contain a border,then an unsigned integer type is OK.In this case,the lugrid does not contain a border,but the sub-landscapes(below)do,so the pixel type has been set to signed integer.Next,open the lugrid layer attribute table and inspect the class values present on the gr
21、id.Note the class values and text description for each class.You will need to know the class values later on.6|P a g e Next,view the reg78b grid by selecting it in the table of contexts and zooming to the layer extent.This grid is a randomly selected roughly 5x5 km(25 km2)square sub-landscape sample
22、d from the lugrid.Expand the legend and note the landcover classes present;it has the same six landcover classes as before,but with the addition of six border classes.7|P a g e The border is simply a strip of classified cells surrounding the landscape of interest that provides information on patch t
23、ype adjacency along the landscape boundary.In the legend provided,the border classes have been assigned a lighter shade of the color assigned to the corresponding class inside the landscape boundary.Importantly,a border is identified in FRAGSTAST by negatively valued cells.An inspection of the grid
24、attribute table reveals the same six landcover classes as before,but with both a positive(inside the landscape boundary)and negative(border,or outside the landscape boundary)version of each class.Note,I created all three of the grids in this project containing borders(reg78b,reg66b and reg21b)using
25、the fragborder.aml script provided.This aml(arc macro language)is executed from the arc prompt and requires ArcInfo Workstation.Briefly,the script clips the lugrid layer with a polygon coverage for one of the sub-landscapes,and then buffers the polygon by 50 m and clips the lugrid layer again but wi
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- FRAGSTATS_40 教程
限制150内