LandscapeMetrics


cpc.sau.lulctools
Class LandscapeMetrics

java.lang.Object
  extended by cpc.sau.lulctools.LandscapeMetrics

public class LandscapeMetrics
extends java.lang.Object

Contains methods for calculating landscape-level pattern metrics on a landscape. The metrics are:

Number of pixes total number of cells(i.e. LulcCell objects) in the landscape
Totla Area total area of the landscape
Number of Patches the number of patches on the landscape
Mean Patch Size the average patch size on the landscape
Median Patch Size the median patch size on the landscape
Minimum Patch Size the minimum patch size on the landscape
Maximum Patch Size the maximum patch size on the landscape
Standard Deviational Patch Size the standard deviation of patch sizes on the landscape
Largest Patch Index the percentage of the landscape comprised by the largest patch

Notes: In this documentation, the term patch is used to refer to a parcel All metrics are calcultated in meters or hectares. If the units of the input data are different, it will be necessary to modify the code accordingly.


Constructor Summary
LandscapeMetrics()
           
LandscapeMetrics(java.util.ArrayList<LulcCell> coverList, int i)
          Creates an arraylist of all LulcCell objects on the landscape.
 
Method Summary
 java.util.ArrayList<LulcCell> getLulcCellList()
          Returns an arraylist of all LulcCell objects in the landscape
 java.util.ArrayList<Parcel> getPatches()
          Returns an arraylist of Patch objects in the landscape
 double lsLargestPatchIndex()
          Calculates the Largest Patch Index.
 double lsMaxPatchSize()
          Calculates the maximum patch size in the landscape.
 double lsMeanPatchSize()
          Calculates the mean patch size in the landscape
 double lsMedianPatchSize()
          Calculates the median patch size in the landscape.
 double lsMinPatchSize()
          Calculates the minimum patch size in the landscape
 int lsNumberOfPatches()
          Calculates the number of patches in the landscape.
 int lsNumberOfPixels()
          Returns the number of pixels(cells or LulcCell objects)in the landscape.
 double lsPatchStd()
          Calculates the standand deviation of the patch sizes in the landscape
 double lsTotalArea()
          Calculates the total area of the landscape
 void setLulcCellList(java.util.ArrayList<LulcCell> lc)
          Sets the arraylist of LulcCell objects in the landscape
 void setPatches(int i)
          Sets the arraylist of Patch objects in the landscape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LandscapeMetrics

public LandscapeMetrics()

LandscapeMetrics

public LandscapeMetrics(java.util.ArrayList<LulcCell> coverList,
                        int i)
Creates an arraylist of all LulcCell objects on the landscape. They can be classified either by parcel ID(i = 0) or LULC type(i = 1)

Parameters:
coverList - the arraylist containing all LulcCell objects on the landscape
i - classification choice for the arraylist
Method Detail

setLulcCellList

public void setLulcCellList(java.util.ArrayList<LulcCell> lc)
Sets the arraylist of LulcCell objects in the landscape

Parameters:
lc - the list containing all LulcCell objects in the landscape

getLulcCellList

public java.util.ArrayList<LulcCell> getLulcCellList()
Returns an arraylist of all LulcCell objects in the landscape

Returns:
an arraylist of LulcCell objects

setPatches

public void setPatches(int i)
Sets the arraylist of Patch objects in the landscape

Parameters:
i - the method for classifying the LulcCell objects into parcels. 0 means classification based on parcel ID. 1 means classification based on LULC type.

getPatches

public java.util.ArrayList<Parcel> getPatches()
Returns an arraylist of Patch objects in the landscape

Returns:
an arraylist of parcels

lsNumberOfPixels

public int lsNumberOfPixels()
Returns the number of pixels(cells or LulcCell objects)in the landscape.

Returns:
the number of pixels(cells or LulcCell objects) in the landscape

lsTotalArea

public double lsTotalArea()
Calculates the total area of the landscape

Returns:
the area of the landscape, in hectares

lsNumberOfPatches

public int lsNumberOfPatches()
Calculates the number of patches in the landscape.

Returns:
the number of parcels in the landscape

lsMeanPatchSize

public double lsMeanPatchSize()
Calculates the mean patch size in the landscape

Returns:
the mean patch size in the landscape, in hectares

lsMedianPatchSize

public double lsMedianPatchSize()
Calculates the median patch size in the landscape.

Returns:
the median patch size in the landscape, in hectares

lsMinPatchSize

public double lsMinPatchSize()
Calculates the minimum patch size in the landscape

Returns:
the minimum patch size in the landscape, in hectares

lsMaxPatchSize

public double lsMaxPatchSize()
Calculates the maximum patch size in the landscape.

Returns:
the maximum patch size in the landscape, in hectares

lsPatchStd

public double lsPatchStd()
Calculates the standand deviation of the patch sizes in the landscape

Returns:
standand deviation of patch sizes in the landscape, in hectares

lsLargestPatchIndex

public double lsLargestPatchIndex()
Calculates the Largest Patch Index. It is equal to max(a)/A, where max(a) is the area of the largest patch and A is the area of the landscape.

Returns:
the percentage of the landscape comprised by the largest patch


Wink Plone Theme by Quintagroup © 2013.

Personal tools
This is themeComment for Wink theme